49 T*&
get() {
return ptr; }
50 const T*
get()
const {
return ptr; }
137 void set(
const T* p) {
ptr =
const_cast<T*
>(p); }
152 const T*
get()
const {
return ptr; }
243 void set(
const T* p) {
ptr =
const_cast<T*
>(p); }
250 const T*
get()
const {
return ptr; }
304 const T*&
get()
const {
return ptr; }
const T *& operator->() const
virtual ~non_copiable_ptr_basic()=default
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)
const T & operator[](size_t i) const
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)
virtual ~ignored_copy_ptr()=default
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
virtual ~copiable_NULL_ptr_basic()=default
bool operator!=(const T *o) const
#define ASSERT_(f)
Defines an assertion mechanism.
const T & operator[](size_t i) const
bool operator!=(const safe_ptr_basic< T > &o) const
A wrapper class for pointers that can be safely copied with "=" operator without problems.
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.
virtual ~safe_ptr_basic()=default
const T * operator->() const
const T & operator*() const
copiable_NULL_ptr(const copiable_NULL_ptr< T > &o)
non_copiable_ptr(const T *p)
const T & operator[](size_t i) const
bool operator==(const T *o) const
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
virtual ~copiable_NULL_ptr()=default
copiable_NULL_ptr_basic< T > & operator=(const copiable_NULL_ptr_basic< T > &)
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
safe_ptr & operator=(T *p)
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
virtual ~non_copiable_ptr()=default
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
~safe_ptr() override=default
ignored_copy_ptr< T > & operator=(const ignored_copy_ptr< T > &)
copiable_NULL_ptr_basic< T > & operator=(T *p)