Orocos Real-Time Toolkit  2.6.0
Public Member Functions | Public Attributes
RTT::internal::RStore< T > Struct Template Reference

Store a return value which may be a void, reference, const reference or any other type. More...

#include <rtt/internal/BindStorage.hpp>

Inherited by RTT::internal::RStore< result_type >, RTT::internal::RStore< void >, RTT::internal::RStore< const T >, and RTT::internal::RStore< T & >.

List of all members.

Public Member Functions

T & result ()
 operator T & ()
template<class F >
void exec (F f)
 Stores the result of a function.

Public Attributes

arg

Detailed Description

template<class T>
struct RTT::internal::RStore< T >

Store a return value which may be a void, reference, const reference or any other type.

We need these specialisations because the collection of the results will be different if R is non-void or poid (appears as first arg of collect() or not respectively). So RStore is the only instance that knows if a return value was stored or not.

Definition at line 137 of file BindStorage.hpp.


Member Function Documentation

template<class T>
template<class F >
void RTT::internal::RStore< T >::exec ( f) [inline]

Stores the result of a function.

The RStore<void> specialisation will not store anything, and just call f().

Parameters:
fThe function object to execute and store the results from

Reimplemented in RTT::internal::RStore< void >, and RTT::internal::RStore< result_type >.

Definition at line 151 of file BindStorage.hpp.

Referenced by RTT::internal::FusedFunctorDataSource< Signature, Enable >::evaluate(), and RTT::internal::FusedMCallDataSource< Signature >::evaluate().


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