#include <PoolAllocator.hpp>
Public Member Functions | |
Base * | allocate (size_t sz) |
PoolAllocator (char *buffer, size_t buffer_size, bool owns_buffer) | |
void | reset () |
virtual | ~PoolAllocator () |
template<typename F > | |
void | iterate (F f) |
Takes a lambda (or really any callable) that is called repeated for each allocated Base*. More... | |
size_t | remaining () |
Public Attributes | |
char * | buffer |
size_t | buffer_size |
size_t | allocated |
bool | owns_buffer |
Friends | |
template<typename OtherBase > | |
void * | operator new (size_t, Grappa::PoolAllocator< OtherBase > &) |
Definition at line 45 of file PoolAllocator.hpp.
|
inline |
Definition at line 63 of file PoolAllocator.hpp.
|
inlinevirtual |
Definition at line 69 of file PoolAllocator.hpp.
|
inline |
Definition at line 52 of file PoolAllocator.hpp.
|
inline |
Takes a lambda (or really any callable) that is called repeated for each allocated Base*.
Definition at line 80 of file PoolAllocator.hpp.
|
inline |
Definition at line 89 of file PoolAllocator.hpp.
|
inline |
Definition at line 65 of file PoolAllocator.hpp.
|
friend |
size_t Grappa::PoolAllocator< Base >::allocated |
Definition at line 49 of file PoolAllocator.hpp.
char* Grappa::PoolAllocator< Base >::buffer |
Definition at line 47 of file PoolAllocator.hpp.
size_t Grappa::PoolAllocator< Base >::buffer_size |
Definition at line 48 of file PoolAllocator.hpp.
bool Grappa::PoolAllocator< Base >::owns_buffer |
Definition at line 50 of file PoolAllocator.hpp.