clingo
|
A type that can hold any kind of value type. More...
#include <value_store.h>
Public Member Functions | |
ValueStore () | |
creates an empty object More... | |
ValueStore (const ValueStore &other) | |
copies the value in other More... | |
template<class T > | |
ValueStore (const T &obj) | |
stores a copy of obj More... | |
~ValueStore () | |
releases any stored value More... | |
ValueStore & | operator= (ValueStore other) |
stores a copy of other releasing any previous value More... | |
template<class T > | |
ValueStore & | operator= (const T &obj) |
stores a copy of obj releasing any previous value More... | |
template<class T > | |
ValueStore & | assimilate (T *obj) |
stores obj in this and takes over ownership of obj More... | |
void | swap (ValueStore &other) |
swaps this with other More... | |
bool | empty () const |
Returns true if holder does not contain a value. More... | |
const std::type_info & | type () const |
Returns the type of the stored value. More... | |
void | clear () |
destroys and releases any stored value More... | |
void | surrender () |
surrenders any stored value without destroying it More... | |
void * | extract_raw () const |
A type that can hold any kind of value type.
ProgramOptions::ValueStore::ValueStore | ( | ) |
creates an empty object
ProgramOptions::ValueStore::ValueStore | ( | const ValueStore & | other | ) |
copies the value in other
|
inline |
stores a copy of obj
ProgramOptions::ValueStore::~ValueStore | ( | ) |
releases any stored value
|
inline |
stores obj in this and takes over ownership of obj
void ProgramOptions::ValueStore::clear | ( | ) |
destroys and releases any stored value
|
inline |
Returns true if holder does not contain a value.
|
inline |
ValueStore & ProgramOptions::ValueStore::operator= | ( | ValueStore | other | ) |
stores a copy of other releasing any previous value
|
inline |
stores a copy of obj releasing any previous value
void ProgramOptions::ValueStore::surrender | ( | ) |
surrenders any stored value without destroying it
void ProgramOptions::ValueStore::swap | ( | ValueStore & | other | ) |
swaps this with other
const std::type_info & ProgramOptions::ValueStore::type | ( | ) | const |
Returns the type of the stored value.