21 #ifndef FXDICTIONARYOF_H 22 #define FXDICTIONARYOF_H 30 template<
typename TYPE>
50 TYPE *
const&
at(
const FXchar* ky)
const {
return reinterpret_cast<TYPE *const&
>(
FXDictionary::at(ky)); }
void *& at(const FXchar *ky)
Return reference to slot assocated with given key.
Dictionary of pointers to TYPE.
Definition: FXDictionaryOf.h:31
FXDictionaryOf()
Default constructor.
Definition: FXDictionaryOf.h:35
FXDictionary & operator=(const FXDictionary &other)
Assignment operator.
void * erase(FXival pos)
Erase data at pos in the table; return old value, if any.
TYPE * insert(const FXString &ky, TYPE *ptr=nullptr)
Insert association with given key; return old value, if any.
Definition: FXDictionaryOf.h:74
TYPE *& operator[](const FXString &ky)
Return reference to slot assocated with given key.
Definition: FXDictionaryOf.h:65
The dictionary class is a fast-access hash table, mapping strings to void-pointers.
Definition: FXDictionary.h:36
TYPE *& data(FXival pos)
Return reference to slot at position pos.
Definition: FXDictionaryOf.h:86
TYPE *const & operator[](const FXString &ky) const
Return constant reference to slot assocated with given key.
Definition: FXDictionaryOf.h:68
FXDictionaryOf< TYPE > & operator=(const FXDictionaryOf< TYPE > &other)
Assignment operator.
Definition: FXDictionaryOf.h:41
FXDictionary & adopt(FXDictionary &other)
Adopt dictionary from another.
TYPE *& operator[](const FXchar *ky)
Return reference to slot assocated with given key.
Definition: FXDictionaryOf.h:59
void *& data(FXival pos)
Return reference to slot at position pos.
Definition: FXDictionary.h:142
FXchar * text()
Get text contents as pointer.
Definition: FXString.h:119
FXDictionaryOf(const FXDictionaryOf< TYPE > &other)
Copy constructor.
Definition: FXDictionaryOf.h:38
TYPE *& at(const FXchar *ky)
Return reference to slot assocated with given key.
Definition: FXDictionaryOf.h:47
Definition: FX4Splitter.h:28
TYPE *const & data(FXival pos) const
Return constant reference to slot at position pos.
Definition: FXDictionaryOf.h:89
TYPE *& at(const FXString &ky)
Return reference to slot assocated with given key.
Definition: FXDictionaryOf.h:53
void * insert(const FXchar *ky, void *ptr=nullptr)
Insert association with given key; return old value, if any.
Definition: FXDictionary.h:121
FXDictionaryOf< TYPE > & adopt(FXDictionaryOf< TYPE > &other)
Adopt dictionary from another.
Definition: FXDictionaryOf.h:44
TYPE *const & operator[](const FXchar *ky) const
Return constant reference to slot assocated with given key.
Definition: FXDictionaryOf.h:62
TYPE * insert(const FXchar *ky, TYPE *ptr=nullptr)
Insert association with given key; return old value, if any.
Definition: FXDictionaryOf.h:71
TYPE *const & at(const FXString &ky) const
Return constant reference to slot assocated with given key.
Definition: FXDictionaryOf.h:56
void * remove(const FXchar *ky)
Remove association with given key; return old value, if any.
TYPE * erase(FXival pos)
Erase data at pos in the table; return old value, if any.
Definition: FXDictionaryOf.h:83
TYPE *const & at(const FXchar *ky) const
Return constant reference to slot assocated with given key.
Definition: FXDictionaryOf.h:50
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42