MRPT logo

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

A wrapper class for pointers that, if copied with the "=" operator, should be set to NULL in the new copy. More...

#include <mrpt/utils/safe_pointers.h>

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

mrpt::utils::copiable_NULL_ptr_basic< T >

List of all members.

Public Member Functions

 copiable_NULL_ptr ()
 copiable_NULL_ptr (const copiable_NULL_ptr< T > &o)
copiable_NULL_ptr< T > & operator= (T *p)
virtual ~copiable_NULL_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::copiable_NULL_ptr< T >

A wrapper class for pointers that, if copied with the "=" operator, should be set to NULL in the new copy.

See also:
CReferencedMemBlock, safe_ptr, non_copiable_ptr, copiable_NULL_ptr

Definition at line 200 of file safe_pointers.h.


Constructor & Destructor Documentation

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

Definition at line 203 of file safe_pointers.h.

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

Definition at line 204 of file safe_pointers.h.

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

Definition at line 208 of file safe_pointers.h.


Member Function Documentation

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

Definition at line 211 of file safe_pointers.h.

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

Definition at line 210 of file safe_pointers.h.

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

Reimplemented from mrpt::utils::copiable_NULL_ptr_basic< T >.

Definition at line 206 of file safe_pointers.h.

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

Definition at line 214 of file safe_pointers.h.

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

Definition at line 213 of file safe_pointers.h.




Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN: at Thu Feb 26 02:18:33 EST 2009