![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXHash.h>
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 () |
A hash table for associating pointers to pointers.
| FX::FXHash::FXHash | ( | ) |
Construct empty hash table.
|
virtual |
Destructor.
| void FX::FXHash::size | ( | FXuint | m | ) |
Resize the table to the given size.
|
inline |
Return the size of the table.
|
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.
|
inline |
Return key at position pos.
|
inline |
Return data pointer at position pos.
| void FX::FXHash::clear | ( | ) |
Clear hash table.
|
|