#include <Operators.hpp>
Public Member Functions | |
virtual base::DataSourceBase * | build (const std::string &op, base::DataSourceBase *a, base::DataSourceBase *b)=0 |
virtual bool | isExactMatch (const std::string &op, base::DataSourceBase *a, base::DataSourceBase *b)=0 |
virtual | ~BinaryOp () |
Definition at line 80 of file Operators.hpp.
RTT::BinaryOp::~BinaryOp | ( | ) | [virtual] |
Definition at line 128 of file Operators.cpp.
virtual base::DataSourceBase* RTT::types::BinaryOp::build | ( | const std::string & | op, |
base::DataSourceBase * | a, | ||
base::DataSourceBase * | b | ||
) | [pure 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.
Implemented in RTT::types::BinaryOperator< function >.
virtual bool RTT::types::BinaryOp::isExactMatch | ( | const std::string & | op, |
base::DataSourceBase * | a, | ||
base::DataSourceBase * | b | ||
) | [pure virtual] |
Returns true if this binary operator matches op, and a and b are the exact types this operator expects.
Implemented in RTT::types::BinaryOperator< function >.