#include <Memory.h>
Definition at line 43 of file Memory.h.
◆ Alloc()
| static Block Hubris::Memory::Alloc |
( |
size_t | bufSize | ) |
|
|
static |
Allocates a thread-local block.
◆ AllocShared()
| static SharedBlock Hubris::Memory::AllocShared |
( |
size_t | size | ) |
|
|
static |
Allocates a block with syncing constructs.
◆ CreateArena()
| static Arena & Hubris::Memory::CreateArena |
( |
size_t | size | ) |
|
|
static |
Creates a thread-local arena.
- Parameters
-
- Returns
- Reference to the new arena.
◆ CreateGlobalArena()
| static Arena & Hubris::Memory::CreateGlobalArena |
( |
size_t | width | ) |
|
|
static |
Allocates a shared arena for multi-threaded use.
- Parameters
-
- Returns
- A reference to the new arena.
◆ ExpandInternalArena()
| static void Hubris::Memory::ExpandInternalArena |
( |
size_t | width | ) |
|
|
static |
Internal use. Arenas are not expandable except the internal arena.
- Parameters
-
◆ Free()
| static void Hubris::Memory::Free |
( |
Block & | buffer | ) |
|
|
static |
◆ FreeArena()
| static void Hubris::Memory::FreeArena |
( |
Arena | | ) |
|
|
static |
Attempts to free an areana, if the arean has any blocks in use this call with throw.
◆ GetMemoryAvailable()
| static size_t Hubris::Memory::GetMemoryAvailable |
( |
const Arena & | arena | ) |
|
|
static |
◆ IsEngineAllocated()
| static bool Hubris::Memory::IsEngineAllocated |
( |
const void * | pointer | ) |
|
|
static |
◆ IsFree()
| static bool Hubris::Memory::IsFree |
( |
const Block & | block | ) |
|
|
staticnoexcept |
◆ IsShared()
| static bool Hubris::Memory::IsShared |
( |
const void * | blockptr | ) |
|
|
staticnoexcept |
◆ IsThreadLocal()
| static bool Hubris::Memory::IsThreadLocal |
( |
const Block & | block | ) |
|
|
staticnoexcept |
◆ IsValid()
| static bool Hubris::Memory::IsValid |
( |
const void * | pointer | ) |
|
|
static |
◆ MemoryUsed()
| static size_t Hubris::Memory::MemoryUsed |
( |
const Arena & | arena | ) |
|
|
static |
◆ Resize()
| static Block Hubris::Memory::Resize |
( |
Block & | block, |
|
|
size_t | newSize ) |
|
static |
Attempts to resize a block, this can move the block to a diffrent location.
If this fails, the original data is unchanged.
If the block is moved, the data is copied and the old block is freed.
- Parameters
-
| block | the block to be resized. |
| newSize | the new size. |
- Returns
◆ ThreadAllocationCount()
| static unsigned int Hubris::Memory::ThreadAllocationCount |
( |
| ) |
|
|
staticnoexcept |
◆ ThreadArenasAllocated()
| static unsigned int Hubris::Memory::ThreadArenasAllocated |
( |
| ) |
|
|
staticnoexcept |
◆ ThreadArenasFreed()
| static unsigned int Hubris::Memory::ThreadArenasFreed |
( |
| ) |
|
|
staticnoexcept |
◆ ThreadBlockResizeCount()
| static unsigned int Hubris::Memory::ThreadBlockResizeCount |
( |
| ) |
|
|
staticnoexcept |
◆ ThreadDeallocationCount()
| static unsigned int Hubris::Memory::ThreadDeallocationCount |
( |
| ) |
|
|
staticnoexcept |
◆ ThreadMemoryFreed()
| static size_t Hubris::Memory::ThreadMemoryFreed |
( |
| ) |
|
|
staticnoexcept |
◆ ThreadMemoryUsed()
| static size_t Hubris::Memory::ThreadMemoryUsed |
( |
| ) |
|
|
staticnoexcept |
◆ TotalAllocationCount()
| static unsigned int Hubris::Memory::TotalAllocationCount |
( |
| ) |
|
|
staticnoexcept |
◆ TotalArenasAllocated()
| static unsigned int Hubris::Memory::TotalArenasAllocated |
( |
| ) |
|
|
staticnoexcept |
◆ TotalArenasFreed()
| static unsigned int Hubris::Memory::TotalArenasFreed |
( |
| ) |
|
|
staticnoexcept |
◆ TotalBlockResizeCount()
| static unsigned int Hubris::Memory::TotalBlockResizeCount |
( |
| ) |
|
|
staticnoexcept |
◆ TotalDeallocationCount()
| static unsigned int Hubris::Memory::TotalDeallocationCount |
( |
| ) |
|
|
staticnoexcept |
◆ TotalMemoryAllocated()
| static size_t Hubris::Memory::TotalMemoryAllocated |
( |
| ) |
|
|
staticnoexcept |
◆ TotalMemoryFreed()
| static size_t Hubris::Memory::TotalMemoryFreed |
( |
| ) |
|
|
staticnoexcept |
The documentation for this class was generated from the following file: