MRPT logo

mrpt::utils::non_copiable_ptr< T > Struct Template Reference

A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtime if a copy is attempted. More...

#include <mrpt/utils/safe_pointers.h>

Inheritance diagram for mrpt::utils::non_copiable_ptr< T >:

mrpt::utils::non_copiable_ptr_basic< T >

List of all members.

Public Member Functions

 non_copiable_ptr ()
 non_copiable_ptr (const non_copiable_ptr< T > &o)
 non_copiable_ptr (const T *p)
non_copiable_ptr< T > & operator= (const T *p)
non_copiable_ptr< T > & operator= (const non_copiable_ptr< T > &o)
virtual ~non_copiable_ptr ()
T & operator* ()
const T & operator* () const
T & operator[] (const size_t &i)
const T & operator[] (const size_t &i) const


Detailed Description

template<class T>
struct mrpt::utils::non_copiable_ptr< T >

A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtime if a copy is attempted.

See also:
CReferencedMemBlock, safe_ptr, non_copiable_ptr, copiable_NULL_ptr

Definition at line 142 of file safe_pointers.h.


Constructor & Destructor Documentation

template<class T>
mrpt::utils::non_copiable_ptr< T >::non_copiable_ptr (  )  [inline]

Definition at line 145 of file safe_pointers.h.

template<class T>
mrpt::utils::non_copiable_ptr< T >::non_copiable_ptr ( const non_copiable_ptr< T > &  o  )  [inline]

Definition at line 146 of file safe_pointers.h.

template<class T>
mrpt::utils::non_copiable_ptr< T >::non_copiable_ptr ( const T *  p  )  [inline]

Definition at line 147 of file safe_pointers.h.

template<class T>
virtual mrpt::utils::non_copiable_ptr< T >::~non_copiable_ptr (  )  [inline, virtual]

Definition at line 154 of file safe_pointers.h.


Member Function Documentation

template<class T>
const T& mrpt::utils::non_copiable_ptr< T >::operator* ( void   )  const [inline]

Definition at line 157 of file safe_pointers.h.

template<class T>
T& mrpt::utils::non_copiable_ptr< T >::operator* ( void   )  [inline]

Definition at line 156 of file safe_pointers.h.

template<class T>
non_copiable_ptr<T>& mrpt::utils::non_copiable_ptr< T >::operator= ( const non_copiable_ptr< T > &  o  )  [inline]

Definition at line 151 of file safe_pointers.h.

template<class T>
non_copiable_ptr<T>& mrpt::utils::non_copiable_ptr< T >::operator= ( const T *  p  )  [inline]

Definition at line 149 of file safe_pointers.h.

template<class T>
const T& mrpt::utils::non_copiable_ptr< T >::operator[] ( const size_t &  i  )  const [inline]

Definition at line 160 of file safe_pointers.h.

template<class T>
T& mrpt::utils::non_copiable_ptr< T >::operator[] ( const size_t &  i  )  [inline]

Definition at line 159 of file safe_pointers.h.




Page generated by Doxygen 1.5.9 for MRPT 0.6.5 SVN: at Sun Aug 2 11:41:17 CDT 2009