Orocos Real-Time Toolkit  2.5.0
Public Member Functions
RTT::internal::GenerateDataSource Struct Reference

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

#include <rtt/internal/DataSourceGenerator.hpp>

List of all members.

Public Member Functions

template<class A1 >
std::vector
< base::DataSourceBase::shared_ptr
operator() (A1 a1)
template<class A1 , class A2 >
std::vector
< base::DataSourceBase::shared_ptr
operator() (A1 a1, A2 a2)
template<class A1 , class A2 , class A3 >
std::vector
< base::DataSourceBase::shared_ptr
operator() (A1 a1, A2 a2, A3 a3)
template<class A1 , class A2 , class A3 , class A4 >
std::vector
< base::DataSourceBase::shared_ptr
operator() (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_ptr
operator() (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_ptr
operator() (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_ptr
operator() (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.


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