Definition at line 457 of file nanoflann.hpp.
#include <mrpt/otherlibs/nanoflann/nanoflann.hpp>
|
| | PooledAllocator (const size_t blocksize_=BLOCKSIZE) |
| | Default constructor.
|
| |
| | ~PooledAllocator () |
| | Destructor.
|
| |
| void | free_all () |
| | Frees all allocated memory chunks.
|
| |
| 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.
|
| |
◆ PooledAllocator()
| nanoflann::PooledAllocator::PooledAllocator |
( |
const size_t |
blocksize_ = BLOCKSIZE | ) |
|
|
inline |
Default constructor.
Initializes a new pool.
Definition at line 485 of file nanoflann.hpp.
◆ ~PooledAllocator()
| nanoflann::PooledAllocator::~PooledAllocator |
( |
| ) |
|
|
inline |
Destructor.
Frees all the memory allocated in this pool.
Definition at line 492 of file nanoflann.hpp.
◆ allocate()
template<typename T >
| T * nanoflann::PooledAllocator::allocate |
( |
const size_t |
count = 1 | ) |
|
|
inline |
◆ free_all()
| void nanoflann::PooledAllocator::free_all |
( |
| ) |
|
|
inline |
◆ internal_init()
| void nanoflann::PooledAllocator::internal_init |
( |
| ) |
|
|
inlineprivate |
◆ malloc()
| void * nanoflann::PooledAllocator::malloc |
( |
const size_t |
req_size | ) |
|
|
inline |
◆ 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 |