Base class for all GevServer node dictionaries.
More...
Inherits IDictionary< string, TNode >, and IDisposable.
Inherited by NodeDictionary< TNode >.
|
void | Dispose () |
| Disposes of this dictionary and all its nodes.
|
|
bool | ContainsKey (string key) |
| Gets whether this dictionaries contains the given key . More...
|
|
bool | Remove (string key) |
| Removes the node identified by the given key . More...
|
|
|
virtual void | Dispose (bool disposing) |
| Dispose implementation. More...
|
|
abstract void | AddNode (string key, TNode value) |
| Adds a new TNode value associated to the given key . More...
|
|
abstract bool | RemoveNode (string key) |
| Removes the node at the given key . More...
|
|
TNode | GetNode (string key) |
| Actual implementation for getting nodes. More...
|
|
bool | TryGetNode (string key, out TNode value) |
| Tries to get the TNode value with the given key . More...
|
|
|
bool | IsDisposed [get] |
| Gets whether this dictionary has been disposed.
|
|
IDictionary< string, TNode > | Nodes = new Dictionary<string, TNode>() [get] |
| Gets the dictionary holding all node objects.
|
|
TNode | this[string key] [get, set] |
| Indexer of this dictionary to get/add TNode objects. More...
|
|
int | Count [get] |
| Gets the number of TNodes in this dictionary.
|
|
abstract bool | IsReadOnly [get] |
| Gets whether this dictionary is read only.
|
|
ICollection< string > | Keys [get] |
| Gets the keys for all nodes.
|
|
ICollection< TNode > | Values [get] |
| Gets all the TNodes in this dictionary.
|
|
Base class for all GevServer node dictionaries.
- Template Parameters
-
◆ AddNode()
abstract void AddNode |
( |
string |
key, |
|
|
TNode |
value |
|
) |
| |
|
protectedpure virtual |
Adds a new TNode value associated to the given key .
- Parameters
-
key | Key to identify value . |
value | TNode to store. |
Implemented in NodeDictionary< TNode >.
◆ ContainsKey()
bool ContainsKey |
( |
string |
key | ) |
|
Gets whether this dictionaries contains the given key .
- Parameters
-
- Returns
true
if key was found; false
if not.
◆ Dispose()
virtual void Dispose |
( |
bool |
disposing | ) |
|
|
protectedvirtual |
Dispose implementation.
- Parameters
-
disposing | true if called from IDisposable.Dispose; false if called from finalizer. |
Reimplemented in NodeMap.
◆ GetNode()
TNode GetNode |
( |
string |
key | ) |
|
|
protected |
Actual implementation for getting nodes.
- Parameters
-
key | Node key to find TNode object. |
- Returns
- The TNode associated with the key .
◆ Remove()
bool Remove |
( |
string |
key | ) |
|
Removes the node identified by the given key .
- Parameters
-
key | Key to identify the node to remove. |
- Returns
true
if TNode object was removed; false
if not.
◆ RemoveNode()
abstract bool RemoveNode |
( |
string |
key | ) |
|
|
protectedpure virtual |
Removes the node at the given key .
- Parameters
-
key | Node key to identify entry to remove. |
- Returns
true
if the key was actually removed; false
otherwise.
Implemented in NodeDictionary< TNode >, and NodeMap.
◆ TryGetNode()
bool TryGetNode |
( |
string |
key, |
|
|
out TNode |
value |
|
) |
| |
|
protected |
Tries to get the TNode value with the given key .
- Parameters
-
key | Key of node to find. |
value | Variable to receive found node. |
- Returns
true
if key was found; false
if not.
◆ this[string key]
Indexer of this dictionary to get/add TNode objects.
- Parameters
-
key | Node key to find TNode object. |
- Returns
- The TNode associated with the key .