Enhanced C#
Language of your choice: library documentation
Properties | Protected Member Functions | List of all members
Loyc.Collections.CPStringTrie< TValue >.Enumerator Class Reference

Enumerates key-value pairs in a CPStringTrie. More...


Source file:
Inheritance diagram for Loyc.Collections.CPStringTrie< TValue >.Enumerator:
Loyc.Collections.Impl.CPEnumerator< TValue >

Remarks

Enumerates key-value pairs in a CPStringTrie.

Reading the key is more expensive than reading the value because the key must be decoded from the bytes it is made up of. If you call CurrentValue instead of Current or CurrentKey, the work of decoding the key will be avoided. If you only need to enumerate the values, enumerate the Values collection instead of the trie class itself.

Properties

new KeyValuePair< string, TValue > Current [get]
 
new TValue CurrentValue [get]
 
new string CurrentKey [get]
 
- Properties inherited from Loyc.Collections.Impl.CPEnumerator< TValue >
Current [get]
 
bool IsValid [get]
 Returns true if this enumerator points to an item and Current is valid. More...
 
InternalList< byte > CurrentKey [get]
 

Protected Member Functions

 Enumerator (CPTrie< TValue > trie)
 

Additional Inherited Members

- Public Member Functions inherited from Loyc.Collections.Impl.CPEnumerator< TValue >
bool MoveNext ()
 
bool MovePrev ()
 
void Reset ()
 
void Dispose ()
 
- Protected fields inherited from Loyc.Collections.Impl.CPEnumerator< TValue >
CurrentValue
 
CPTrie< T > _trie