9 #ifndef safe_pointers_H 10 #define safe_pointers_H 12 #include <mrpt/config.h> 54 T*&
get() {
return ptr; }
55 const T*
get()
const {
return ptr; }
104 void set(
const T* p ) { ptr =
const_cast<T*
>(p); }
115 const T*
get()
const {
return ptr; }
169 void set(
const T* p ) { ptr =
const_cast<T*
>(p); }
180 const T*
get()
const {
return ptr; }
216 const T*&
get()
const {
return ptr; }
virtual ~ignored_copy_ptr()
A wrapper class for pointers that, if copied with the "=" operator, should be set to NULL in the copy...
A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtim...
ignored_copy_ptr(const T *p)
#define THROW_EXCEPTION(msg)
bool operator!=(const T *o) const
non_copiable_ptr_basic(const T *p)
copiable_NULL_ptr(const copiable_NULL_ptr< T > &o)
ignored_copy_ptr(const ignored_copy_ptr< T > &)
non_copiable_ptr(const non_copiable_ptr< T > &o)
virtual ~non_copiable_ptr_basic()
copiable_NULL_ptr_basic()
safe_ptr_basic(const safe_ptr_basic< T > &o)
virtual ~copiable_NULL_ptr()
bool operator==(const T *o) const
virtual ~non_copiable_ptr()
non_copiable_ptr_basic< void > void_ptr_noncopy
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
safe_ptr(const safe_ptr< T > &o)
copiable_NULL_ptr_basic(const copiable_NULL_ptr_basic< T > &)
virtual ~safe_ptr_basic()
non_copiable_ptr(const T *p)
safe_ptr_basic< void > void_ptr
A wrapper class for pointers that, if copied with the "=" operator, should be set to NULL in the new ...
virtual ~copiable_NULL_ptr_basic()
safe_ptr_basic< T > & operator=(T *p)
A wrapper class for pointers whose copy operations from other objects of the same type are ignored...
A wrapper class for pointers that can be safely copied with "=" operator without problems.
A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtim...
std::vector< T1 > operator*(const std::vector< T1 > &a, const std::vector< T2 > &b)
a*b (element-wise multiplication)
A wrapper class for pointers that can be safely copied with "=" operator without problems.
safe_ptr_basic(const T *p)
non_copiable_ptr_basic(const non_copiable_ptr_basic< T > &)