A wrapper class for pointers that, if copied with the "=" operator, should be set to NULL in the new copy.
Definition at line 224 of file safe_pointers.h.
#include <mrpt/utils/safe_pointers.h>
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 |
bool | operator== (const T *o) const |
bool | operator== (const copiable_NULL_ptr_basic< T > &o) const |
bool | operator!= (const T *o) const |
bool | operator!= (const copiable_NULL_ptr_basic< T > &o) const |
T *& | get () |
const T *& | get () const |
T *& | operator-> () |
const T *& | operator-> () const |
Protected Attributes | |
T * | ptr |
|
inline |
Definition at line 227 of file safe_pointers.h.
|
inline |
Definition at line 228 of file safe_pointers.h.
|
inlinevirtual |
Definition at line 232 of file safe_pointers.h.
|
inlineinherited |
Definition at line 212 of file safe_pointers.h.
References mrpt::utils::copiable_NULL_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 213 of file safe_pointers.h.
References mrpt::utils::copiable_NULL_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 209 of file safe_pointers.h.
References mrpt::utils::copiable_NULL_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 210 of file safe_pointers.h.
References mrpt::utils::copiable_NULL_ptr_basic< T >::ptr.
|
inline |
Definition at line 234 of file safe_pointers.h.
References ASSERT_.
|
inline |
Definition at line 235 of file safe_pointers.h.
References ASSERT_.
|
inlineinherited |
Definition at line 215 of file safe_pointers.h.
References ASSERT_, and mrpt::utils::copiable_NULL_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 216 of file safe_pointers.h.
References ASSERT_, and mrpt::utils::copiable_NULL_ptr_basic< T >::ptr.
|
inline |
Definition at line 230 of file safe_pointers.h.
|
inlineinherited |
Definition at line 206 of file safe_pointers.h.
References mrpt::utils::copiable_NULL_ptr_basic< T >::ptr.
|
inlineinherited |
Definition at line 207 of file safe_pointers.h.
References mrpt::utils::copiable_NULL_ptr_basic< T >::ptr.
|
inline |
Definition at line 237 of file safe_pointers.h.
References ASSERT_.
|
inline |
Definition at line 238 of file safe_pointers.h.
References ASSERT_.
|
protectedinherited |
Definition at line 194 of file safe_pointers.h.
Referenced by mrpt::utils::copiable_NULL_ptr_basic< T >::get(), mrpt::utils::copiable_NULL_ptr_basic< T >::operator!=(), mrpt::utils::copiable_NULL_ptr_basic< T >::operator->(), mrpt::utils::copiable_NULL_ptr_basic< T >::operator=(), and mrpt::utils::copiable_NULL_ptr_basic< T >::operator==().
Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |