tlp::DataSet Struct Reference#include <Reflect.h>
List of all members.
Detailed Description
A container which allows insertion of different types. The inserted data must have a copy-constructor well done
Public Member Functions
Constructor & Destructor Documentation
tlp::DataSet::DataSet |
( |
|
) |
[inline] |
|
tlp::DataSet::DataSet |
( |
const DataSet & |
set |
) |
|
|
tlp::DataSet::~DataSet |
( |
|
) |
|
|
Member Function Documentation
bool tlp::DataSet::exist |
( |
const std::string & |
str |
) |
const |
|
|
return true if str exists else false. |
template<typename T> |
bool tlp::DataSet::get |
( |
const std::string & |
str, |
|
|
T & |
value |
|
) |
const |
|
|
Returns a copy of the value of the variable with name str. Type are checked in Debug Mode. If the variable str doesn't exist return false else true. |
template<typename T> |
bool tlp::DataSet::getAndFree |
( |
const std::string & |
str, |
|
|
T & |
value |
|
) |
|
|
|
Returns a copy of the value of the variable with name str. Type are checked in Debug Mode. If the variable str doesn't exist return false else true. The data is removed after the call. |
Iterator< std::pair<std::string, DataType*> >* tlp::DataSet::getValues |
( |
|
) |
const |
|
|
Return an iterator on all values |
template<typename T> |
void tlp::DataSet::set |
( |
const std::string & |
str, |
|
|
const T & |
value |
|
) |
|
|
|
Set the value of the variable str. |
|