An object keeping user data passed from user's custom main function.
More...
#include <userdata.h>
An object keeping user data passed from user's custom main function.
Definition at line 120 of file userdata.h.
◆ UserData() [1/2]
OTest2::UserData::UserData |
( |
const UserData & |
| ) |
|
|
delete |
◆ UserData() [2/2]
OTest2::UserData::UserData |
( |
| ) |
|
◆ ~UserData()
OTest2::UserData::~UserData |
( |
| ) |
|
◆ getDatum()
template<typename Type_ >
std::add_lvalue_reference<Type_>::type OTest2::UserData::getDatum |
( |
const std::string & |
name_ | ) |
const |
|
inline |
Get user datum of specified type.
- Template Parameters
-
Type_ | The requested type of the datum |
- Parameters
-
- Returns
- Reference to the user datum value
- Exceptions
-
Definition at line 212 of file userdata.h.
◆ operator=()
◆ setDatum()
template<typename Type_ >
void OTest2::UserData::setDatum |
( |
const std::string & |
name_, |
|
|
Type_ * |
datum_ |
|
) |
| |
|
inline |
Set a user datum.
- Parameters
-
name_ | Name of the datum. |
datum_ | The actual datum. The ownership is not taken and the object must exist for the whole lifetime of this object. |
Definition at line 195 of file userdata.h.
The documentation for this class was generated from the following files: