libbio
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
bio::pointer_arena Namespace Reference

Classes

struct  MemoryAllocation
 
struct  MemoryPage
 
class  Object
 
class  PointerArena
 

Typedefs

typedef uint32_t Handle
 

Functions

voidAllocate (::std::size_t bytes, ::std::size_t align)
 
bool operator== (const MemoryAllocation &lhs, const MemoryAllocation &rhs)
 
bool operator== (const MemoryPage &lhs, const MemoryPage &rhs)
 
voidReallocate (void *raw, ::std::size_t oldBytes, ::std::size_t newBytes, ::std::size_t align)
 
void DeleteObjectStorage (void *raw)
 
void DeleteObjectStorage (void *raw, ::std::size_t bytes)
 
void FreeBytes (void *raw)
 
void FreeBytes (void *raw, ::std::size_t bytes)
 
bool UseSystemContainerStorage ()
 
void PushSystemContainerStorage ()
 
void PopSystemContainerStorage ()
 
Handle HandleFor (const void *raw)
 
const voidResolve (Handle handle)
 
bool Owns (const void *raw)
 
bool IsArenaHandle (Handle handle)
 
bool IsForeignHandle (Handle handle)
 
const voidArenaBase ()
 
::std::size_t ArenaBytesHandedOut ()
 
::std::size_t ForeignHandleCount ()
 
::std::size_t ArenaAllocationRecordCount ()
 
::std::size_t ArenaSmallAllocationCount ()
 
::std::size_t ArenaPageRecordCount ()
 
Handle MakeHandle (uint32_t wordOffset, uint16_t generation)
 
uint32_t HandleOffsetField (Handle handle)
 
uint16_t HandleGeneration (Handle handle)
 
bool IsForeignHandleValue (Handle handle)
 
uint32_t HandleWordOffset (Handle handle)
 
template<typename T >
inline ::std::size_t AlignmentOf ()
 
template<typename T >
TNew ()
 
template<typename T >
TNewCopy (const T &value)
 
template<typename T , typename A1 >
TNewWith (const A1 &a1)
 
template<typename T , typename A1 , typename A2 >
TNewWith (const A1 &a1, A2 &a2)
 
template<typename T , typename A1 , typename A2 >
TNewWith (const A1 &a1, const A2 &a2)
 
template<typename T >
void Delete (T *raw)
 

Typedef Documentation

◆ Handle

Function Documentation

◆ AlignmentOf()

template<typename T >
inline ::std::size_t bio::pointer_arena::AlignmentOf ( )

◆ Allocate()

void * bio::pointer_arena::Allocate ( ::std::size_t  bytes,
::std::size_t  align 
)

◆ ArenaAllocationRecordCount()

std::size_t bio::pointer_arena::ArenaAllocationRecordCount ( )

◆ ArenaBase()

const void * bio::pointer_arena::ArenaBase ( )

◆ ArenaBytesHandedOut()

std::size_t bio::pointer_arena::ArenaBytesHandedOut ( )

◆ ArenaPageRecordCount()

std::size_t bio::pointer_arena::ArenaPageRecordCount ( )

◆ ArenaSmallAllocationCount()

std::size_t bio::pointer_arena::ArenaSmallAllocationCount ( )

◆ Delete()

template<typename T >
void bio::pointer_arena::Delete ( T raw)
inline

◆ DeleteObjectStorage() [1/2]

void bio::pointer_arena::DeleteObjectStorage ( void raw)

◆ DeleteObjectStorage() [2/2]

void bio::pointer_arena::DeleteObjectStorage ( void raw,
::std::size_t  bytes 
)

◆ ForeignHandleCount()

std::size_t bio::pointer_arena::ForeignHandleCount ( )

◆ FreeBytes() [1/2]

void bio::pointer_arena::FreeBytes ( void raw)

◆ FreeBytes() [2/2]

void bio::pointer_arena::FreeBytes ( void raw,
::std::size_t  bytes 
)

◆ HandleFor()

Handle bio::pointer_arena::HandleFor ( const void raw)

◆ HandleGeneration()

uint16_t bio::pointer_arena::HandleGeneration ( Handle  handle)
inline

◆ HandleOffsetField()

uint32_t bio::pointer_arena::HandleOffsetField ( Handle  handle)
inline

◆ HandleWordOffset()

uint32_t bio::pointer_arena::HandleWordOffset ( Handle  handle)
inline

◆ IsArenaHandle()

bool bio::pointer_arena::IsArenaHandle ( Handle  handle)

◆ IsForeignHandle()

bool bio::pointer_arena::IsForeignHandle ( Handle  handle)

◆ IsForeignHandleValue()

bool bio::pointer_arena::IsForeignHandleValue ( Handle  handle)
inline

◆ MakeHandle()

Handle bio::pointer_arena::MakeHandle ( uint32_t  wordOffset,
uint16_t  generation 
)
inline

◆ New()

template<typename T >
T * bio::pointer_arena::New ( )
inline

◆ NewCopy()

template<typename T >
T * bio::pointer_arena::NewCopy ( const T value)
inline

◆ NewWith() [1/3]

template<typename T , typename A1 >
T * bio::pointer_arena::NewWith ( const A1 a1)
inline

◆ NewWith() [2/3]

template<typename T , typename A1 , typename A2 >
T * bio::pointer_arena::NewWith ( const A1 a1,
A2 a2 
)
inline

◆ NewWith() [3/3]

template<typename T , typename A1 , typename A2 >
T * bio::pointer_arena::NewWith ( const A1 a1,
const A2 a2 
)
inline

◆ operator==() [1/2]

bool bio::pointer_arena::operator== ( const MemoryAllocation lhs,
const MemoryAllocation rhs 
)
inline

◆ operator==() [2/2]

bool bio::pointer_arena::operator== ( const MemoryPage lhs,
const MemoryPage rhs 
)
inline

◆ Owns()

bool bio::pointer_arena::Owns ( const void raw)

◆ PopSystemContainerStorage()

void bio::pointer_arena::PopSystemContainerStorage ( )

◆ PushSystemContainerStorage()

void bio::pointer_arena::PushSystemContainerStorage ( )

◆ Reallocate()

void * bio::pointer_arena::Reallocate ( void raw,
::std::size_t  oldBytes,
::std::size_t  newBytes,
::std::size_t  align 
)

◆ Resolve()

const void * bio::pointer_arena::Resolve ( Handle  handle)

◆ UseSystemContainerStorage()

bool bio::pointer_arena::UseSystemContainerStorage ( )