21 #ifndef REVERSEDICTIONARYOF_H 22 #define REVERSEDICTIONARYOF_H 33 template<
typename TYPE>
FXString & at(const void *ky)
Return reference to slot assocated with given key.
FXival find(const void *ky) const
Find position of given key, returning -1 if not found.
FXString remove(const void *ky)
Remove association with given key; return old value, if any.
FXbool has(const void *ky) const
Check if key is mapped.
Definition: FXReverseDictionary.h:90
FXString & data(FXival pos)
Return reference to slot at position pos.
Definition: FXReverseDictionaryOf.h:80
FXString insert(TYPE *ky, const FXString &str=FXString::null)
Insert association with given key; return old value, if any.
Definition: FXReverseDictionaryOf.h:68
FXString erase(FXival pos)
Erase data at pos in the table; return old value, if any.
Definition: FXReverseDictionaryOf.h:74
FXival find(TYPE *ky) const
Find position of given key, returning -1 if not found.
Definition: FXReverseDictionaryOf.h:50
const FXString & operator[](TYPE *ky) const
Return constant reference to slot assocated with given key.
Definition: FXReverseDictionaryOf.h:65
FXReverseDictionaryOf< TYPE > & operator=(const FXReverseDictionaryOf< TYPE > &other)
Assignment operator.
Definition: FXReverseDictionaryOf.h:44
FXReverseDictionary & operator=(const FXReverseDictionary &other)
Assignment operator.
const FXString & at(TYPE *ky) const
Return constant reference to slot assocated with given key.
Definition: FXReverseDictionaryOf.h:59
The reverse dictionary class is a fast-access hash table, mapping void-pointers to strings...
Definition: FXReverseDictionary.h:39
FXReverseDictionaryOf(const FXReverseDictionaryOf< TYPE > &other)
Copy constructor.
Definition: FXReverseDictionaryOf.h:41
FXReverseDictionaryOf()
Default constructor.
Definition: FXReverseDictionaryOf.h:38
FXReverseDictionaryOf< TYPE > & adopt(FXReverseDictionaryOf< TYPE > &other)
Adopt reverse dictionary from another.
Definition: FXReverseDictionaryOf.h:47
Definition: FX4Splitter.h:28
FXString & at(TYPE *ky)
Return reference to slot assocated with given key.
Definition: FXReverseDictionaryOf.h:56
FXString & data(FXival pos)
Return reference to slot at position pos.
Definition: FXReverseDictionary.h:120
const FXString & data(FXival pos) const
Return constant reference to slot at position pos.
Definition: FXReverseDictionaryOf.h:83
const void * key(FXival pos) const
Return key at position pos.
Definition: FXReverseDictionary.h:117
FXString & operator[](TYPE *ky)
Return reference to slot assocated with given key.
Definition: FXReverseDictionaryOf.h:62
FXString insert(const void *ky, const FXString &str=FXString::null)
Insert association with given key; return old value, if any.
Definition: FXReverseDictionary.h:105
FXReverseDictionary & adopt(FXReverseDictionary &other)
Adopt dictionary from another.
Dictionary of pointers to TYPE.
Definition: FXReverseDictionaryOf.h:34
FXbool has(TYPE *ky) const
Check if key is mapped.
Definition: FXReverseDictionaryOf.h:53
TYPE * key(FXival pos) const
Return key at position pos.
Definition: FXReverseDictionaryOf.h:77
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42
FXString erase(FXival pos)
Erase data at pos in the table; return old value, if any.