4 #ifndef RUDIMENTS_DICTIONARY_H
5 #define RUDIMENTS_DICTIONARY_H
7 #include <rudiments/private/dictionaryincludes.h>
11 template <
class keytype,
class valuetype>
38 int32_t
compare(keytype testkey)
const;
44 #include <rudiments/private/dictionarynode.h>
56 template <
class keytype,
class valuetype>
71 void setValue(keytype key, valuetype value);
76 bool getValue(keytype key, valuetype *value);
91 bool remove(keytype key);
114 #include <rudiments/private/dictionary.h>
119 #define namevaluepairsnode dictionarynode< char *, char * >
120 #define namevaluepairs dictionary< char *, char * >
121 #define constnamevaluepairsnode dictionarynode< const char *, const char * >
122 #define constnamevaluepairs dictionary< const char *, const char * >
124 #include <rudiments/private/dictionaryinlines.h>
void setValue(valuetype value)
linkedlist< keytype > * getKeys()
Definition: linkedlist.h:60
Definition: dictionary.h:12
int32_t compare(keytype testkey) const
bool getValue(keytype key, valuetype *value)
virtual ~dictionarynode()
Definition: dictionary.h:57
linkedlist< dictionarynode< keytype, valuetype > * > * getList()
dictionarynode< keytype, valuetype > * detach(keytype key)
void setValue(keytype key, valuetype value)
dictionarynode(keytype key, valuetype value)
dictionarynode< keytype, valuetype > * getNode(keytype key)
valuetype getValue() const