MRPT
1.9.9
|
Classes | |
class | nanoflann::PooledAllocator |
Functions | |
template<typename T > | |
T * | nanoflann::allocate (size_t count=1) |
Allocates (using C's malloc) a generic type T. More... | |
Variables | |
const size_t | nanoflann::WORDSIZE =16 |
Pooled storage allocator. More... | |
const size_t | nanoflann::BLOCKSIZE =8192 |
|
inline |
Allocates (using C's malloc) a generic type T.
Params: count = number of instances to allocate. Returns: pointer (of type T*) to memory buffer
Definition at line 437 of file nanoflann.hpp.
References nanoflann::KNNResultSet< DistanceType, IndexType, CountType >::count.
const size_t nanoflann::BLOCKSIZE =8192 |
Definition at line 460 of file nanoflann.hpp.
Referenced by mrpt::math::extractSubmatrixSymmetricalBlocks(), mrpt::math::extractSubmatrixSymmetricalBlocksDyn(), and nanoflann::PooledAllocator::malloc().
const size_t nanoflann::WORDSIZE =16 |
Pooled storage allocator.
The following routines allow for the efficient allocation of storage in small chunks from a specified pool. Rather than allowing each structure to be freed individually, an entire pool of storage is freed at once. This method has two advantages over just using malloc() and free(). First, it is far more efficient for allocating small objects, as there is no overhead for remembering all the information needed to free each object or consolidating fragmented memory. Second, the decision about how long to keep an object is made at the time of allocation, and there is no need to track down all the objects to free them.
Definition at line 459 of file nanoflann.hpp.
Referenced by nanoflann::PooledAllocator::malloc().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |