Represents a memory block (via "void*") that can be shared between several objects through copy operator (=).
It keeps the reference count and only when it comes to zero, the memory block is really freed.
Definition at line 42 of file CReferencedMemBlock.h.
#include <mrpt/utils/CReferencedMemBlock.h>

Public Types | |
| typedef vector_byte | value_type |
| typedef vector_byte & | reference |
| typedef const vector_byte & | const_reference |
| typedef constructor_copy < vector_byte > | value_copy |
Public Member Functions | |
| CReferencedMemBlock (size_t mem_block_size=0) | |
| Constructor with an optional size of the memory block. | |
| virtual | ~CReferencedMemBlock () |
| Destructor, calls dereference_once. | |
| void | resize (size_t mem_block_size) |
| Resize the shared memory block. | |
| template<class T > | |
| T | getAs () |
| template<class T > | |
| T | getAs () const |
| operator bool (void) const | |
| bool | operator! (void) const |
| bool | present (void) const |
| bool | null (void) const |
| vector_byte & | operator* (void) throw (null_dereference) |
| const vector_byte & | operator* (void) const throw (null_dereference) |
| vector_byte * | operator-> (void) throw (null_dereference) |
| const vector_byte * | operator-> (void) const throw (null_dereference) |
| void | set_value (const vector_byte &data) throw (illegal_copy) |
| vector_byte & | value (void) throw (null_dereference) |
| const vector_byte & | value (void) const throw (null_dereference) |
| void | set (vector_byte *data=0) |
| vector_byte * | pointer (void) |
| const vector_byte * | pointer (void) const |
| void | alias (const smart_ptr_base< vector_byte, constructor_copy< vector_byte >, mrpt::synch::CAtomicCounter > &) |
| bool | aliases (const smart_ptr_base< vector_byte, constructor_copy< vector_byte >, mrpt::synch::CAtomicCounter > &) const |
| unsigned | alias_count (void) const |
| void | clear (void) |
| void | clear_unique (void) |
| void | make_unique (void) throw (illegal_copy) |
| void | copy (const smart_ptr_base< vector_byte, constructor_copy< vector_byte >, mrpt::synch::CAtomicCounter > &) throw (illegal_copy) |
| void * | handle (void) const |
| void | make_alias (void *handle) |
Protected Attributes | |
| smart_ptr_holder< vector_byte, mrpt::synch::CAtomicCounter > * | m_holder |
|
inherited |
Definition at line 112 of file CColouredPointsMap.h.
|
inherited |
Definition at line 111 of file CColouredPointsMap.h.
|
inherited |
Definition at line 113 of file CColouredPointsMap.h.
|
inherited |
Definition at line 110 of file CColouredPointsMap.h.
| mrpt::utils::CReferencedMemBlock::CReferencedMemBlock | ( | size_t | mem_block_size = 0 | ) |
Constructor with an optional size of the memory block.
|
virtual |
Destructor, calls dereference_once.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inline |
Definition at line 54 of file CReferencedMemBlock.h.
References empty(), mrpt::stlplus::smart_ptr_base< T, constructor_copy< T >, COUNTER >::operator->(), and THROW_EXCEPTION.
|
inline |
Definition at line 65 of file CReferencedMemBlock.h.
References empty(), mrpt::stlplus::smart_ptr_base< T, constructor_copy< T >, COUNTER >::operator->(), and THROW_EXCEPTION.
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| void mrpt::utils::CReferencedMemBlock::resize | ( | size_t | mem_block_size | ) |
Resize the shared memory block.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
Definition at line 215 of file CColouredPointsMap.h.
| Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013 |