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 125 of file safe_pointers.h.
#include <mrpt/utils/safe_pointers.h>
Public Member Functions | |
non_copiable_ptr () | |
non_copiable_ptr (const non_copiable_ptr< T > &o) | |
non_copiable_ptr (const T *p) | |
non_copiable_ptr< T > & | operator= (const T *p) |
non_copiable_ptr< T > & | operator= (const non_copiable_ptr< T > &) |
virtual | ~non_copiable_ptr () |
T & | operator* () |
const T & | operator* () const |
T & | operator[] (const size_t &i) |
const T & | operator[] (const size_t &i) const |
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... | |
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 128 of file safe_pointers.h.
|
inline |
Definition at line 129 of file safe_pointers.h.
|
inline |
Definition at line 130 of file safe_pointers.h.
|
inlinevirtual |
Definition at line 137 of file safe_pointers.h.
|
inlineinherited |
Definition at line 111 of file safe_pointers.h.
References mrpt::utils::non_copiable_ptr_basic< T >::ptr.
Referenced by mrpt::gui::CBaseGUIWindow::getWxObject().
|
inlineinherited |
Definition at line 112 of file safe_pointers.h.
References mrpt::utils::non_copiable_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 114 of file safe_pointers.h.
References mrpt::utils::non_copiable_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 109 of file safe_pointers.h.
References mrpt::utils::non_copiable_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 108 of file safe_pointers.h.
References mrpt::utils::non_copiable_ptr_basic< T >::ptr.
|
inline |
Definition at line 139 of file safe_pointers.h.
References ASSERT_.
|
inline |
Definition at line 140 of file safe_pointers.h.
References ASSERT_.
|
inlineinherited |
Definition at line 116 of file safe_pointers.h.
References ASSERT_, and mrpt::utils::non_copiable_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 117 of file safe_pointers.h.
References ASSERT_, and mrpt::utils::non_copiable_ptr_basic< T >::ptr.
|
inline |
Definition at line 134 of file safe_pointers.h.
References THROW_EXCEPTION.
|
inline |
Definition at line 132 of file safe_pointers.h.
|
inlineinherited |
Definition at line 106 of file safe_pointers.h.
References mrpt::utils::non_copiable_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 105 of file safe_pointers.h.
References mrpt::utils::non_copiable_ptr_basic< T >::ptr.
|
inline |
Definition at line 142 of file safe_pointers.h.
References ASSERT_.
|
inline |
Definition at line 143 of file safe_pointers.h.
References ASSERT_.
|
inlineinherited |
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.
References mrpt::utils::non_copiable_ptr_basic< T >::ptr.
|
protectedinherited |
Definition at line 89 of file safe_pointers.h.
Referenced by mrpt::utils::non_copiable_ptr_basic< T >::get(), mrpt::utils::non_copiable_ptr_basic< T >::getPtrToPtr(), mrpt::utils::non_copiable_ptr_basic< T >::operator!=(), mrpt::utils::non_copiable_ptr_basic< T >::operator->(), mrpt::utils::non_copiable_ptr_basic< T >::operator=(), mrpt::utils::non_copiable_ptr_basic< T >::operator==(), and mrpt::utils::non_copiable_ptr_basic< T >::set().
Page generated by Doxygen 1.9.4 for MRPT 1.4.0 SVN: at Thu Aug 4 01:35:14 UTC 2022 |