|
Ocean
|
This class implements a simple helper class allowing to access the value of an arbitrary data type. More...
#include <Caller.h>
Public Member Functions | |
| void | assign (typename std::add_lvalue_reference< T >::type, const void *) |
| void | assign (NullClass &, const void *) |
| void | assign (NullClass &, const void *) |
| void * | address (typename std::add_lvalue_reference< T >::type) |
| void * | address (NullClass &) |
| void * | address (NullClass &) |
Static Public Member Functions | |
| template<typename T > | |
| static void | assign (typename std::add_lvalue_reference< T >::type target, const void *source) |
| Assigns the value of a source parameter to a target parameter. | |
| template<typename T > | |
| static void * | address (typename std::add_lvalue_reference< T >::type parameter) |
| Receives the address of a specified parameter. | |
This class implements a simple helper class allowing to access the value of an arbitrary data type.
The assignment will be applied for any non-reference parameter only.
| tIsReference | True, if the target data type is a reference (so that nothing happens); False, if the target data type will receive the value of the source parameter |
|
inline |
|
inline |
|
inlinestatic |
Receives the address of a specified parameter.
The address will be nullptr if the provided parameter is a reference.
| parameter | The parameter for which the address is requested |
| T | The data type of the source and target parameter |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Assigns the value of a source parameter to a target parameter.
| target | The target parameter receiving the value of the source parameter |
| source | The address of the source parameter |
| T | The data type of the source and target parameter |
|
inline |