Orxonox: Loki::RefToValue< T > Class Template Reference

# Loki::RefToValue< T > Class Template Reference

`#include <src/util/RefToValue.h>`

List of all members.

## Public Member Functions

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

## Private Member Functions

RefToValue & | operator= (const RefToValue &)
| 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]`

References Loki::RefToValue< T >::ref_.

template<class T>

RefToValue& Loki::RefToValue< T >::operator= | ( | const RefToValue< T > & |  | ) | `[private]`

## Member Data Documentation

template<class T>

T& Loki::RefToValue< T >::ref_`[private]`

Referenced by Loki::RefToValue< T >::operator T &().

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

- src/util/RefToValue.h