CVB.Net 14.0
NodeCollection< TNode > Class Template Reference

Collection of (child) nodes. More...

Inherits ICollection< TNode >, and IDisposable.

Public Member Functions

void Dispose ()
 Dispose of this collection.
 
void UpdateCollection ()
 Reads out all currently available nodes.
 
void Add (TNode item)
 Adds a Node item to this collection. More...
 
void Clear ()
 Clears this collection. More...
 
bool Contains (TNode item)
 Gets whether the given Node item is in this collection. More...
 
void CopyTo (TNode[] array, int arrayIndex)
 Copies this collection to the given array starting at the given arrayIndex . More...
 
IEnumerator< TNode > GetEnumerator ()
 Gets the enumerator for the Nodes of this collection. More...
 
bool Remove (TNode item)
 Remove a single Node item from this collection. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Dispose implementation. More...
 

Package Functions

 NodeCollection (Node parent, GevServerLib.NodeList kind)
 Creates the collection from the given parent Node and the child list kind . More...
 

Properties

bool IsDisposed [get]
 Gets whether this collection has been disposed.
 
Node Parent [get]
 The parent node of this collection.
 
List< TNode > Nodes = new List<TNode>() [get]
 The list storing all the nodes.
 
GevServerLib.NodeList Kind [get]
 Gets what kind of collection this is.
 
int Count [get]
 Gets the number of nodes in this collection.
 
bool IsReadOnly [get]
 Gets whether this collection is read only. More...
 

Detailed Description

Collection of (child) nodes.

Template Parameters
TNodeConcrete node type.
Type Constraints
TNode :Node 

Constructor & Destructor Documentation

◆ NodeCollection()

NodeCollection ( Node  parent,
GevServerLib.NodeList  kind 
)
package

Creates the collection from the given parent Node and the child list kind .

Parameters
parentParent of this collection.
kindKind of nodes to extract.

Member Function Documentation

◆ Add()

void Add ( TNode  item)

Adds a Node item to this collection.

Parameters
itemNode object to add.

◆ Clear()

void Clear ( )

Clears this collection.

Also disposes of all inline EnumEntryNodes.

◆ Contains()

bool Contains ( TNode  item)

Gets whether the given Node item is in this collection.

Parameters
itemNode object to be found.
Returns
true if item is inside this collection; false if not.

◆ CopyTo()

void CopyTo ( TNode[]  array,
int  arrayIndex 
)

Copies this collection to the given array starting at the given arrayIndex .

Parameters
arrayArray to copy to.
arrayIndexStart index in the given array .

◆ Dispose()

virtual void Dispose ( bool  disposing)
protectedvirtual

Dispose implementation.

Parameters
disposingtrue if called from IDisposable.Dispose; false if called from finalizer.

◆ GetEnumerator()

IEnumerator< TNode > GetEnumerator ( )

Gets the enumerator for the Nodes of this collection.

Returns
New enumerator object.

◆ Remove()

bool Remove ( TNode  item)

Remove a single Node item from this collection.

Parameters
itemNode object to remove.
Returns
true if item was removed; false if not in this collection.

Property Documentation

◆ IsReadOnly

bool IsReadOnly
get

Gets whether this collection is read only.

This collection becomes read-only when the GevServer leaves the GevServerState.Configuration GevServer.State.