RTT::types::UnaryOp Class Reference

#include <Operators.hpp>

Inheritance diagram for RTT::types::UnaryOp:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual base::DataSourceBasebuild (const std::string &op, base::DataSourceBase *a)=0
virtual base::DataSourceBasebuild (const std::string &op, base::DataSourceBase *a)=0
virtual ~UnaryOp ()
virtual ~UnaryOp ()

Detailed Description

UnaryOperator contains information on some unary operator that operates on one arg of a certain type. 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 (internal::identity operator) etc. We always provide templates that accept a STL style adaptable functor..

Definition at line 65 of file install/include/rtt/types/Operators.hpp.


Constructor & Destructor Documentation

RTT::UnaryOp::~UnaryOp (  )  [virtual]

Definition at line 124 of file Operators.cpp.

virtual RTT::types::UnaryOp::~UnaryOp (  )  [virtual]

Member Function Documentation

virtual base::DataSourceBase* RTT::types::UnaryOp::build ( const std::string &  op,
base::DataSourceBase a 
) [pure virtual]

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.

Implemented in RTT::types::UnaryOperator< function >, and RTT::types::UnaryOperator< function >.

virtual base::DataSourceBase* RTT::types::UnaryOp::build ( const std::string &  op,
base::DataSourceBase a 
) [pure virtual]

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.

Implemented in RTT::types::UnaryOperator< function >, and RTT::types::UnaryOperator< function >.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:50:20 2013