Definition at line 434 of file nanoflann.hpp.
#include <mrpt/otherlibs/nanoflann/nanoflann.hpp>
|
| | PooledAllocator (const size_t blocksize=BLOCKSIZE) |
| | Default constructor.
|
| |
| | ~PooledAllocator () |
| | Destructor.
|
| |
| void * | malloc (const size_t req_size) |
| | Returns a pointer to a piece of new memory of the given size in bytes allocated from the pool.
|
| |
| template<typename T > |
| T * | allocate (const size_t count=1) |
| | Allocates (using this pool) a generic type T.
|
| |
| nanoflann::PooledAllocator::PooledAllocator |
( |
const size_t |
blocksize = BLOCKSIZE | ) |
|
|
inline |
Default constructor.
Initializes a new pool.
Definition at line 455 of file nanoflann.hpp.
| nanoflann::PooledAllocator::~PooledAllocator |
( |
| ) |
|
|
inline |
Destructor.
Frees all the memory allocated in this pool.
Definition at line 468 of file nanoflann.hpp.
template<typename T >
| T* nanoflann::PooledAllocator::allocate |
( |
const size_t |
count = 1 | ) |
|
|
inline |
| void* nanoflann::PooledAllocator::malloc |
( |
const size_t |
req_size | ) |
|
|
inline |
| void* nanoflann::PooledAllocator::base |
|
private |
| size_t nanoflann::PooledAllocator::blocksize |
|
private |
| void* nanoflann::PooledAllocator::loc |
|
private |
| size_t nanoflann::PooledAllocator::remaining |
|
private |
| size_t nanoflann::PooledAllocator::usedMemory |
| size_t nanoflann::PooledAllocator::wastedMemory |