reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::KeyValueStore Class Reference

#include <KeyValueStore.hxx>

Classes

class  KeyValueStoreKeyAllocator
 
struct  Value
 

Public Types

typedef unsigned long Key
 

Public Member Functions

 KeyValueStore ()
 
 KeyValueStore (const KeyValueStoreKeyAllocator &keyAllocator)
 
virtual ~KeyValueStore ()
 
Key allocateNewKey ()
 
void setDataValue (Key key, const Data &value)
 
const Data & getDataValue (Key key) const
 
Data & getDataValue (Key key)
 
void setBoolValue (Key key, bool value)
 
const bool & getBoolValue (Key key) const
 
bool & getBoolValue (Key key)
 
void setCharValue (Key key, char value)
 
const char & getCharValue (Key key) const
 
char & getCharValue (Key key)
 
void setShortValue (Key key, short value)
 
const short & getShortValue (Key key) const
 
short & getShortValue (Key key)
 
void setUShortValue (Key key, unsigned short value)
 
const unsigned short & getUShortValue (Key key) const
 
unsigned short & getUShortValue (Key key)
 
void setIntValue (Key key, int value)
 
const int & getIntValue (Key key) const
 
int & getIntValue (Key key)
 
void setUIntValue (Key key, unsigned int value)
 
const unsigned int & getUIntValue (Key key) const
 
unsigned int & getUIntValue (Key key)
 
void setUInt64Value (Key key, uint64_t value)
 
const uint64_t & getUInt64Value (Key key) const
 
uint64_t & getUInt64Value (Key key)
 

Protected Types

typedef std::vector< Value > KeyValueStoreContainer
 

Protected Attributes

KeyValueStoreContainer mKeyValueStore
 
KeyValueStoreKeyAllocator mKeyAllocator
 

Friends

EncodeStream & operator<< (EncodeStream &strm, const KeyValueStore &store)
 

Detailed Description

Definition at line 12 of file KeyValueStore.hxx.

Member Typedef Documentation

◆ Key

typedef unsigned long resip::KeyValueStore::Key

Definition at line 15 of file KeyValueStore.hxx.

◆ KeyValueStoreContainer

typedef std::vector<Value> resip::KeyValueStore::KeyValueStoreContainer
protected

Definition at line 79 of file KeyValueStore.hxx.

Constructor & Destructor Documentation

◆ KeyValueStore() [1/2]

resip::KeyValueStore::KeyValueStore ( )

Definition at line 15 of file KeyValueStore.cxx.

◆ KeyValueStore() [2/2]

resip::KeyValueStore::KeyValueStore ( const KeyValueStoreKeyAllocator &  keyAllocator)

Definition at line 19 of file KeyValueStore.cxx.

◆ ~KeyValueStore()

resip::KeyValueStore::~KeyValueStore ( )
virtual

Definition at line 31 of file KeyValueStore.cxx.

Member Function Documentation

◆ allocateNewKey()

KeyValueStore::Key resip::KeyValueStore::allocateNewKey ( )

Definition at line 41 of file KeyValueStore.cxx.

◆ getBoolValue() [1/2]

bool & resip::KeyValueStore::getBoolValue ( Key  key)
inline

Definition at line 38 of file KeyValueStore.hxx.

◆ getBoolValue() [2/2]

const bool & resip::KeyValueStore::getBoolValue ( Key  key) const
inline

Definition at line 37 of file KeyValueStore.hxx.

◆ getCharValue() [1/2]

char & resip::KeyValueStore::getCharValue ( Key  key)
inline

Definition at line 42 of file KeyValueStore.hxx.

◆ getCharValue() [2/2]

const char & resip::KeyValueStore::getCharValue ( Key  key) const
inline

Definition at line 41 of file KeyValueStore.hxx.

◆ getDataValue() [1/2]

Data & resip::KeyValueStore::getDataValue ( Key  key)

Definition at line 75 of file KeyValueStore.cxx.

◆ getDataValue() [2/2]

const Data & resip::KeyValueStore::getDataValue ( Key  key) const

Definition at line 65 of file KeyValueStore.cxx.

◆ getIntValue() [1/2]

int & resip::KeyValueStore::getIntValue ( Key  key)
inline

Definition at line 54 of file KeyValueStore.hxx.

◆ getIntValue() [2/2]

const int & resip::KeyValueStore::getIntValue ( Key  key) const
inline

Definition at line 53 of file KeyValueStore.hxx.

◆ getShortValue() [1/2]

short & resip::KeyValueStore::getShortValue ( Key  key)
inline

Definition at line 46 of file KeyValueStore.hxx.

◆ getShortValue() [2/2]

const short & resip::KeyValueStore::getShortValue ( Key  key) const
inline

Definition at line 45 of file KeyValueStore.hxx.

◆ getUInt64Value() [1/2]

uint64_t & resip::KeyValueStore::getUInt64Value ( Key  key)
inline

Definition at line 62 of file KeyValueStore.hxx.

◆ getUInt64Value() [2/2]

const uint64_t & resip::KeyValueStore::getUInt64Value ( Key  key) const
inline

Definition at line 61 of file KeyValueStore.hxx.

◆ getUIntValue() [1/2]

unsigned int & resip::KeyValueStore::getUIntValue ( Key  key)
inline

Definition at line 58 of file KeyValueStore.hxx.

◆ getUIntValue() [2/2]

const unsigned int & resip::KeyValueStore::getUIntValue ( Key  key) const
inline

Definition at line 57 of file KeyValueStore.hxx.

◆ getUShortValue() [1/2]

unsigned short & resip::KeyValueStore::getUShortValue ( Key  key)
inline

Definition at line 50 of file KeyValueStore.hxx.

◆ getUShortValue() [2/2]

const unsigned short & resip::KeyValueStore::getUShortValue ( Key  key) const
inline

Definition at line 49 of file KeyValueStore.hxx.

◆ setBoolValue()

void resip::KeyValueStore::setBoolValue ( Key  key,
bool  value 
)
inline

Definition at line 36 of file KeyValueStore.hxx.

◆ setCharValue()

void resip::KeyValueStore::setCharValue ( Key  key,
char  value 
)
inline

Definition at line 40 of file KeyValueStore.hxx.

◆ setDataValue()

void resip::KeyValueStore::setDataValue ( Key  key,
const Data &  value 
)

Definition at line 52 of file KeyValueStore.cxx.

◆ setIntValue()

void resip::KeyValueStore::setIntValue ( Key  key,
int  value 
)
inline

Definition at line 52 of file KeyValueStore.hxx.

◆ setShortValue()

void resip::KeyValueStore::setShortValue ( Key  key,
short  value 
)
inline

Definition at line 44 of file KeyValueStore.hxx.

◆ setUInt64Value()

void resip::KeyValueStore::setUInt64Value ( Key  key,
uint64_t  value 
)
inline

Definition at line 60 of file KeyValueStore.hxx.

◆ setUIntValue()

void resip::KeyValueStore::setUIntValue ( Key  key,
unsigned int  value 
)
inline

Definition at line 56 of file KeyValueStore.hxx.

◆ setUShortValue()

void resip::KeyValueStore::setUShortValue ( Key  key,
unsigned short  value 
)
inline

Definition at line 48 of file KeyValueStore.hxx.

Friends And Related Symbol Documentation

◆ operator<<

EncodeStream & operator<< ( EncodeStream &  strm,
const KeyValueStore &  store 
)
friend

Definition at line 84 of file KeyValueStore.cxx.

Member Data Documentation

◆ mKeyAllocator

KeyValueStoreKeyAllocator resip::KeyValueStore::mKeyAllocator
protected

Definition at line 81 of file KeyValueStore.hxx.

◆ mKeyValueStore

KeyValueStoreContainer resip::KeyValueStore::mKeyValueStore
protected

Definition at line 80 of file KeyValueStore.hxx.


The documentation for this class was generated from the following files: