#include <mrpt/utils/CReferencedMemBlock.h>
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 |
It keeps the reference count and only when it comes to zero, the memory block is really freed.
Definition at line 41 of file CReferencedMemBlock.h.
mrpt::utils::CReferencedMemBlock::CReferencedMemBlock | ( | size_t | mem_block_size = 0 |
) |
Constructor with an optional size of the memory block.
virtual mrpt::utils::CReferencedMemBlock::~CReferencedMemBlock | ( | ) | [virtual] |
Destructor, calls dereference_once.
T mrpt::utils::CReferencedMemBlock::getAs | ( | ) | const [inline] |
Definition at line 66 of file CReferencedMemBlock.h.
References MRPT_TRY_END, MRPT_TRY_START, and THROW_EXCEPTION.
T mrpt::utils::CReferencedMemBlock::getAs | ( | ) | [inline] |
Definition at line 53 of file CReferencedMemBlock.h.
References MRPT_TRY_END, MRPT_TRY_START, and THROW_EXCEPTION.
void mrpt::utils::CReferencedMemBlock::resize | ( | size_t | mem_block_size | ) |
Resize the shared memory block.
Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN:exported at Mon Jan 12 13:00:16 UTC 2009 |