An operator which reads a single DataSource and returns a modified result. More...
#include <rtt/OperatorTypes.hpp>
Public Member Functions | |
UnaryOperator (const char *op, function f) | |
DataSource< result_t > * | build (const std::string &op, DataSourceBase *a) |
If op is the operator you are responsible for, and if the argument DataSource is of the correct type, then return an appropriate DataSource. |
An operator which reads a single DataSource and returns a modified result.
Definition at line 50 of file OperatorTypes.hpp.
DataSource<result_t>* RTT::detail::UnaryOperator< function >::build | ( | const std::string & | op, | |
DataSourceBase * | a | |||
) | [inline, 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.
Implements RTT::detail::UnaryOp.
Definition at line 53 of file OperatorTypes.hpp.