![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Dictionary of pointers to TYPE. More...
#include <FXReverseDictionaryOf.h>
Public Member Functions | |
| FXReverseDictionaryOf () | |
| Default constructor. | |
| FXReverseDictionaryOf (const FXReverseDictionaryOf< TYPE > &other) | |
| Copy constructor. | |
| FXReverseDictionaryOf< TYPE > & | operator= (const FXReverseDictionaryOf< TYPE > &other) |
| Assignment operator. | |
| FXReverseDictionaryOf< TYPE > & | adopt (FXReverseDictionaryOf< TYPE > &other) |
| Adopt reverse dictionary from another. | |
| FXival | find (TYPE *ky) const |
| Find position of given key, returning -1 if not found. | |
| FXbool | has (TYPE *ky) const |
| Check if key is mapped. | |
| FXString & | at (TYPE *ky) |
| Return reference to slot assocated with given key. | |
| const FXString & | at (TYPE *ky) const |
| Return constant reference to slot assocated with given key. | |
| FXString & | operator[] (TYPE *ky) |
| Return reference to slot assocated with given key. | |
| const FXString & | operator[] (TYPE *ky) const |
| Return constant reference to slot assocated with given key. | |
| FXString | insert (TYPE *ky, const FXString &str=FXString::null) |
| Insert association with given key; return old value, if any. | |
| FXString | remove (TYPE *ky) |
| 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. | |
| FXString & | data (FXival pos) |
| Return reference to slot at position pos. | |
| const FXString & | data (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. | |
| FXReverseDictionary & | operator= (const FXReverseDictionary &other) |
| Assignment operator. | |
| FXReverseDictionary & | adopt (FXReverseDictionary &other) |
| Adopt dictionary from another. | |
| FXival | find (const void *ky) const |
| Find position of given key, returning -1 if not found. | |
| FXbool | has (const void *ky) const |
| Check if key is mapped. | |
| FXString & | at (const void *ky) |
| Return reference to slot assocated with given key. | |
| const FXString & | at (const void *ky) const |
| Return constant reference to slot assocated with given key. | |
| FXString & | operator[] (const void *ky) |
| Return reference to slot assocated with given key. | |
| const FXString & | operator[] (const void *ky) const |
| Return constant reference to slot assocated with given key. | |
| FXString | insert (const void *ky, const FXString &str=FXString::null) |
| Insert association with given key; return old value, if any. | |
| FXString | remove (const void *ky) |
| 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. | |
| const void * | key (FXival pos) const |
| Return key at position pos. | |
| FXString & | data (FXival pos) |
| Return reference to slot at position pos. | |
| const FXString & | data (FXival pos) const |
| Return constant reference to slot at position pos. | |
| FXbool | 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 | |
| Entry * | table |
Dictionary of pointers to TYPE.
Two special key values are disallowed: NULL and the pointer value (-1L); NULL is used to designate an unoccupied slot, while (-1L) is used to designate a formerly occupied slot.
|
|