Go to the documentation of this file.
9 #ifndef safe_pointers_H
10 #define safe_pointers_H
12 #include <mrpt/config.h>
101 void set(
const T* p ) {
ptr =
const_cast<T*
>(p); }
166 void set(
const T* p ) {
ptr =
const_cast<T*
>(p); }
#define THROW_EXCEPTION(msg)
T & operator[](const size_t &i)
bool operator!=(const T *o) const
A wrapper class for pointers that, if copied with the "=" operator, should be set to NULL in the new ...
safe_ptr_basic(const T *p)
A wrapper class for pointers that can be safely copied with "=" operator without problems.
void set(const T *p)
This method can change the pointer, since the change is made explicitly, not through copy operators t...
virtual ~non_copiable_ptr_basic()
bool operator!=(const T *o) const
copiable_NULL_ptr_basic()
bool operator!=(const T *o) const
non_copiable_ptr_basic< T > & operator=(T *p)
ignored_copy_ptr(const T *p)
safe_ptr_basic< T > & operator=(T *p)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A wrapper class for pointers that, if copied with the "=" operator, should be set to NULL in the copy...
safe_ptr_basic(const safe_ptr_basic< T > &o)
virtual ~copiable_NULL_ptr_basic()
bool operator==(const T *o) const
virtual ~non_copiable_ptr()
copiable_NULL_ptr_basic(const copiable_NULL_ptr_basic< T > &)
safe_ptr_basic< void > void_ptr
copiable_NULL_ptr_basic< T > & operator=(T *p)
copiable_NULL_ptr< T > & operator=(T *p)
bool operator==(const T *o) const
non_copiable_ptr_basic(const T *p)
void set(const T *p)
This method can change the pointer, since the change is made explicitly, not through copy operators t...
non_copiable_ptr_basic(const non_copiable_ptr_basic< T > &)
T & operator[](const size_t &i)
A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtim...
non_copiable_ptr_basic< void > void_ptr_noncopy
bool operator==(const T *o) const
ignored_copy_ptr(const ignored_copy_ptr< T > &)
T & operator[](const size_t &i)
A wrapper class for pointers that can be safely copied with "=" operator without problems.
virtual ~copiable_NULL_ptr()
non_copiable_ptr(const T *p)
copiable_NULL_ptr(const copiable_NULL_ptr< T > &o)
virtual ~ignored_copy_ptr()
ignored_copy_ptr< T > & operator=(T *p)
non_copiable_ptr(const non_copiable_ptr< T > &o)
bool operator!=(const T *o) const
A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtim...
A wrapper class for pointers whose copy operations from other objects of the same type are ignored,...
bool operator==(const T *o) const
virtual ~safe_ptr_basic()
non_copiable_ptr< T > & operator=(const T *p)
safe_ptr(const safe_ptr< T > &o)
Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Sat Jan 18 22:37:07 UTC 2020 | | |