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);
81 bool remove(keytype key);
92 #include <rudiments/private/dictionary.h>
97 #define namevaluepairsnode dictionarynode< char *, char * >
98 #define namevaluepairs dictionary< char *, char * >
99 #define constnamevaluepairsnode dictionarynode< const char *, const char * >
100 #define constnamevaluepairs dictionary< const char *, const char * >
102 #include <rudiments/private/dictionaryinlines.h>
void setValue(valuetype value)
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()
void setValue(keytype key, valuetype value)
dictionarynode(keytype key, valuetype value)
valuetype getValue() const