live
Data Structures | Public Member Functions | Static Public Member Functions | Protected Member Functions
HashTable Class Referenceabstract

#include <HashTable.hh>

Inheritance diagram for HashTable:
Inheritance graph
[legend]

Data Structures

class  Iterator
 

Public Member Functions

virtual ~HashTable ()
 
virtual void * Add (char const *key, void *value)=0
 
virtual Boolean Remove (char const *key)=0
 
virtual void * Lookup (char const *key) const =0
 
virtual unsigned numEntries () const =0
 
Boolean IsEmpty () const
 
void * RemoveNext ()
 
void * getFirst ()
 

Static Public Member Functions

static HashTablecreate (int keyType)
 

Protected Member Functions

 HashTable ()
 

Detailed Description

Definition at line 27 of file HashTable.hh.

Constructor & Destructor Documentation

◆ ~HashTable()

virtual HashTable::~HashTable ( )
virtual

◆ HashTable()

HashTable::HashTable ( )
protected

Member Function Documentation

◆ Add()

virtual void * HashTable::Add ( char const *  key,
void *  value 
)
pure virtual

Implemented in BasicHashTable.

◆ create()

static HashTable * HashTable::create ( int  keyType)
static

◆ getFirst()

void * HashTable::getFirst ( )

◆ IsEmpty()

Boolean HashTable::IsEmpty ( ) const
inline

Definition at line 41 of file HashTable.hh.

41{ return numEntries() == 0; }
virtual unsigned numEntries() const =0

References numEntries().

◆ Lookup()

virtual void * HashTable::Lookup ( char const *  key) const
pure virtual

Implemented in BasicHashTable.

◆ numEntries()

virtual unsigned HashTable::numEntries ( ) const
pure virtual

◆ Remove()

virtual Boolean HashTable::Remove ( char const *  key)
pure virtual

Implemented in BasicHashTable.

◆ RemoveNext()

void * HashTable::RemoveNext ( )

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