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

FX::FXHashOf< KEYTYPE, VALUETYPE > Class Template Reference

Hash table of pointers to KEYTYPE to pointers of VALUETYPE. More...

#include <FXHash.h>

Inheritance diagram for FX::FXHashOf< KEYTYPE, VALUETYPE >:
FX::FXHash

List of all members.

Public Member Functions

 FXHashOf ()
 Default constructor.
 FXHashOf (const FXHashOf< KEYTYPE, VALUETYPE > &src)
 Copy constructor.
VALUETYPE *& at (KEYTYPE *name)
 Return reference to slot assocated with given key.
VALUETYPE *const & at (KEYTYPE *name) const
 Return constant reference to slot assocated with given key.
VALUETYPE *& operator[] (KEYTYPE *name)
 Return reference to slot assocated with given key.
VALUETYPE *const & operator[] (KEYTYPE *name) const
 Return constant reference to slot assocated with given key.
VALUETYPE * insert (KEYTYPE *name, VALUETYPE *data=NULL)
 Insert association with given key; return old value, if any.
VALUETYPE * remove (KEYTYPE *name)
 Remove association with given key; return old value, if any.
VALUETYPE * erase (FXival pos)
 Erase data at pos in the table; return old value, if any.
KEYTYPE * key (FXival pos) const
 Return key at position pos.
VALUETYPE *& value (FXival pos)
 Return reference to slot at position pos.
VALUETYPE *const & value (FXival pos) const
 Return constant reference to slot at position pos.
- Public Member Functions inherited from FX::FXHash
 FXHash ()
 Construct empty hash table.
 FXHash (const FXHash &other)
 Construct from another table.
FXival no () const
 Return the total number of slots in the table.
FXival used () const
 Return number of used slots in the table.
FXival free () const
 Return number of free slots in the table.
FXbool empty () const
 See if hash table is empty.
FXHashoperator= (const FXHash &other)
 Assign from another table.
FXHashadopt (FXHash &other)
 Adopt table from another; the other table becomes empty.
FXival find (FXptr name) const
 Find position of given key, returning -1 if not found.
FXptr & at (FXptr name)
 Return reference to slot assocated with given key.
const FXptr & at (FXptr name) const
 Return constant reference to slot assocated with given key.
FXptr & operator[] (FXptr name)
 Return reference to slot assocated with given key.
const FXptr & operator[] (FXptr name) const
 Return constant reference to slot assocated with given key.
FXptr insert (FXptr name, FXptr data=NULL)
 Replace key in table, overwriting the old value if the given key already exists.
FXptr remove (FXptr name)
 Remove key from the table.
FXbool empty (FXival pos) const
 Return true if slot is not occupied by a key.
void clear ()
 Clear hash table.
 ~FXHash ()
 Destructor.

Additional Inherited Members

- Protected Member Functions inherited from FX::FXHash
FXbool no (FXival n)
void used (FXival u)
void free (FXival f)
FXbool resize (FXival n)
- Protected Attributes inherited from FX::FXHash
Entrytable

Detailed Description

template<typename KEYTYPE, typename VALUETYPE>
class FX::FXHashOf< KEYTYPE, VALUETYPE >

Hash table of pointers to KEYTYPE to pointers of VALUETYPE.


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

Copyright © 1997-2016 Jeroen van der Zijp