A class to make a const reference not so const. More...
#include <mia/core/refholder.hh>
Public Types | |
typedef const T & | const_reference |
the type of the actual reference this class holds More... | |
typedef std::shared_ptr< TRefHolder< T > > | Pointer |
pointer type of this reference holder. More... | |
Public Member Functions | |
operator const_reference () | |
returns the reference variable to allow seemless usage More... | |
TRefHolder (const_reference r) | |
A class to make a const reference not so const.
This is a little hepler class to make it possible to change what a constant reference member variable points to after construction of a class.
T | the type a reference is used form |
Definition at line 39 of file refholder.hh.
typedef const T& TRefHolder< T >::const_reference |
the type of the actual reference this class holds
Definition at line 45 of file refholder.hh.
typedef std::shared_ptr<TRefHolder<T> > TRefHolder< T >::Pointer |
pointer type of this reference holder.
Definition at line 42 of file refholder.hh.
|
inline |
|
inline |
returns the reference variable to allow seemless usage
Definition at line 55 of file refholder.hh.
References NS_MIA_END.