#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 34 of file PoolAllocator.hpp.
|
inline |
Definition at line 52 of file PoolAllocator.hpp.
|
inlinevirtual |
Definition at line 58 of file PoolAllocator.hpp.
|
inline |
Definition at line 41 of file PoolAllocator.hpp.
|
inline |
Takes a lambda (or really any callable) that is called repeated for each allocated Base*.
Definition at line 69 of file PoolAllocator.hpp.
|
inline |
Definition at line 78 of file PoolAllocator.hpp.
|
inline |
Definition at line 54 of file PoolAllocator.hpp.
|
friend |
| size_t Grappa::PoolAllocator< Base >::allocated |
Definition at line 38 of file PoolAllocator.hpp.
| char* Grappa::PoolAllocator< Base >::buffer |
Definition at line 36 of file PoolAllocator.hpp.
| size_t Grappa::PoolAllocator< Base >::buffer_size |
Definition at line 37 of file PoolAllocator.hpp.
| bool Grappa::PoolAllocator< Base >::owns_buffer |
Definition at line 39 of file PoolAllocator.hpp.