Orocos Real-Time Toolkit  2.9.0
Public Member Functions | List of all members
RTT::internal::GenerateDataSource Struct Reference

A function object which returns a vector of DataSources. More...

#include <rtt/internal/DataSourceGenerator.hpp>

Public Member Functions

template<class A1 >
std::vector< base::DataSourceBase::shared_ptroperator() (A1 a1)
 
template<class A1 , class A2 >
std::vector< base::DataSourceBase::shared_ptroperator() (A1 a1, A2 a2)
 
template<class A1 , class A2 , class A3 >
std::vector< base::DataSourceBase::shared_ptroperator() (A1 a1, A2 a2, A3 a3)
 
template<class A1 , class A2 , class A3 , class A4 >
std::vector< base::DataSourceBase::shared_ptroperator() (A1 a1, A2 a2, A3 a3, A4 a4)
 
template<class A1 , class A2 , class A3 , class A4 , class A5 , class A6 >
std::vector< base::DataSourceBase::shared_ptroperator() (A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
 
template<class A1 , class A2 , class A3 , class A4 , class A5 , class A6 , class A7 >
std::vector< base::DataSourceBase::shared_ptroperator() (A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
 
template<class A1 , class A2 , class A3 , class A4 , class A5 >
std::vector< base::DataSourceBase::shared_ptroperator() (A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
 

Detailed Description

A function object which returns a vector of DataSources.

You can provide plain value types (int, double,...) or base::DataSourceBase derived types. If you want the DataSource to be a reference to an existing variable, use the ref() function. For example :

base::DataSourceBase::shared_ptr arg2 = ...
ValueDataSource<ClassX>::shared_ptr arg3 = ...
double arg4 = 1.234;
vector<base::DataSourceBase::shared_ptr> arguments = GenerateDataSource()( 12.34, arg2.get(), arg3.get(), ref(arg4) );
assert ( arguments.size() == 4 );

Definition at line 95 of file DataSourceGenerator.hpp.

Member Function Documentation

template<class A1 >
std::vector<base::DataSourceBase::shared_ptr> RTT::internal::GenerateDataSource::operator() ( A1  a1)
inline

Definition at line 98 of file DataSourceGenerator.hpp.

template<class A1 , class A2 >
std::vector<base::DataSourceBase::shared_ptr> RTT::internal::GenerateDataSource::operator() ( A1  a1,
A2  a2 
)
inline
template<class A1 , class A2 , class A3 >
std::vector<base::DataSourceBase::shared_ptr> RTT::internal::GenerateDataSource::operator() ( A1  a1,
A2  a2,
A3  a3 
)
inline
template<class A1 , class A2 , class A3 , class A4 >
std::vector<base::DataSourceBase::shared_ptr> RTT::internal::GenerateDataSource::operator() ( A1  a1,
A2  a2,
A3  a3,
A4  a4 
)
inline
template<class A1 , class A2 , class A3 , class A4 , class A5 , class A6 >
std::vector<base::DataSourceBase::shared_ptr> RTT::internal::GenerateDataSource::operator() ( A1  a1,
A2  a2,
A3  a3,
A4  a4,
A5  a5,
A6  a6 
)
inline
template<class A1 , class A2 , class A3 , class A4 , class A5 , class A6 , class A7 >
std::vector<base::DataSourceBase::shared_ptr> RTT::internal::GenerateDataSource::operator() ( A1  a1,
A2  a2,
A3  a3,
A4  a4,
A5  a5,
A6  a6,
A7  a7 
)
inline
template<class A1 , class A2 , class A3 , class A4 , class A5 >
std::vector<base::DataSourceBase::shared_ptr> RTT::internal::GenerateDataSource::operator() ( A1  a1,
A2  a2,
A3  a3,
A4  a4,
A5  a5 
)
inline

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