#include <nanoflann.hpp>
Definition at line 487 of file nanoflann.hpp.
◆ PooledAllocator()
nanoflann::PooledAllocator::PooledAllocator |
( |
const size_t |
blocksize = BLOCKSIZE | ) |
|
|
inline |
Default constructor. Initializes a new pool.
Definition at line 508 of file nanoflann.hpp.
◆ ~PooledAllocator()
nanoflann::PooledAllocator::~PooledAllocator |
( |
| ) |
|
|
inline |
Destructor. Frees all the memory allocated in this pool.
Definition at line 521 of file nanoflann.hpp.
◆ allocate()
template<typename T >
T* nanoflann::PooledAllocator::allocate |
( |
const size_t |
count = 1 | ) |
|
|
inline |
Allocates (using this pool) a generic type T.
Params: count = number of instances to allocate. Returns: pointer (of type T*) to memory buffer
Definition at line 587 of file nanoflann.hpp.
◆ malloc()
void* nanoflann::PooledAllocator::malloc |
( |
const size_t |
req_size | ) |
|
|
inline |
Returns a pointer to a piece of new memory of the given size in bytes allocated from the pool.
Definition at line 534 of file nanoflann.hpp.
◆ base
void* nanoflann::PooledAllocator::base |
|
private |
◆ blocksize
size_t nanoflann::PooledAllocator::blocksize |
|
private |
◆ loc
void* nanoflann::PooledAllocator::loc |
|
private |
◆ remaining
size_t nanoflann::PooledAllocator::remaining |
|
private |
◆ usedMemory
size_t nanoflann::PooledAllocator::usedMemory |
◆ wastedMemory
size_t nanoflann::PooledAllocator::wastedMemory |
The documentation for this class was generated from the following file: