omegalib  13.1
omicron::Ref< T > Class Template Reference

#include <ref.hpp>

Public Types

typedef T element_type
 

Public Member Functions

 Ref ()
 
 Ref (T *p, bool add_ref=true)
 
template<class U >
 Ref (Ref< U > const &rhs, typename boost::detail::sp_enable_if_convertible< U, T >::type=boost::detail::sp_empty())
 
 Ref (Ref const &rhs)
 
 ~Ref ()
 
template<class U >
Refoperator= (Ref< U > const &rhs)
 
Refoperator= (Ref const &rhs)
 
Refoperator= (T *rhs)
 
void reset ()
 
void reset (T *rhs)
 
T * get () const
 
bool isNull () const
 
T * operator-> () const
 
 operator T * () const
 
void swap (Ref &rhs)
 

Member Typedef Documentation

template<class T>
typedef T omicron::Ref< T >::element_type

Constructor & Destructor Documentation

template<class T>
omicron::Ref< T >::Ref ( )
inline
template<class T>
omicron::Ref< T >::Ref ( T *  p,
bool  add_ref = true 
)
inline
template<class T>
template<class U >
omicron::Ref< T >::Ref ( Ref< U > const &  rhs,
typename boost::detail::sp_enable_if_convertible< U, T >::type  = boost::detail::sp_empty() 
)
inline
template<class T>
omicron::Ref< T >::Ref ( Ref< T > const &  rhs)
inline
template<class T>
omicron::Ref< T >::~Ref ( )
inline

Member Function Documentation

template<class T>
T* omicron::Ref< T >::get ( ) const
inline
template<class T>
bool omicron::Ref< T >::isNull ( ) const
inline
template<class T>
omicron::Ref< T >::operator T * ( ) const
inline
template<class T>
T* omicron::Ref< T >::operator-> ( ) const
inline
template<class T>
template<class U >
Ref& omicron::Ref< T >::operator= ( Ref< U > const &  rhs)
inline
template<class T>
Ref& omicron::Ref< T >::operator= ( Ref< T > const &  rhs)
inline
template<class T>
Ref& omicron::Ref< T >::operator= ( T *  rhs)
inline
template<class T>
void omicron::Ref< T >::reset ( )
inline
template<class T>
void omicron::Ref< T >::reset ( T *  rhs)
inline
template<class T>
void omicron::Ref< T >::swap ( Ref< T > &  rhs)
inline

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