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

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

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::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


The documentation for this class was generated from the following files:
Generated on Fri Dec 17 20:27:35 2004 for Simkin by doxygen1.3