MRPT
1.9.9
|
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 220 of file safe_pointers.h.
#include <mrpt/core/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. More... | |
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 226 of file safe_pointers.h.
|
inline |
Definition at line 227 of file safe_pointers.h.
|
inline |
Definition at line 228 of file safe_pointers.h.
|
inlinevirtual |
Definition at line 239 of file safe_pointers.h.
|
inline |
Definition at line 244 of file safe_pointers.h.
|
inline |
Definition at line 245 of file safe_pointers.h.
|
inline |
Definition at line 246 of file safe_pointers.h.
|
inline |
Definition at line 242 of file safe_pointers.h.
|
inline |
Definition at line 243 of file safe_pointers.h.
|
inline |
Definition at line 247 of file safe_pointers.h.
|
inline |
Definition at line 252 of file safe_pointers.h.
|
inline |
Definition at line 229 of file safe_pointers.h.
|
inline |
Definition at line 235 of file safe_pointers.h.
|
inline |
Definition at line 240 of file safe_pointers.h.
|
inline |
Definition at line 241 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 238 of file safe_pointers.h.
|
protected |
Definition at line 223 of file safe_pointers.h.
Referenced by mrpt::ignored_copy_ptr< mrpt::maps::COctoMapBase >::get(), mrpt::ignored_copy_ptr< mrpt::maps::COctoMapBase >::getPtrToPtr(), mrpt::ignored_copy_ptr< mrpt::maps::COctoMapBase >::operator!=(), mrpt::ignored_copy_ptr< mrpt::maps::COctoMapBase >::operator->(), mrpt::ignored_copy_ptr< mrpt::maps::COctoMapBase >::operator=(), mrpt::ignored_copy_ptr< mrpt::maps::COctoMapBase >::operator==(), and mrpt::ignored_copy_ptr< mrpt::maps::COctoMapBase >::set().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |