A wrapper class for pointers whose copy operations from other objects of the same type are ignored, that is, doing "a=b;" has no effect neiter on "a" or "b".
In turn, assigning a pointer with a direct "=" operation from a plain "T*" type is permited.
Definition at line 152 of file safe_pointers.h.
#include <mrpt/utils/safe_pointers.h>
Public Member Functions | |
ignored_copy_ptr () | |
ignored_copy_ptr (const ignored_copy_ptr< T > &) | |
ignored_copy_ptr (const T *p) | |
ignored_copy_ptr< T > & | operator= (T *p) |
ignored_copy_ptr< T > & | operator= (const ignored_copy_ptr< 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. | |
virtual | ~ignored_copy_ptr () |
bool | operator== (const T *o) const |
bool | operator== (const ignored_copy_ptr< T > &o) const |
bool | operator!= (const T *o) const |
bool | operator!= (const ignored_copy_ptr< 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 158 of file safe_pointers.h.
|
inline |
Definition at line 159 of file safe_pointers.h.
|
inline |
Definition at line 160 of file safe_pointers.h.
|
inlinevirtual |
Definition at line 168 of file safe_pointers.h.
|
inline |
Definition at line 176 of file safe_pointers.h.
References mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
Definition at line 177 of file safe_pointers.h.
References mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
Definition at line 179 of file safe_pointers.h.
References mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
Definition at line 174 of file safe_pointers.h.
References mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
Definition at line 173 of file safe_pointers.h.
References mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
Definition at line 181 of file safe_pointers.h.
References ASSERT_, and mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
Definition at line 182 of file safe_pointers.h.
References ASSERT_, and mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
Definition at line 163 of file safe_pointers.h.
|
inline |
Definition at line 161 of file safe_pointers.h.
References mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
Definition at line 171 of file safe_pointers.h.
References mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
Definition at line 170 of file safe_pointers.h.
References mrpt::utils::ignored_copy_ptr< T >::ptr.
|
inline |
This method can change the pointer, since the change is made explicitly, not through copy operators transparent to the user.
Definition at line 166 of file safe_pointers.h.
References mrpt::utils::ignored_copy_ptr< T >::ptr.
|
protected |
Definition at line 155 of file safe_pointers.h.
Referenced by mrpt::utils::ignored_copy_ptr< T >::get(), mrpt::utils::ignored_copy_ptr< T >::getPtrToPtr(), mrpt::utils::ignored_copy_ptr< T >::operator!=(), mrpt::utils::ignored_copy_ptr< T >::operator->(), mrpt::utils::ignored_copy_ptr< T >::operator=(), mrpt::utils::ignored_copy_ptr< T >::operator==(), and mrpt::utils::ignored_copy_ptr< T >::set().
Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Sat Jan 21 06:46:15 UTC 2023 |