4#ifndef RUDIMENTS_DICTIONARY_H
5#define RUDIMENTS_DICTIONARY_H
7#include <rudiments/private/dictionaryincludes.h>
11template <
class keytype,
class valuetype>
94 void setValue(keytype key, valuetype value);
101 void setValues(keytype *keys, valuetype *values);
108 void setValues(keytype
const *keys, valuetype
const *values);
115 void setValues(keytype *keys, valuetype *values,
123 void setValues(keytype
const *keys, valuetype
const *values,
135 bool getValue(keytype key, valuetype *value);
146 bool getKey(keytype key, keytype *k);
152 keytype
getKey(keytype key);
190 #include <rudiments/private/dictionary.h>
193#include <rudiments/private/dictionaryinlines.h>
Definition dictionary.h:12
dictionary< keytype, valuetype > & operator=(dictionary< keytype, valuetype > &a)
Definition dictionaryinlines.h:98
bool getTrackInsertionOrder()
Definition dictionaryinlines.h:205
bool setTrackInsertionOrder(bool trackinsertionorder)
Definition dictionaryinlines.h:194
dictionary(bool trackinsertionorder)
bool clear()
Definition dictionaryinlines.h:408
bool getValue(keytype key, valuetype *value)
Definition dictionaryinlines.h:309
uint64_t getCount()
Definition dictionaryinlines.h:382
linkedlist< keytype > * getKeys()
Definition dictionaryinlines.h:363
bool getKey(keytype key, keytype *k)
Definition dictionaryinlines.h:331
void setValue(keytype key, valuetype value)
Definition dictionaryinlines.h:211
void setValues(keytype *keys, valuetype *values)
Definition dictionaryinlines.h:226
~dictionary()
Definition dictionaryinlines.h:187
bool remove(keytype key)
Definition dictionaryinlines.h:388
dictionary()
Definition dictionaryinlines.h:32
Definition dictionarycollection.h:13
Definition linkedlist.h:47