Orocos Real-Time Toolkit  2.9.0
Public Member Functions | Public Attributes | List of all members
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>

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

Public Member Functions

 RStore ()
 
T & result ()
 
 operator T & ()
 
template<class F >
void exec (F f)
 Stores the result of a function. More...
 
void checkError () const
 
bool isError () const
 
bool isExecuted () const
 

Public Attributes

arg
 
bool executed
 
bool error
 

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 ( )
inline

Definition at line 142 of file BindStorage.hpp.

Member Function Documentation

void RTT::internal::RStore< void >::checkError ( ) const
inlineinherited
template<class T>
template<class F >
void RTT::internal::RStore< T >::exec ( f)
inline
bool RTT::internal::RStore< void >::isError ( ) const
inlineinherited
bool RTT::internal::RStore< void >::isExecuted ( ) const
inlineinherited

Definition at line 109 of file BindStorage.hpp.

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

Definition at line 145 of file BindStorage.hpp.

References RTT::internal::AStore< T >::arg.

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

Member Data Documentation

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

Definition at line 141 of file BindStorage.hpp.

bool RTT::internal::RStore< void >::error
inherited

Definition at line 98 of file BindStorage.hpp.

bool RTT::internal::RStore< void >::executed
inherited

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