class TMDictionaryAsHashTable
|
More... |
|
|
Public Methods
Public Members
Protected Members
Private Methods
- template
int Detach ( const T& t, DeleteType dt )
- template
void Flush ( DeleteType dt )
- template
void DeleteElement ( T& t, void * )
Private Static Methods
template class TMDictionaryAsHashTable
template class TMDictionaryAsHashTableIterator
Managed dictionary and iterator
Implements the dictionary container using a hash table. Assumes
that T is of class TAssociation.
friend class TMDictionaryAsHashTableIterator
| TMDictionaryAsHashTableIterator |
TMDictionaryAsHashTable ( unsigned size = DEFAULT_HASH_TABLE_SIZE )
| TMDictionaryAsHashTable |
~TMDictionaryAsHashTable ()
| ~TMDictionaryAsHashTable |
int Add ( const T& t )
| Add |
int Detach ( const T& t, DeleteType dt = DefDelete )
| Detach |
T * Find ( const T& t )
| Find |
void Flush ( DeleteType dt = DefDelete )
| Flush |
empty the array; if the ownership is on also the elements in the array will be destroyed
void ForEach ( void (*func)(T&, void *),
void *args )
| ForEach |
auto iterator: use an iterator function calling it for every element of the bag;
the function must have a prototype like this: void iterFunc(T&, void* args);
unsigned GetItemsInContainer ()
| GetItemsInContainer |
[const]
[const]
[protected]
void DeleteElement ( T& t, void * )
| DeleteElement |
[private static]
template
int Detach ( const T& t, DeleteType dt )
| Detach |
[private]
template
void Flush ( DeleteType dt )
| Flush |
[private]
template
void DeleteElement ( T& t, void * )
| DeleteElement |
[private]
Generated by: nicola on gulliver.wadahome.it on Sun May 25 13:54:34 2003, using kdoc 2.0a53. |