49 T*&
get() {
return ptr; }
50 const T*
get()
const {
return ptr; }
132 void set(
const T*
p) {
ptr =
const_cast<T*
>(
p); }
147 const T*
get()
const {
return ptr; }
238 void set(
const T*
p) {
ptr =
const_cast<T*
>(
p); }
245 const T*
get()
const {
return ptr; }
299 const T*&
get()
const {
return ptr; }
const T *& operator->() const
virtual ~ignored_copy_ptr()
virtual ~non_copiable_ptr()
bool operator!=(const T *o) const
A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtim...
safe_ptr_basic< T > & operator=(const safe_ptr_basic< T > &o)
safe_ptr_basic(const safe_ptr_basic< T > &o)
non_copiable_ptr(const non_copiable_ptr< T > &o)
#define THROW_EXCEPTION(msg)
copiable_NULL_ptr_basic(const copiable_NULL_ptr_basic< T > &)
copiable_NULL_ptr_basic()
bool operator==(const safe_ptr_basic< T > &o) const
safe_ptr(const safe_ptr< T > &o)
ignored_copy_ptr(const T *p)
non_copiable_ptr_basic< T > & operator=(const non_copiable_ptr_basic< T > &)
copiable_NULL_ptr< T > & operator=(T *p)
bool operator==(const T *o) const
safe_ptr_basic< T > & operator=(T *p)
bool operator==(const copiable_NULL_ptr_basic< T > &o) const
ignored_copy_ptr< T > & operator=(T *p)
non_copiable_ptr< T > & operator=(const T *p)
T & operator[](const size_t &i)
const T & operator[](const size_t &i) const
A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtim...
bool operator!=(const ignored_copy_ptr< T > &o) const
bool operator!=(const T *o) const
#define ASSERT_(f)
Defines an assertion mechanism.
bool operator!=(const safe_ptr_basic< T > &o) const
A wrapper class for pointers that can be safely copied with "=" operator without problems.
virtual ~copiable_NULL_ptr_basic()
A wrapper class for pointers whose copy operations from other objects of the same type are ignored...
A wrapper class for pointers that, if copied with the "=" operator, should be set to nullptr in the c...
const T & operator*() const
A wrapper class for pointers that can be safely copied with "=" operator without problems.
const T * operator->() const
const T & operator*() const
copiable_NULL_ptr(const copiable_NULL_ptr< T > &o)
non_copiable_ptr(const T *p)
virtual ~copiable_NULL_ptr()
bool operator==(const T *o) const
virtual ~safe_ptr_basic()
non_copiable_ptr< T > & operator=(const non_copiable_ptr< T > &)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
bool operator==(const T *o) const
copiable_NULL_ptr_basic< T > & operator=(const copiable_NULL_ptr_basic< T > &)
virtual ~non_copiable_ptr_basic()
non_copiable_ptr_basic< T > & operator=(T *p)
bool operator!=(const T *o) const
non_copiable_ptr_basic(const T *p)
bool operator!=(const non_copiable_ptr_basic< T > &o) const
bool operator!=(const copiable_NULL_ptr_basic< T > &o) const
safe_ptr_basic(const T *p)
bool operator==(const T *o) const
const T * operator->() const
const T * operator->() const
A wrapper class for pointers that, if copied with the "=" operator, should be set to nullptr in the n...
bool operator!=(const T *o) const
T & operator[](const size_t &i)
bool operator==(const ignored_copy_ptr< T > &o) const
ignored_copy_ptr(const ignored_copy_ptr< T > &)
bool operator==(const non_copiable_ptr_basic< T > &o) const
non_copiable_ptr_basic(const non_copiable_ptr_basic< T > &)
const T & operator*() const
const T & operator[](const size_t &i) const
ignored_copy_ptr< T > & operator=(const ignored_copy_ptr< T > &)
const T & operator[](const size_t &i) const
copiable_NULL_ptr_basic< T > & operator=(T *p)
T & operator[](const size_t &i)