#include <skSHashTable.h>
Inheritance diagram for skSHashTable:
Public Member Functions | |
IMPORT_C void | clear () |
this clears the entries from the table, but does *not* delete them | |
IMPORT_C void | clearAndDestroyValues () |
this clears the list and deletes the values | |
IMPORT_C 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 | |
IMPORT_C void | del (const skString &key) |
deletes both the key and the value associated with the given key | |
IMPORT_C void | remove (const skString &key) |
removes the entry associated with the given key | |
operator TCleanupItem () | |
Conversion operator to Symbian TCleanupItem. | |
Static Public Member Functions | |
void | Cleanup (TAny *s) |
Called via Symbian CleanupStack in the event of a leave. | |
Protected Member Functions | |
skSHashTable (USize size) | |
Constructor - makes the table an initial size. | |
IMPORT_C 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
|
Called via Symbian CleanupStack in the event of a leave. This calls the clearAndDestroy method in the table
|
|
puts a new key and value into the table. If the key already exists, it is first deleted
|
|
Conversion operator to Symbian TCleanupItem. This is provided to allow this object to be pushed by value onto the Symbian Cleanup Stack
|