Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Protected Attributes
mrpt::utils::non_copiable_ptr_basic Struct Reference

Detailed Description

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

#include <mrpt/utils/safe_pointers.h>

Inheritance diagram for mrpt::utils::non_copiable_ptr_basic:
Inheritance graph
[legend]

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

Constructor & Destructor Documentation

mrpt::utils::non_copiable_ptr_basic::non_copiable_ptr_basic ( ) [inline]

Definition at line 110 of file safe_pointers.h.

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

Definition at line 111 of file safe_pointers.h.

mrpt::utils::non_copiable_ptr_basic::non_copiable_ptr_basic ( const T *  p) [inline]

Definition at line 112 of file safe_pointers.h.

virtual mrpt::utils::non_copiable_ptr_basic::~non_copiable_ptr_basic ( ) [inline, virtual]

Definition at line 121 of file safe_pointers.h.


Member Function Documentation

T*& mrpt::utils::non_copiable_ptr_basic::get ( ) [inline]

Definition at line 129 of file safe_pointers.h.

Referenced by mrpt::gui::CBaseGUIWindow::getWxObject().

const T* mrpt::utils::non_copiable_ptr_basic::get ( ) const [inline]

Definition at line 130 of file safe_pointers.h.

T** mrpt::utils::non_copiable_ptr_basic::getPtrToPtr ( ) [inline]

Definition at line 132 of file safe_pointers.h.

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

Definition at line 126 of file safe_pointers.h.

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

Definition at line 127 of file safe_pointers.h.

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

Definition at line 134 of file safe_pointers.h.

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

Definition at line 135 of file safe_pointers.h.

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

Definition at line 113 of file safe_pointers.h.

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

Definition at line 115 of file safe_pointers.h.

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

Definition at line 123 of file safe_pointers.h.

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

Definition at line 124 of file safe_pointers.h.

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




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011