A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtime if a copy is attempted.
Definition at line 86 of file safe_pointers.h.
#include <mrpt/utils/safe_pointers.h>
Public Member Functions | |
non_copiable_ptr_basic () | |
non_copiable_ptr_basic (const non_copiable_ptr_basic< T > &) | |
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 > &) |
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. More... | |
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 |
|
inline |
Definition at line 92 of file safe_pointers.h.
|
inline |
Definition at line 93 of file safe_pointers.h.
|
inline |
Definition at line 94 of file safe_pointers.h.
|
inlinevirtual |
Definition at line 103 of file safe_pointers.h.
|
inline |
Definition at line 111 of file safe_pointers.h.
Referenced by mrpt::gui::CBaseGUIWindow::getWxObject().
|
inline |
Definition at line 112 of file safe_pointers.h.
|
inline |
Definition at line 114 of file safe_pointers.h.
|
inline |
Definition at line 108 of file safe_pointers.h.
|
inline |
Definition at line 109 of file safe_pointers.h.
|
inline |
Definition at line 116 of file safe_pointers.h.
|
inline |
Definition at line 117 of file safe_pointers.h.
|
inline |
Definition at line 95 of file safe_pointers.h.
|
inline |
Definition at line 97 of file safe_pointers.h.
|
inline |
Definition at line 105 of file safe_pointers.h.
|
inline |
Definition at line 106 of file safe_pointers.h.
|
inline |
This method can change the pointer, since the change is made explicitly, not through copy operators transparent to the user.
Definition at line 101 of file safe_pointers.h.
|
protected |
Definition at line 89 of file safe_pointers.h.
Referenced by mrpt::utils::non_copiable_ptr_basic< void >::operator!=(), and mrpt::utils::non_copiable_ptr_basic< void >::operator==().
Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN:Unversioned directory at Mon May 30 18:20:32 UTC 2016 |