GTIRB  v2.2.0
GrammaTech Intermediate Representation for Binaries: C++ API
Classes | Namespaces | Typedefs | Functions
Allocator.hpp File Reference
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <iterator>
#include <utility>
#include <vector>
Include dependency graph for Allocator.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gtirb::BumpPtrAllocatorImpl< SlabSize, SizeThreshold >
 
class  gtirb::SpecificBumpPtrAllocator< T >
 

Namespaces

 gtirb
 Main namespace for the GTIRB API.
 

Typedefs

typedef BumpPtrAllocatorImpl gtirb::BumpPtrAllocator
 

Functions

uintptr_t gtirb::alignAddr (const void *Addr, size_t Alignment)
 
size_t gtirb::alignmentAdjustment (const void *Ptr, size_t Alignment)
 
constexpr bool gtirb::isPowerOf2_64 (uint64_t Value)
 
uint64_t gtirb::NextPowerOf2 (uint64_t A)
 
template<size_t SlabSize, size_t SizeThreshold>
void operator delete (void *, gtirb::allocator::BumpPtrAllocatorImpl< SlabSize, SizeThreshold > &)
 
template<size_t SlabSize, size_t SizeThreshold>
void * operator new (size_t Size, gtirb::allocator::BumpPtrAllocatorImpl< SlabSize, SizeThreshold > &Allocator)
 

Function Documentation

◆ operator delete()

template<size_t SlabSize, size_t SizeThreshold>
void operator delete ( void *  ,
gtirb::allocator::BumpPtrAllocatorImpl< SlabSize, SizeThreshold > &   
)

◆ operator new()

template<size_t SlabSize, size_t SizeThreshold>
void* operator new ( size_t  Size,
gtirb::allocator::BumpPtrAllocatorImpl< SlabSize, SizeThreshold > &  Allocator 
)