#include <mapped_value.h>
Public Member Functions | |
void | clear () |
size_t | count (const std::string &name) const |
bool | empty () const |
const ValueStore & | operator[] (const std::string &name) const |
size_t | size () const |
ValueMap () | |
~ValueMap () | |
Static Public Member Functions | |
template<class T > | |
static bool | add (ValueMap *this_, const std::string &name, const T *value) |
Private Types | |
typedef std::map< std::string, ValueStore > | MapType |
Private Member Functions | |
ValueMap & | operator= (const ValueMap &) |
ValueMap (const ValueMap &) | |
Private Attributes | |
MapType | map_ |
Type for storing anonymous values
Maps option names to their values
Definition at line 45 of file mapped_value.h.
typedef std::map<std::string, ValueStore> ProgramOptions::ValueMap::MapType [private] |
Definition at line 74 of file mapped_value.h.
ProgramOptions::ValueMap::ValueMap | ( | ) | [inline] |
Definition at line 47 of file mapped_value.h.
ProgramOptions::ValueMap::~ValueMap | ( | ) | [inline] |
Definition at line 48 of file mapped_value.h.
ProgramOptions::ValueMap::ValueMap | ( | const ValueMap & | ) | [private] |
static bool ProgramOptions::ValueMap::add | ( | ValueMap * | this_, |
const std::string & | name, | ||
const T * | value | ||
) | [inline, static] |
Definition at line 61 of file mapped_value.h.
void ProgramOptions::ValueMap::clear | ( | ) | [inline] |
Definition at line 52 of file mapped_value.h.
size_t ProgramOptions::ValueMap::count | ( | const std::string & | name | ) | const [inline] |
Definition at line 51 of file mapped_value.h.
bool ProgramOptions::ValueMap::empty | ( | ) | const [inline] |
Definition at line 49 of file mapped_value.h.
const ValueStore& ProgramOptions::ValueMap::operator[] | ( | const std::string & | name | ) | const [inline] |
Definition at line 53 of file mapped_value.h.
size_t ProgramOptions::ValueMap::size | ( | ) | const [inline] |
Definition at line 50 of file mapped_value.h.
MapType ProgramOptions::ValueMap::map_ [private] |
Definition at line 75 of file mapped_value.h.