Public Member Functions | Private Types | Private Attributes
RTT::types::BinaryOperator< function > Class Template Reference

#include <OperatorTypes.hpp>

Inheritance diagram for RTT::types::BinaryOperator< function >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BinaryOperator (const char *op, function f)
internal::DataSource< result_t > * build (const std::string &op, base::DataSourceBase *a, base::DataSourceBase *b)
bool isExactMatch (const std::string &op, base::DataSourceBase *a, base::DataSourceBase *b)

Private Types

typedef internal::remove_cr
< typename
function::first_argument_type >
::type 
arg1_t
typedef internal::remove_cr
< typename
function::second_argument_type >
::type 
arg2_t
typedef internal::remove_cr
< typename
function::result_type >::type 
result_t

Private Attributes

function fun
const char * mop

Detailed Description

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

An operator which reads a two DataSources and returns a modified result.

Definition at line 84 of file OperatorTypes.hpp.


Member Typedef Documentation

template<typename function>
typedef internal::remove_cr<typename function::first_argument_type>::type RTT::types::BinaryOperator< function >::arg1_t [private]

Definition at line 87 of file OperatorTypes.hpp.

template<typename function>
typedef internal::remove_cr<typename function::second_argument_type>::type RTT::types::BinaryOperator< function >::arg2_t [private]

Definition at line 88 of file OperatorTypes.hpp.

template<typename function>
typedef internal::remove_cr<typename function::result_type>::type RTT::types::BinaryOperator< function >::result_t [private]

Definition at line 89 of file OperatorTypes.hpp.


Constructor & Destructor Documentation

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

Definition at line 93 of file OperatorTypes.hpp.


Member Function Documentation

template<typename function>
internal::DataSource<result_t>* RTT::types::BinaryOperator< function >::build ( const std::string &  op,
base::DataSourceBase a,
base::DataSourceBase b 
) [inline, 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.

Implements RTT::types::BinaryOp.

Definition at line 97 of file OperatorTypes.hpp.

template<typename function>
bool RTT::types::BinaryOperator< function >::isExactMatch ( const std::string &  op,
base::DataSourceBase a,
base::DataSourceBase b 
) [inline, virtual]

Returns true if this binary operator matches op, and a and b are the exact types this operator expects.

Implements RTT::types::BinaryOp.

Definition at line 115 of file OperatorTypes.hpp.


Member Data Documentation

template<typename function>
function RTT::types::BinaryOperator< function >::fun [private]

Definition at line 91 of file OperatorTypes.hpp.

template<typename function>
const char* RTT::types::BinaryOperator< function >::mop [private]

Definition at line 90 of file OperatorTypes.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Sat Jun 8 2019 18:46:40