#include <OperatorTypes.hpp>
Public Member Functions | |
BinaryOperator (const char *op, function f) | |
internal::DataSource< result_t > * | build (const std::string &op, base::DataSourceBase *a, base::DataSourceBase *b) |
bool | isExactMatch (const std::string &op, base::DataSourceBase *a, base::DataSourceBase *b) |
Private Types | |
typedef internal::remove_cr < typename function::first_argument_type > ::type | arg1_t |
typedef internal::remove_cr < typename function::second_argument_type > ::type | arg2_t |
typedef internal::remove_cr < typename function::result_type >::type | result_t |
Private Attributes | |
function | fun |
const char * | mop |
An operator which reads a two DataSources and returns a modified result.
Definition at line 84 of file OperatorTypes.hpp.
typedef internal::remove_cr<typename function::first_argument_type>::type RTT::types::BinaryOperator< function >::arg1_t [private] |
Definition at line 87 of file OperatorTypes.hpp.
typedef internal::remove_cr<typename function::second_argument_type>::type RTT::types::BinaryOperator< function >::arg2_t [private] |
Definition at line 88 of file OperatorTypes.hpp.
typedef internal::remove_cr<typename function::result_type>::type RTT::types::BinaryOperator< function >::result_t [private] |
Definition at line 89 of file OperatorTypes.hpp.
RTT::types::BinaryOperator< function >::BinaryOperator | ( | const char * | op, |
function | f | ||
) | [inline] |
Definition at line 93 of file OperatorTypes.hpp.
internal::DataSource<result_t>* RTT::types::BinaryOperator< function >::build | ( | const std::string & | op, |
base::DataSourceBase * | a, | ||
base::DataSourceBase * | b | ||
) | [inline, virtual] |
If op is the operator you are responsible for, and if the argument internal::DataSource's are of the correct type, then return an appropriate internal::DataSource ( i.e. a internal::DataSource that will apply a certain operation on the values it gets from its argument DataSources, and will return that value ). Otherwise, return 0.
Implements RTT::types::BinaryOp.
Definition at line 97 of file OperatorTypes.hpp.
bool RTT::types::BinaryOperator< function >::isExactMatch | ( | const std::string & | op, |
base::DataSourceBase * | a, | ||
base::DataSourceBase * | b | ||
) | [inline, virtual] |
Returns true if this binary operator matches op, and a and b are the exact types this operator expects.
Implements RTT::types::BinaryOp.
Definition at line 115 of file OperatorTypes.hpp.
function RTT::types::BinaryOperator< function >::fun [private] |
Definition at line 91 of file OperatorTypes.hpp.
const char* RTT::types::BinaryOperator< function >::mop [private] |
Definition at line 90 of file OperatorTypes.hpp.