lout::container::untyped::HashTable Class Reference

A hash table. More...

#include <container.hh>

List of all members.

Classes

class  HashTableIterator
struct  Node

Public Member Functions

 HashTable (bool ownerOfKeys, bool ownerOfValues, int tableSize=251)
 ~HashTable ()
void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
void put (object::Object *key, object::Object *value)
bool contains (object::Object *key)
Objectget (object::Object *key)
bool remove (object::Object *key)
ObjectgetKey (Object *key)

Protected Member Functions

AbstractIteratorcreateIterator ()

Private Member Functions

int calcHashValue (object::Object *key)

Private Attributes

Node ** table
int tableSize
bool ownerOfKeys
bool ownerOfValues

Friends

class HashTableIterator


Detailed Description

A hash table.

Constructor & Destructor Documentation

lout::container::untyped::HashTable::HashTable ( bool  ownerOfKeys,
bool  ownerOfValues,
int  tableSize = 251 
)

References table.

lout::container::untyped::HashTable::~HashTable (  ) 


Member Function Documentation

int lout::container::untyped::HashTable::calcHashValue ( object::Object key  )  [inline, private]

bool lout::container::untyped::HashTable::contains ( object::Object key  ) 

Collection0::AbstractIterator * lout::container::untyped::HashTable::createIterator (  )  [protected, virtual]

Object * lout::container::untyped::HashTable::get ( object::Object key  ) 

Object * lout::container::untyped::HashTable::getKey ( Object key  ) 

void lout::container::untyped::HashTable::intoStringBuffer ( misc::StringBuffer sb  )  [virtual]

void lout::container::untyped::HashTable::put ( object::Object key,
object::Object value 
)

bool lout::container::untyped::HashTable::remove ( object::Object key  ) 


Friends And Related Function Documentation

friend class HashTableIterator [friend]

Referenced by createIterator().


Member Data Documentation

Referenced by remove(), and ~HashTable().

Referenced by remove(), and ~HashTable().


The documentation for this class was generated from the following files:

Generated on Wed Sep 7 02:00:38 2011 for Dillo by  doxygen 1.5.9