#include <skSHashTable.h>
Inheritance diagram for skSHashTable:

Public Member Functions | |
| void | clear () |
| this clears the entries from the table, but does *not* delete them | |
| void | clearAndDestroyValues () |
| this clears the list and deletes the values | |
| void | clearAndDestroy () |
| this clears the list and deletes both the values and the keys | |
| USize | entries () const |
| this returns the number of entries in the table | |
| virtual | ~skSHashTable () |
| destructor | |
| void | del (const skString &key) |
| deletes both the key and the value associated with the given key | |
| void | remove (const skString &key) |
| removes the entry associated with the given key | |
Protected Member Functions | |
| skSHashTable (USize size) | |
| Constructor - makes the table an initial size. | |
| void | insertKeyAndValue (const skString &key, void *value) |
| puts a new key and value into the table. | |
| void * | value (const skString &key) const |
| returns the value associated with the given key | |
| virtual void | deleteValue (void *value)=0 |
| this method is overriden by derived classes and deletes the given value object | |
Friends | |
| class | skSHashTableIterator |
Concrete classes are created by instantiating the template sub-class skSTHashTable
|
||||||||||||
|
puts a new key and value into the table. If the key already exists, it is first deleted
|
1.3