#include <rtt/Operators.hpp>

Public Member Functions | |
| virtual DataSourceBase * | build (const std::string &op, DataSourceBase *a)=0 |
| If op is the operator you are responsible for, and if the argument DataSource is of the correct type, then return an appropriate DataSource. | |
Examples of unary operators are logical not for booleans, unary minus for ints, unary minus for doubles, unary minus for vectors, unary plus for ints (identity operator) etc. We always provide templates that accept a STL style adaptable functor..
Definition at line 65 of file Operators.hpp.
| virtual DataSourceBase* RTT::detail::UnaryOp::build | ( | const std::string & | op, | |
| DataSourceBase * | a | |||
| ) | [pure virtual] |
If op is the operator you are responsible for, and if the argument DataSource is of the correct type, then return an appropriate DataSource.
( i.e. a DataSource that will apply a certain operation on the value it gets from its argument DataSource, and will return that value ). Otherwise, return 0.
Implemented in RTT::detail::UnaryOperator< function >.
1.5.8