GTIRB
v2.1.0
GrammaTech Intermediate Representation for Binaries: C++ API
|
#include <Allocator.hpp>
Public Member Functions | |
SpecificBumpPtrAllocator () | |
SpecificBumpPtrAllocator (SpecificBumpPtrAllocator &&Old) | |
~SpecificBumpPtrAllocator () | |
T * | Allocate (size_t num=1) |
Allocate space for an array of objects without constructing them. More... | |
void | ForgetAllocations () |
SpecificBumpPtrAllocator & | operator= (SpecificBumpPtrAllocator &&RHS) |
A BumpPtrAllocator that allows only elements of a specific type to be allocated.
This allows calling the destructor in DestroyAll() and when the allocator is destroyed.
|
inline |
|
inline |
|
inline |
|
inline |
Allocate space for an array of objects without constructing them.
|
inline |
Forgets all allocations from the underlying allocator, effectively leaking the memory. This is useful when the allocator is no longer needed and the operating system will be reclaiming the memory (such as at
|
inline |