![]() |
Image Component Library (ICL)
|
Inernally used block allocator. More...
#include <QuadTree.h>
Public Member Functions | |
| Allocator () | |
| allocates the first data chunk More... | |
| void | grow () |
| allocates the next data chunk More... | |
| void | clear () |
| deletes all allocated data chunks (except for the first) More... | |
| Node * | next () |
| returns the next four Node instances (allocates new data on demand) More... | |
| ~Allocator () | |
| frees all allocated data More... | |
| std::vector< Pt > | all () const |
| returns all contained points More... | |
Public Attributes | |
| std::vector< Node * > | allocated |
| allocated data More... | |
| int | curr |
| current data More... | |
Inernally used block allocator.
The allocator allocates ALLOC_CHUNK_SIZE*4 Node instances at once and automatically frees all data at destruction time
|
inline |
allocates the first data chunk
|
inline |
frees all allocated data
|
inline |
returns all contained points
|
inline |
deletes all allocated data chunks (except for the first)
|
inline |
allocates the next data chunk
|
inline |
returns the next four Node instances (allocates new data on demand)
| std::vector<Node*> icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE, VECTOR_TYPE >::Allocator::allocated |
allocated data
| int icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE, VECTOR_TYPE >::Allocator::curr |
current data
1.8.15