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

FX::FXReverseDictionaryOf< TYPE > Class Template Reference

Dictionary of pointers to TYPE. More...

#include <FXReverseDictionary.h>

Inheritance diagram for FX::FXReverseDictionaryOf< TYPE >:
FX::FXReverseDictionary

Public Member Functions

 FXReverseDictionaryOf ()
 Default constructor.
 
 FXReverseDictionaryOf (const FXReverseDictionaryOf< TYPE > &src)
 Copy constructor.
 
FXReverseDictionaryOf< TYPE > & operator= (const FXReverseDictionaryOf< TYPE > &other)
 Assignment operator.
 
FXReverseDictionaryOf< TYPE > & adopt (FXReverseDictionaryOf< TYPE > &src)
 Adopt objects from orig, leaving orig empty.
 
FXStringat (TYPE *key)
 Return reference to slot assocated with given key.
 
const FXStringat (TYPE *key) const
 Return constant reference to slot assocated with given key.
 
FXStringoperator[] (TYPE *key)
 Return reference to slot assocated with given key.
 
const FXStringoperator[] (TYPE *key) const
 Return constant reference to slot assocated with given key.
 
FXString insert (TYPE *key, const FXString &str=FXString::null)
 Insert association with given key; return old value, if any.
 
FXString remove (TYPE *key)
 Remove association with given key; return old value, if any.
 
FXString erase (FXival pos)
 Erase data at pos in the table; return old value, if any.
 
TYPE * key (FXival pos) const
 Return key at position pos.
 
FXStringdata (FXival pos)
 Return reference to slot at position pos.
 
const FXStringdata (FXival pos) const
 Return constant reference to slot at position pos.
 
- Public Member Functions inherited from FX::FXReverseDictionary
 FXReverseDictionary ()
 Construct empty dictionary.
 
 FXReverseDictionary (const FXReverseDictionary &other)
 Construct from another dictionary.
 
FXival no () const
 Return the size of the table, including the empty slots.
 
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 map is empty.
 
FXReverseDictionaryoperator= (const FXReverseDictionary &other)
 Assignment operator.
 
FXReverseDictionaryadopt (FXReverseDictionary &other)
 Adopt dictionary from another.
 
FXival find (FXptr key) const
 Find position of given key, returning -1 if not found.
 
FXbool has (FXptr key) const
 Check if key is mapped.
 
FXStringat (FXptr key)
 Return reference to slot assocated with given key.
 
const FXStringat (FXptr key) const
 Return constant reference to slot assocated with given key.
 
FXStringoperator[] (FXptr key)
 Return reference to slot assocated with given key.
 
const FXStringoperator[] (FXptr key) const
 Return constant reference to slot assocated with given key.
 
FXString insert (FXptr key, const FXString &str=FXString::null)
 Insert association with given key; return old value, if any.
 
FXString remove (FXptr key)
 Remove association with given key; return old value, if any.
 
FXString erase (FXival pos)
 Erase data at pos in the table; return old value, if any.
 
FXbool empty (FXival pos) const
 Return true if slot is empty.
 
FXptr key (FXival pos) const
 Return key at position pos.
 
FXStringdata (FXival pos)
 Return reference to slot at position pos.
 
const FXStringdata (FXival pos) const
 Return constant reference to slot at position pos.
 
void clear ()
 Clear entire table.
 
 ~FXReverseDictionary ()
 Destroy table.
 

Additional Inherited Members

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

Detailed Description

template<typename TYPE>
class FX::FXReverseDictionaryOf< TYPE >

Dictionary of pointers to TYPE.


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

Copyright © 1997-2018 Jeroen van der Zijp