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

FX::FXHash Class Reference

A hash table for associating pointers to pointers. More...

#include <FXHash.h>

List of all members.

Public Member Functions

 FXHash ()
FXuint no () const
void * insert (void *key, void *val)
void * replace (void *key, void *val)
void * remove (void *key)
void * find (void *key) const
void clear ()
virtual ~FXHash ()


Detailed Description

A hash table for associating pointers to pointers.


Constructor & Destructor Documentation

FX::FXHash::FXHash  ) 
 

Construct empty hash table.

virtual FX::FXHash::~FXHash  )  [virtual]
 

Destructor.


Member Function Documentation

FXuint FX::FXHash::no  )  const [inline]
 

Return number of items in table.

void* FX::FXHash::insert void *  key,
void *  val
 

Insert key into the table.

void* FX::FXHash::replace void *  key,
void *  val
 

Replace key in table.

void* FX::FXHash::remove void *  key  ) 
 

Remove key from the table.

void* FX::FXHash::find void *  key  )  const
 

Return value of key.

void FX::FXHash::clear  ) 
 

Clear hash table.

Copyright © 1997-2004 Jeroen van der Zijp