#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) |
Public Member Functions inherited from RTT::types::BinaryOp | |
virtual | ~BinaryOp () |
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.
|
private |
Definition at line 87 of file OperatorTypes.hpp.
|
private |
Definition at line 88 of file OperatorTypes.hpp.
|
private |
Definition at line 89 of file OperatorTypes.hpp.
|
inline |
Definition at line 93 of file OperatorTypes.hpp.
|
inlinevirtual |
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.
|
inlinevirtual |
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.
|
private |
Definition at line 91 of file OperatorTypes.hpp.
|
private |
Definition at line 90 of file OperatorTypes.hpp.