LLVM: llvm::SpecificBumpPtrAllocator< T > Class Template Reference (original) (raw)

A BumpPtrAllocator that allows only elements of a specific type to be allocated. More...

#include "[llvm/Support/Allocator.h](Allocator%5F8h%5Fsource.html)"

Public Member Functions
SpecificBumpPtrAllocator ()
SpecificBumpPtrAllocator (SpecificBumpPtrAllocator &&Old)
~SpecificBumpPtrAllocator ()
SpecificBumpPtrAllocator & operator= (SpecificBumpPtrAllocator &&RHS)
void DestroyAll ()
Call the destructor of each allocated object and deallocate all but the current slab and reset the current pointer to the beginning of it, freeing all memory allocated so far.
T * Allocate (size_t num=1)
Allocate space for an array of objects without constructing them.
std::optional< int64_t > identifyObject (const void *Ptr)

template<typename T>
class llvm::SpecificBumpPtrAllocator< T >

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.

Definition at line 390 of file Allocator.h.

SpecificBumpPtrAllocator() [2/2]

~SpecificBumpPtrAllocator()

Allocate()

Allocate space for an array of objects without constructing them.

Definition at line 440 of file Allocator.h.

References T.

DestroyAll()

identifyObject()

Returns

An index uniquely and reproducibly identifying an input pointer Ptr in the given allocator. Returns an empty optional if the pointer is not found in the allocator.

Definition at line 445 of file Allocator.h.

operator=()


The documentation for this class was generated from the following file: