Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

skSHashTable Class Reference

This class maps string keys to object pointer values. More...

#include <skSHashTable.h>

Inheritance diagram for skSHashTable:

skTSHashTable< TValue > skTSHashTable< skMethodDefNode > skTSHashTable< skRValue > skMethodTable skRValueTable List of all members.

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

Detailed Description

This class maps string keys to object pointer values.

Concrete classes are created by instantiating the template sub-class skSTHashTable


Member Function Documentation

void skSHashTable::Cleanup TAny *  s  )  [inline, static]
 

Called via Symbian CleanupStack in the event of a leave.

This calls the clearAndDestroy method in the table

Remarks:
only available in Symbian version

IMPORT_C void skSHashTable::insertKeyAndValue const skString key,
void *  value
[protected]
 

puts a new key and value into the table.

If the key already exists, it is first deleted

Exceptions:
Symbian - a leaving function

skSHashTable::operator TCleanupItem  )  [inline]
 

Conversion operator to Symbian TCleanupItem.

This is provided to allow this object to be pushed by value onto the Symbian Cleanup Stack

Remarks:
only available in Symbian version


The documentation for this class was generated from the following file:
Generated on Fri Dec 17 20:28:27 2004 for Simkin C++ for Symbian by doxygen1.3