Classes | Functions | Variables
Collaboration diagram for Memory allocation:

Classes

class  nanoflann::PooledAllocator
 

Functions

template<typename T >
T * nanoflann::allocate (size_t count=1)
 

Variables

const size_t nanoflann::BLOCKSIZE =8192
 
const size_t nanoflann::WORDSIZE =16
 

Detailed Description

Function Documentation

◆ allocate()

template<typename T >
T* nanoflann::allocate ( size_t  count = 1)
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 462 of file nanoflann.hpp.

Variable Documentation

◆ BLOCKSIZE

const size_t nanoflann::BLOCKSIZE =8192

Definition at line 485 of file nanoflann.hpp.

◆ WORDSIZE

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 484 of file nanoflann.hpp.



lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:26