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 ()
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 ()


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

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.

Copyright © 1997-2005 Jeroen van der Zijp