MRPT logo

mrpt::utils::non_copiable_ptr_basic< 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>

List of all members.

Public Member Functions

 non_copiable_ptr_basic ()
 non_copiable_ptr_basic (const non_copiable_ptr_basic< T > &o)
 non_copiable_ptr_basic (const T *p)
non_copiable_ptr_basic< T > & operator= (T *p)
non_copiable_ptr_basic< T > & operator= (const non_copiable_ptr_basic< T > &o)
void set (const T *p)
 This method can change the pointer, since the change is made explicitly, not through copy operators transparent to the user.
virtual ~non_copiable_ptr_basic ()
bool operator== (const T *o) const
bool operator== (const non_copiable_ptr_basic< T > &o) const
bool operator!= (const T *o) const
bool operator!= (const non_copiable_ptr_basic< T > &o) const
T *& get ()
const T * get () const
T ** getPtrToPtr ()
T *& operator-> ()
const T * operator-> () const

Protected Attributes

T * ptr


Detailed Description

template<class T>
struct mrpt::utils::non_copiable_ptr_basic< 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 104 of file safe_pointers.h.


Constructor & Destructor Documentation

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

Definition at line 110 of file safe_pointers.h.

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

Definition at line 111 of file safe_pointers.h.

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

Definition at line 112 of file safe_pointers.h.

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

Definition at line 121 of file safe_pointers.h.


Member Function Documentation

template<class T>
const T* mrpt::utils::non_copiable_ptr_basic< T >::get (  )  const [inline]

Definition at line 130 of file safe_pointers.h.

template<class T>
T*& mrpt::utils::non_copiable_ptr_basic< T >::get (  )  [inline]

Definition at line 129 of file safe_pointers.h.

template<class T>
T** mrpt::utils::non_copiable_ptr_basic< T >::getPtrToPtr (  )  [inline]

Definition at line 132 of file safe_pointers.h.

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

Definition at line 127 of file safe_pointers.h.

template<class T>
bool mrpt::utils::non_copiable_ptr_basic< T >::operator!= ( const T *  o  )  const [inline]

Definition at line 126 of file safe_pointers.h.

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

Definition at line 135 of file safe_pointers.h.

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

Definition at line 134 of file safe_pointers.h.

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

Definition at line 115 of file safe_pointers.h.

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

Definition at line 113 of file safe_pointers.h.

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

Definition at line 124 of file safe_pointers.h.

template<class T>
bool mrpt::utils::non_copiable_ptr_basic< T >::operator== ( const T *  o  )  const [inline]

Definition at line 123 of file safe_pointers.h.

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

This method can change the pointer, since the change is made explicitly, not through copy operators transparent to the user.

Definition at line 119 of file safe_pointers.h.


Member Data Documentation

template<class T>
T* mrpt::utils::non_copiable_ptr_basic< T >::ptr [protected]




Page generated by Doxygen 1.5.9 for MRPT 0.7.1 SVN: at Mon Aug 17 22:20:53 EDT 2009