Public Member Functions | Public Attributes | List of all members
RTT::internal::RStore< T > Struct Template Reference

#include <BindStorage.hpp>

Inheritance diagram for RTT::internal::RStore< T >:
Inheritance graph

Public Member Functions

template<class F >
void exec (F f)
 operator T & ()
T & result ()
 RStore ()
- Public Member Functions inherited from RTT::internal::RStore< void >
void checkError () const
template<class F >
void exec (F f)
bool isError () const
bool isExecuted () const
void result ()
 RStore ()

Public Attributes

- Public Attributes inherited from RTT::internal::RStore< void >
bool error
bool executed

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 140 of file BindStorage.hpp.

Constructor & Destructor Documentation

template<class T>
RTT::internal::RStore< T >::RStore ( )

Definition at line 142 of file BindStorage.hpp.

Member Function Documentation

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

Stores the result of a function. The RStore<void> specialisation will not store anything, and just call f().

fThe function object to execute and store the results from

Definition at line 154 of file BindStorage.hpp.

template<class T>
RTT::internal::RStore< T >::operator T & ( )

Definition at line 145 of file BindStorage.hpp.

template<class T>
T& RTT::internal::RStore< T >::result ( )

Definition at line 144 of file BindStorage.hpp.

Member Data Documentation

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

Definition at line 141 of file BindStorage.hpp.

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

Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:47