Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Properties | Protected Member Functions | List of all members
Loyc.Collections.Impl.CPIntTrie< TValue >.IntEnumerator Class Reference

Source file:
Inheritance diagram for Loyc.Collections.Impl.CPIntTrie< TValue >.IntEnumerator:
Loyc.Collections.Impl.CPIntTrie< TValue > Loyc.Collections.Impl.CPIntTrie< TValue > Loyc.Collections.CPTrie< T > Loyc.Collections.CPTrie< T >

Properties

new KeyValuePair< int, TValue > Current [get]
 
new TValue CurrentValue [get]
 
new int CurrentKey [get]
 
- Properties inherited from Loyc.Collections.Impl.CPIntTrie< TValue >
TValue this[int key, TValue defaultValue] [get]
 Finds the specified key and returns its associated value. If the key did not exist, returns defaultValue instead. More...
 
TValue this[uint key, TValue defaultValue] [get]
 
TValue this[short key, TValue defaultValue] [get]
 
TValue this[ushort key, TValue defaultValue] [get]
 
TValue this[long key, TValue defaultValue] [get]
 
TValue this[ulong key, TValue defaultValue] [get]
 
TValue this[int key] [get, set]
 
TValue this[uint key] [get, set]
 
TValue this[short key] [get, set]
 
TValue this[ushort key] [get, set]
 
TValue this[long key] [get, set]
 
TValue this[ulong key] [get, set]
 
ICollection< long > Keys [get]
 
ICollection< TValue > Values [get]
 
new int Count [get]
 
bool IsReadOnly [get]
 
bool IsEmpty [get]
 

Protected Member Functions

 IntEnumerator (CPIntTrie< TValue > trie)
 
- Protected Member Functions inherited from Loyc.Collections.Impl.CPIntTrie< TValue >
bool IsShortKey (int key)
 
bool IsShortKey (uint key)
 
bool IsLongKey (long key)
 
bool IsLongKey (ulong key)
 
KeyWalker EncodeShort (int key)
 
KeyWalker EncodeMed (int key)
 
KeyWalker EncodeMed (long key)
 
KeyWalker EncodeLong (long key)
 
KeyWalker EncodeLong (ulong key)
 
TValue GetValue (ref KeyWalker key, int keyI)
 
TValue GetValue (ref KeyWalker key, long keyI)
 
TValue GetValue (ref KeyWalker key, ulong keyI)
 
- Protected Member Functions inherited from Loyc.Collections.CPTrie< T >
bool Find (ref KeyWalker key, CPEnumerator< T > e)
 
bool Find (ref KeyWalker key, ref T value)
 Retrieves the value associated with the specified key; does nothing if the key does not exist. More...
 
bool ContainsKey (ref KeyWalker key)
 
bool Set (ref KeyWalker key, ref T value, CPMode mode)
 Associates the specified value with the specified key. More...
 
bool Remove (ref KeyWalker key, ref T value)
 Removes the specified key and associated value. More...
 
bool Remove (ref KeyWalker key)
 
void Clear ()
 
int CountMemoryUsage (int sizeOfT)
 Calculates the memory usage of this object, assuming a 32-bit architecture. More...
 

Additional Inherited Members

- Public Member Functions inherited from Loyc.Collections.Impl.CPIntTrie< TValue >
 CPIntTrie (CPIntTrie< TValue > clone)
 
new int CountMemoryUsage (int sizeOfT)
 
bool TryAdd (int key, TValue value)
 Adds the specified key-value pair only if the specified key is not already present in the trie. More...
 
bool TryAdd (int key, ref TValue value)
 Adds the specified key-value pair only if the specified key is not already present in the trie. More...
 
bool TryAdd (uint key, TValue value)
 
bool TryAdd (uint key, ref TValue value)
 
bool TryAdd (short key, TValue value)
 
bool TryAdd (short key, ref TValue value)
 
bool TryAdd (ushort key, TValue value)
 
bool TryAdd (ushort key, ref TValue value)
 
bool TryAdd (long key, TValue value)
 
bool TryAdd (long key, ref TValue value)
 
bool TryAdd (ulong key, TValue value)
 
bool TryAdd (ulong key, ref TValue value)
 
void Add (int key, TValue value)
 Adds the specified key-value pair to the trie, throwing an exception if the key is already present. More...
 
void Add (uint key, TValue value)
 
void Add (short key, TValue value)
 
void Add (ushort key, TValue value)
 
void Add (long key, TValue value)
 
void Add (ulong key, TValue value)
 
bool ContainsKey (int key)
 Searches for the specified key, returning true if it is present in the trie. More...
 
bool ContainsKey (uint key)
 
bool ContainsKey (short key)
 
bool ContainsKey (ushort key)
 
bool ContainsKey (long key)
 
bool ContainsKey (ulong key)
 
bool Remove (int key)
 Removes the specified key and associated value, returning true if the entry was found and removed. More...
 
bool Remove (uint key)
 
bool Remove (short key)
 
bool Remove (ushort key)
 
bool Remove (long key)
 
bool Remove (ulong key)
 
bool Remove (int key, ref TValue oldValue)
 Removes the specified key and associated value, returning true if the entry was found and removed. More...
 
bool Remove (uint key, ref TValue oldValue)
 
bool Remove (short key, ref TValue oldValue)
 
bool Remove (ushort key, ref TValue oldValue)
 
bool Remove (long key, ref TValue oldValue)
 
bool Remove (ulong key, ref TValue oldValue)
 
bool TryGetValue (int key, out TValue value)
 Finds the specified key and gets its associated value, returning true if the key was found. More...
 
bool TryGetValue (uint key, out TValue value)
 
bool TryGetValue (short key, out TValue value)
 
bool TryGetValue (ushort key, out TValue value)
 
bool TryGetValue (long key, out TValue value)
 
bool TryGetValue (ulong key, out TValue value)
 
void Add (KeyValuePair< int, TValue > item)
 
void Add (KeyValuePair< long, TValue > item)
 
new void Clear ()
 
bool Contains (KeyValuePair< int, TValue > item)
 
bool Contains (KeyValuePair< long, TValue > item)
 
void CopyTo (KeyValuePair< int, TValue >[] array, int arrayIndex)
 
void CopyTo (KeyValuePair< long, TValue >[] array, int arrayIndex)
 
bool Remove (KeyValuePair< int, TValue > item)
 
bool Remove (KeyValuePair< long, TValue > item)
 
LongEnumerator GetEnumerator ()
 
IntEnumerator GetIntEnumerator ()
 
IntEnumerator FindAtLeast (int key)
 
LongEnumerator FindAtLeast (long key)
 
LongEnumerator FindAtLeast (ulong key)
 
IntEnumerator FindExact (int key)
 
LongEnumerator FindExact (long key)
 
LongEnumerator FindExact (ulong key)
 
bool Find (int key, out IntEnumerator e)
 
bool Find (long key, out LongEnumerator e)
 
bool Find (ulong key, out LongEnumerator e)
 
CPIntTrie< TValue > Clone ()
 
- Public Member Functions inherited from Loyc.Collections.CPTrie< T >
 CPTrie (CPTrie< T > copy)
 
- Static Protected Member Functions inherited from Loyc.Collections.CPTrie< T >
static StringBuilder BytesToStringBuilder (byte[] key, int keyLength)
 
- Protected static fields inherited from Loyc.Collections.CPTrie< T >
static Comparer< T > DefaultComparer = Comparer<T>.Default