FX::FXHash Class Reference

#include <FXHash.h>

List of all members.


Detailed Description

A hash table for associating pointers to pointers.

Public Member Functions

 FXHash ()
void size (FXuint m)
FXint size () const
FXuint no () const
void * insert (void *key, void *value)
void * replace (void *key, void *value)
void * remove (void *key)
void * find (void *key) const
bool empty (FXint pos) const
void * key (FXint pos) const
void * value (FXint pos) const
void clear ()
virtual ~FXHash ()

Constructor & Destructor Documentation

FX::FXHash::FXHash (  ) 

Construct empty hash table.

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

Destructor.


Member Function Documentation

void FX::FXHash::size ( FXuint  m  ) 

Resize the table to the given size.

FXint FX::FXHash::size (  )  const [inline]

Return the size of the table.

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

Return number of items in table.

void* FX::FXHash::insert ( void *  key,
void *  value 
)

Insert key into the table.

void* FX::FXHash::replace ( void *  key,
void *  value 
)

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.

bool FX::FXHash::empty ( FXint  pos  )  const [inline]

Return true if slot is empty.

void* FX::FXHash::key ( FXint  pos  )  const [inline]

Return key at position pos.

void* FX::FXHash::value ( FXint  pos  )  const [inline]

Return data pointer at position pos.

void FX::FXHash::clear (  ) 

Clear hash table.


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

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 22:01:04 2008 for TnFOX by doxygen v1.5.6