Orocos Real-Time Toolkit  2.9.0
Public Member Functions | List of all members
RTT::types::UnaryOperator< function > Class Template Reference

An operator which reads a single internal::DataSource and returns a modified result. More...

#include <rtt/types/OperatorTypes.hpp>

Inheritance diagram for RTT::types::UnaryOperator< function >:
RTT::types::UnaryOp

Public Member Functions

 UnaryOperator (const char *op, function f)
 
internal::DataSource< result_t > * build (const std::string &op, base::DataSourceBase *a)
 If op is the operator you are responsible for, and if the argument internal::DataSource is of the correct type, then return an appropriate DataSource. More...
 

Detailed Description

template<typename function>
class RTT::types::UnaryOperator< function >

An operator which reads a single internal::DataSource and returns a modified result.

Definition at line 55 of file OperatorTypes.hpp.

Constructor & Destructor Documentation

template<typename function>
RTT::types::UnaryOperator< function >::UnaryOperator ( const char *  op,
function  f 
)
inline

Definition at line 63 of file OperatorTypes.hpp.

Member Function Documentation

template<typename function>
internal::DataSource<result_t>* RTT::types::UnaryOperator< function >::build ( const std::string &  op,
base::DataSourceBase a 
)
inlinevirtual

If op is the operator you are responsible for, and if the argument internal::DataSource is of the correct type, then return an appropriate DataSource.

( i.e. a internal::DataSource that will apply a certain operation on the value it gets from its argument internal::DataSource, and will return that value ). Otherwise, return 0.

Implements RTT::types::UnaryOp.

Definition at line 67 of file OperatorTypes.hpp.


The documentation for this class was generated from the following file: