Template Class GridBlockAllocator
Defined in File grid_allocator.hpp
Nested Relationships
Nested Types
Class Documentation
-
template<typename DataT>
class GridBlockAllocator The GridBlockAllocator is used to pre-allocate the meory of multiple Grids in “chunks”. It is a very simple memory pool.
Each chunk allocates memory for 512 Grids
Public Types
-
using Deleter = std::function<void()>
Public Functions
-
inline GridBlockAllocator(size_t log2dim)
-
GridBlockAllocator(const GridBlockAllocator&) = delete
-
GridBlockAllocator(GridBlockAllocator&&) = default
-
GridBlockAllocator &operator=(const GridBlockAllocator &other) = delete
-
GridBlockAllocator &operator=(GridBlockAllocator &&other) = default
-
inline void clear()
-
inline void releaseUnusedMemory()
-
inline size_t capacity() const
-
inline size_t size() const
-
inline size_t memUsage() const
Public Static Attributes
-
static constexpr size_t blocks_per_chunk = 512
-
using Deleter = std::function<void()>