#include <OperatorTypes.hpp>
Public Member Functions | |
internal::DataSource< result_t > * | build (const std::string &op, base::DataSourceBase *a) |
UnaryOperator (const char *op, function f) | |
Private Types | |
typedef internal::remove_cr < typename function::argument_type > ::type | arg_t |
typedef internal::remove_cr < typename function::result_type >::type | result_t |
Private Attributes | |
function | fun |
const char * | mop |
An operator which reads a single internal::DataSource and returns a modified result.
Definition at line 55 of file OperatorTypes.hpp.
typedef internal::remove_cr<typename function::argument_type>::type RTT::types::UnaryOperator< function >::arg_t [private] |
Definition at line 58 of file OperatorTypes.hpp.
typedef internal::remove_cr<typename function::result_type>::type RTT::types::UnaryOperator< function >::result_t [private] |
Definition at line 59 of file OperatorTypes.hpp.
RTT::types::UnaryOperator< function >::UnaryOperator | ( | const char * | op, |
function | f | ||
) | [inline] |
Definition at line 63 of file OperatorTypes.hpp.
internal::DataSource<result_t>* RTT::types::UnaryOperator< function >::build | ( | const std::string & | op, |
base::DataSourceBase * | a | ||
) | [inline, virtual] |
If op is the operator you are responsible for, and if the argument internal::DataSource is of the correct type, then return an appropriate DataSource. ( i.e. a internal::DataSource that will apply a certain operation on the value it gets from its argument internal::DataSource, and will return that value ). Otherwise, return 0.
Implements RTT::types::UnaryOp.
Definition at line 67 of file OperatorTypes.hpp.
function RTT::types::UnaryOperator< function >::fun [private] |
Definition at line 61 of file OperatorTypes.hpp.
const char* RTT::types::UnaryOperator< function >::mop [private] |
Definition at line 60 of file OperatorTypes.hpp.