LLVM: llvm::Recycler< T, Size, Align (original) (raw)

Recycler - This class manages a linked-list of deallocated nodes and facilitates reusing deallocated memory in place of allocating new memory. More...

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

Public Member Functions
~Recycler ()
Recycler (const Recycler &)=delete
Recycler (Recycler &&Other)
Recycler ()=default
template
void clear (AllocatorType &Allocator)
clear - Release all the tracked allocations to the allocator.
template<class SubClass, class AllocatorType>
SubClass * Allocate (AllocatorType &Allocator)
template
T * Allocate (AllocatorType &Allocator)
template<class SubClass, class AllocatorType>
void Deallocate (AllocatorType &, SubClass *Element)
void PrintStats ()

template<class T, size_t Size = sizeof(T), size_t Align = alignof(T)>
class llvm::Recycler< T, Size, Align >

Recycler - This class manages a linked-list of deallocated nodes and facilitates reusing deallocated memory in place of allocating new memory.

Definition at line 37 of file Recycler.h.

template<class T, size_t Size = sizeof(T), size_t Align = alignof(T)>

Recycler() [1/3]

template<class T, size_t Size = sizeof(T), size_t Align = alignof(T)>

Recycler() [2/3]

template<class T, size_t Size = sizeof(T), size_t Align = alignof(T)>

Recycler() [3/3]

template<class T, size_t Size = sizeof(T), size_t Align = alignof(T)>

Allocate() [1/2]

template<class T, size_t Size = sizeof(T), size_t Align = alignof(T)>

template<class SubClass, class AllocatorType>

Allocate() [2/2]

template<class T, size_t Size = sizeof(T), size_t Align = alignof(T)>

template

clear()

template<class T, size_t Size = sizeof(T), size_t Align = alignof(T)>

template

clear - Release all the tracked allocations to the allocator.

The recycler must be free of any tracked allocations before being deleted; calling clear is one way to ensure this.

Definition at line 75 of file Recycler.h.

References Allocator, Size, and T.

Deallocate()

template<class T, size_t Size = sizeof(T), size_t Align = alignof(T)>

template<class SubClass, class AllocatorType>

PrintStats()


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