cartobase  4.5.0
carto::reference_wrapper< T > Class Template Reference

Wrapper to a reference. More...

#include <cartobase/smart/refwrapper.h>

Public Types

typedef T type
 

Public Member Functions

 reference_wrapper (type &ref)
 
 reference_wrapper (const reference_wrapper< type > &x)
 
 ~reference_wrapper ()
 
reference_wrapper< type > & operator= (const reference_wrapper< type > &x)
 
typeget () const
 
 operator type & () const
 

Protected Attributes

type_object
 

Detailed Description

template<typename T>
class carto::reference_wrapper< T >

Wrapper to a reference.

For now, it can only be used with objects (and not functions)

Definition at line 43 of file refwrapper.h.

Member Typedef Documentation

template<typename T>
typedef T carto::reference_wrapper< T >::type

Definition at line 46 of file refwrapper.h.

Constructor & Destructor Documentation

template<typename T>
carto::reference_wrapper< T >::reference_wrapper ( type ref)
inline

Definition at line 47 of file refwrapper.h.

template<typename T>
carto::reference_wrapper< T >::reference_wrapper ( const reference_wrapper< type > &  x)
inline

Definition at line 49 of file refwrapper.h.

template<typename T>
carto::reference_wrapper< T >::~reference_wrapper ( )
inline

Definition at line 51 of file refwrapper.h.

Member Function Documentation

template<typename T>
type& carto::reference_wrapper< T >::get ( ) const
inline

Definition at line 60 of file refwrapper.h.

References carto::reference_wrapper< T >::_object.

template<typename T>
carto::reference_wrapper< T >::operator type & ( ) const
inline

Definition at line 61 of file refwrapper.h.

template<typename T>
reference_wrapper<type>& carto::reference_wrapper< T >::operator= ( const reference_wrapper< type > &  x)
inline

Definition at line 53 of file refwrapper.h.

References carto::reference_wrapper< T >::_object.

Member Data Documentation

template<typename T>
type* carto::reference_wrapper< T >::_object
protected

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