GTIRB
v2.2.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.
(Deprecated) Available in the global namespace when GTIRB_WRAP_UTILS_IN_NAMESPACE is enabled.
|
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 |