4#ifndef RUDIMENTS_DICTIONARYCOLLECTION_H
5#define RUDIMENTS_DICTIONARYCOLLECTION_H
7#include <rudiments/collection.h>
8#include <rudiments/linkedlist.h>
12template<
class keytype,
class valuetype>
33 virtual void setValue(keytype key, valuetype value)=0;
40 virtual void setValues(keytype *key, valuetype *value)=0;
48 valuetype
const *value)=0;
65 valuetype
const *value,
71 virtual bool getValue(keytype key, valuetype *value)=0;
82 virtual bool getKey(keytype key, keytype *k)=0;
88 virtual keytype
getKey(keytype key)=0;
100 virtual ssize_t
write();
131#include <rudiments/private/dictionarycollectioninlines.h>
Definition collection.h:11
Definition dictionarycollection.h:13
virtual void setValues(keytype *key, valuetype *value, uint64_t count)=0
virtual bool getTrackInsertionOrder()=0
virtual valuetype getValue(keytype key)=0
virtual void setValues(keytype const *key, valuetype const *value, uint64_t count)=0
virtual bool getKey(keytype key, keytype *k)=0
virtual void setValues(keytype *key, valuetype *value)=0
virtual bool remove(keytype key)=0
virtual ssize_t writeJson()
Definition dictionarycollectioninlines.h:26
virtual bool getValue(keytype key, valuetype *value)=0
virtual void setValue(keytype key, valuetype value)=0
virtual ssize_t write()
Definition dictionarycollectioninlines.h:14
virtual linkedlist< keytype > * getKeys()=0
virtual void setValues(keytype const *key, valuetype const *value)=0
virtual keytype getKey(keytype key)=0
virtual const char * getType()
Definition dictionarycollectioninlines.h:8
Definition linkedlist.h:47