Inheritance diagram for XFcHashtable< Key, Value >:
Public Types | |
typedef XFcHashtableIterator< Key, Value > | iterator |
Iterator type. | |
Public Member Functions | |
iterator | begin () |
Returns an iterator pointing to the first key. | |
iterator | end () |
Returns an iterator pointing to the last key. | |
UINT32 | size () const |
Returns the amount of elements. | |
Value | put (const Key aKey, const Value aValue) |
Puts a new key-value pair in the hashtable. | |
Value | get (const Key aKey) |
Gets the value for a key from the hashtable. | |
iterator | find (const Key aKey) |
Finds the key-value pair from the hashtable with a given key. | |
INT | remove (const Key aKey) |
Removes a key-value pair from the hashtable. | |
INT | remove (iterator &aIterator) |
Removes a key-value pair by iterator. | |
XFcHashtable () | |
Creates an empty hashtable. | |
XFcHashtable (const INT32 aBucketCount) | |
Creates an empty hashtable with specified amount of buckets. | |
~XFcHashtable () | |
Destructor. | |
Protected Member Functions | |
XFcLinkedList< XFcHashtableNode< Key, Value > * >::forwardIterator | findFirst () |
Finds the first entry. | |
Protected Attributes | |
XFcHashtableHash< Key > | _hasher_function |
Hasher function for the key type. | |
XFcHashtableEQ< Key > | _equals_function |
Equality checking function for the key type. | |
UINT32 | mElements |
Number of keys/values in hashtable. | |
INT32 | mBuckets |
Number of buckets. | |
XFcLinkedList< XFcHashtableNode< Key, Value > * > ** | mTable |
Hashtable. | |
Friends | |
class | XFcHashtableIterator< Key, Value > |
|
Iterator type.
|
|
Creates an empty hashtable.
|
|
Creates an empty hashtable with specified amount of buckets.
|
|
Destructor.
|
|
Returns an iterator pointing to the first key.
|
|
Returns an iterator pointing to the last key.
|
|
Finds the key-value pair from the hashtable with a given key.
|
|
Finds the first entry.
|
|
Gets the value for a key from the hashtable.
|
|
Puts a new key-value pair in the hashtable.
|
|
Removes a key-value pair by iterator.
|
|
Removes a key-value pair from the hashtable.
|
|
Returns the amount of elements.
|
|
|
|
Equality checking function for the key type.
|
|
Hasher function for the key type.
|
|
Number of buckets.
|
|
Number of keys/values in hashtable.
|
|
Hashtable.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |