| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/container/hashtable.h>

Public Member Functions | |
| NonPersistentHashTable (unsigned int noOfElements=113) | |
| bool | contains (const T &t) const |
| const T * | find (const T &t) const |
| unsigned int | size () const |
| `size' returns the number of elements currently included. | |
| bool | isEmpty () const |
| Returns true, if the hashtable is empty. | |
| bool | insert (const T &t) |
| bool | erase (const T &t) |
| void | clear () |
| Iterator< T > * | newIterator () const |
| VRS_TYPEINFO (NonPersistentHashTable, SharedObj) | |
| VRS_SERIALIZABLE_ABSTRACT_CLASS (NonPersistentHashTable) | |
Protected Member Functions | |
| const T & | get (unsigned int index) const |
Protected Attributes | |
| Iterator< T > * | iterator_ |
| unsigned int | cachedAccum_ |
| unsigned int | cachedSlot_ |
Friends | |
| class | HashTableIterator< T > |
| VRS::NonPersistentHashTable< T >::NonPersistentHashTable | ( | unsigned int | noOfElements = 113 |
) |
Constraints for the template class:
| bool VRS::NonPersistentHashTable< T >::contains | ( | const T & | t | ) | const |
`contains' returns true if the element "t" is included in the hash table. The test is based on `Toperator=='.
| const T* VRS::NonPersistentHashTable< T >::find | ( | const T & | t | ) | const |
`find' looks for "t" and returns a pointer to the element if it is included. Otherwise, "(T*)0" is returned.
| unsigned int VRS::NonPersistentHashTable< T >::size | ( | ) | const |
`size' returns the number of elements currently included.
| bool VRS::NonPersistentHashTable< T >::isEmpty | ( | ) | const |
Returns true, if the hashtable is empty.
| bool VRS::NonPersistentHashTable< T >::insert | ( | const T & | t | ) |
Inserts element "t". If "t" is included already, the entry "t" is overwritten and false is returned. If "t" has not been included before, true is returned.
| bool VRS::NonPersistentHashTable< T >::erase | ( | const T & | t | ) |
| void VRS::NonPersistentHashTable< T >::clear | ( | ) |
`erase' excludes element "t". `clear' cleans the hash table completly.
| Iterator<T>* VRS::NonPersistentHashTable< T >::newIterator | ( | ) | const |
| VRS::NonPersistentHashTable< T >::VRS_TYPEINFO | ( | NonPersistentHashTable< T > | , | |
| SharedObj | ||||
| ) |
| VRS::NonPersistentHashTable< T >::VRS_SERIALIZABLE_ABSTRACT_CLASS | ( | NonPersistentHashTable< T > | ) |
| const T& VRS::NonPersistentHashTable< T >::get | ( | unsigned int | index | ) | const [protected] |
friend class HashTableIterator< T > [friend] |
Iterator<T>* VRS::NonPersistentHashTable< T >::iterator_ [mutable, protected] |
unsigned int VRS::NonPersistentHashTable< T >::cachedAccum_ [mutable, protected] |
unsigned int VRS::NonPersistentHashTable< T >::cachedSlot_ [mutable, protected] |