PBL - The program base library
C# AvlDictionary and Priority Queue implementation
 All Classes Namespaces Files Functions Properties
Com.Mission_Base.Pbl.AvlDictionary< TKey, TValue >.KeyCollection.CollectionEnumerator Class Reference

Enumerates the elements of an AvlDictionary<TKey,TValue>.KeyCollection. This class cannot be inherited. More...

Inheritance diagram for Com.Mission_Base.Pbl.AvlDictionary< TKey, TValue >.KeyCollection.CollectionEnumerator:
Com.Mission_Base.Pbl.AvlDictionary< TKey, TValue > Com.Mission_Base.Pbl.AvlDictionary< TKey, TValue >

Public Member Functions

 CollectionEnumerator (AvlDictionary< TKey, TValue > dictionary)
 Creates a new enumerator of the AvlDictionary<TKey,TValue>.KeyCollection.
 
- Public Member Functions inherited from Com.Mission_Base.Pbl.AvlDictionary< TKey, TValue >
 AvlDictionary ()
 Initializes a new instance of the AvlDictionary<TKey,TValue> class that is empty.
 
 AvlDictionary (IEnumerable< KeyValuePair< TKey, TValue >> dictionary)
 Initializes a new instance of the AvlDictionary<TKey,TValue> class that contains elements copied from the specified System.Collections.Generic.IDictionary<TKey,TValue>.
 
void Add (TKey key, TValue value)
 Adds the specified key and value to the AvlDictionary.
 
bool ContainsKey (TKey key)
 Determines whether the AvlDictionary contains the specified key.
 
bool Remove (TKey key)
 Removes the value with the specified key from the AvlDictionary.
 
bool TryGetValue (TKey key, out TValue value)
 Gets the value associated with the specified key.
 
void Add (KeyValuePair< TKey, TValue > item)
 Adds a KeyValuePair<TKey,TValue> to the AvlDictionary.
 
void Clear ()
 Removes all keys and values from the AvlDictionary.
 
bool Contains (KeyValuePair< TKey, TValue > item)
 Determines whether the AvlDictionary contains a specific KeyValuePair<TKey,TValue>.
 
void CopyTo (KeyValuePair< TKey, TValue >[] array, int index)
 Copies the elements of the AvlDictionary to an existing one-dimensional KeyValuePair<TKey,TValue>[], starting at the specified array index.
 
bool Remove (KeyValuePair< TKey, TValue > item)
 Removes the first occurrence of a specific KeyValuePair<TKey,TValue> from the AvlDictionary.
 
IEnumerator< KeyValuePair
< TKey, TValue > > 
GetEnumerator ()
 Returns an enumerator that iterates through the AvlDictionary.
 
void CopyTo (Array array, int index)
 Copies the elements of the elements of the AvlDictionary to an System.Array, starting at a particular System.Array index.
 

Properties

TKey Current [get]
 Gets the key at the current position of the enumerator.
 
- Properties inherited from Com.Mission_Base.Pbl.AvlDictionary< TKey, TValue >
ICollection< TKey > Keys [get]
 Gets a collection containing the keys in the AvlDictionary.
 
ICollection< TValue > Values [get]
 Gets a collection containing the values in the AvlDictionary.
 
TValue this[TKey key] [get, set]
 Gets or sets the value associated with the specified key.
 
int Count [get]
 Gets the number of elements contained in the AvlDictionary.
 
bool IsReadOnly [get]
 Gets a value indicating whether the AvlDictionary is read-only.
 
bool IsSynchronized [get]
 Gets a value indicating whether access to the AvlDictionary is synchronized (thread safe).
 
object SyncRoot [get]
 Gets an object that can be used to synchronize access to the AvlDictionary.
 

Detailed Description

Enumerates the elements of an AvlDictionary<TKey,TValue>.KeyCollection. This class cannot be inherited.

Definition at line 867 of file AvlDictionary.cs.

Constructor & Destructor Documentation

Com.Mission_Base.Pbl.AvlDictionary< TKey, TValue >.KeyCollection.CollectionEnumerator.CollectionEnumerator ( AvlDictionary< TKey, TValue >  dictionary)

Creates a new enumerator of the AvlDictionary<TKey,TValue>.KeyCollection.

Parameters
dictionaryThe AvlDictionary<TKey,TValue> the enumerator is created for.

Definition at line 876 of file AvlDictionary.cs.

Property Documentation

TKey Com.Mission_Base.Pbl.AvlDictionary< TKey, TValue >.KeyCollection.CollectionEnumerator.Current
get

Gets the key at the current position of the enumerator.

Returns
The key in the AvlDictionary<TKey,TValue>.KeyCollection at the current position of the enumerator.

Definition at line 891 of file AvlDictionary.cs.


The documentation for this class was generated from the following file: