LLVM API Documentation
A BumpPtrAllocator that allows only elements of a specific type to be allocated. More...
#include <Allocator.h>
Public Member Functions | |
SpecificBumpPtrAllocator () | |
SpecificBumpPtrAllocator (SpecificBumpPtrAllocator &&Old) | |
~SpecificBumpPtrAllocator () | |
SpecificBumpPtrAllocator & | operator= (SpecificBumpPtrAllocator &&RHS) |
void | DestroyAll () |
T * | Allocate (size_t num=1) |
Allocate space for an array of objects without constructing them. |
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 361 of file Allocator.h.
llvm::SpecificBumpPtrAllocator< T >::SpecificBumpPtrAllocator | ( | ) | [inline] |
Definition at line 365 of file Allocator.h.
llvm::SpecificBumpPtrAllocator< T >::SpecificBumpPtrAllocator | ( | SpecificBumpPtrAllocator< T > && | Old | ) | [inline] |
Definition at line 366 of file Allocator.h.
llvm::SpecificBumpPtrAllocator< T >::~SpecificBumpPtrAllocator | ( | ) | [inline] |
Definition at line 368 of file Allocator.h.
T* llvm::SpecificBumpPtrAllocator< T >::Allocate | ( | size_t | num = 1 | ) | [inline] |
Allocate space for an array of objects without constructing them.
Definition at line 406 of file Allocator.h.
Referenced by llvm::OnDiskChainedHashTableGenerator< Info >::insert().
void llvm::SpecificBumpPtrAllocator< T >::DestroyAll | ( | ) | [inline] |
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.
Definition at line 378 of file Allocator.h.
Referenced by llvm::SpecificBumpPtrAllocator< SCC >::~SpecificBumpPtrAllocator().
SpecificBumpPtrAllocator& llvm::SpecificBumpPtrAllocator< T >::operator= | ( | SpecificBumpPtrAllocator< T > && | RHS | ) | [inline] |
Definition at line 370 of file Allocator.h.