Main MRPT website > C++ reference
MRPT logo
Public Member Functions

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


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.

#include <mrpt/utils/safe_pointers.h>

Inheritance diagram for mrpt::utils::copiable_NULL_ptr< T >:
Inheritance graph
[legend]

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

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>
T& mrpt::utils::copiable_NULL_ptr< T >::operator* ( void   ) [inline]

Definition at line 210 of file safe_pointers.h.

References ASSERT_.

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

Definition at line 211 of file safe_pointers.h.

References ASSERT_.

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.

References ASSERT_.

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.

References ASSERT_.




Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011