Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Loki::RefToValue< T > Class Template Reference

Transports a reference as a value Serves to implement the Colvin/Gibbons trick for SmartPtr/ScopeGuard. More...

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/loki/RefToValue.h>

Public Member Functions

 RefToValue (T &ref)
 
 RefToValue (const RefToValue &rhs)
 
 operator T & () const
 

Private Member Functions

 RefToValue ()
 
RefToValueoperator= (const RefToValue &)
 

Private Attributes

T & ref_
 

Detailed Description

template<class T>
class Loki::RefToValue< T >

Transports a reference as a value Serves to implement the Colvin/Gibbons trick for SmartPtr/ScopeGuard.

Constructor & Destructor Documentation

template<class T >
Loki::RefToValue< T >::RefToValue ( T &  ref)
inline
template<class T >
Loki::RefToValue< T >::RefToValue ( const RefToValue< T > &  rhs)
inline
template<class T >
Loki::RefToValue< T >::RefToValue ( )
private

Member Function Documentation

template<class T >
Loki::RefToValue< T >::operator T & ( ) const
inline
template<class T >
RefToValue& Loki::RefToValue< T >::operator= ( const RefToValue< T > &  )
private

Member Data Documentation

template<class T >
T& Loki::RefToValue< T >::ref_
private

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