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;
50 #include <rudiments/private/dictionarynode.h> 62 template <
class keytype,
class valuetype>
106 bool setTrackInsertionOrder(
bool trackinsertionorder);
110 bool getTrackInsertionOrder();
115 void setValue(keytype key, valuetype value);
122 void setValues(keytype *keys, valuetype *values);
123 void setValues(keytype
const *keys, valuetype
const *values);
130 void setValues(keytype *keys, valuetype *values,
132 void setValues(keytype
const *keys, valuetype
const *values,
144 bool getValue(keytype key, valuetype *value);
159 bool remove(keytype key);
186 void clearAndDelete();
191 void clearAndArrayDelete();
196 void clearAndDeleteKeys();
201 void clearAndArrayDeleteKeys();
206 void clearAndDeleteValues();
211 void clearAndArrayDeleteValues();
216 void clearAndDeleteKeysAndArrayDeleteValues();
221 void clearAndArrayDeleteKeysAndDeleteValues();
226 #include <rudiments/private/dictionary.h> 231 #define namevaluepairsnode dictionarynode< char *, char * > 232 #define namevaluepairs dictionary< char *, char * > 233 #define constnamevaluepairsnode dictionarynode< const char *, const char * > 234 #define constnamevaluepairs dictionary< const char *, const char * > 236 #include <rudiments/private/dictionaryinlines.h>
valuetype getValue() const
void setValue(valuetype value)
Definition: linkedlist.h:60
Definition: dictionary.h:12
virtual ~dictionarynode()
Definition: dictionary.h:63
int32_t compare(keytype testkey) const
dictionarynode(keytype key, valuetype value)