Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
NCollection_AccAllocator::Block Struct Reference

Descriptor of a block. More...

#include <NCollection_AccAllocator.hxx>

Public Member Functions

 Block (void *const theAddress, const size_t theSize, Block *thePrevBlock=nullptr) noexcept
void SetFreeSize (const size_t theSize) noexcept
size_t FreeSize () const noexcept
AlignedPtr Allocate (const AlignedSize theSize) noexcept
void Free ()
bool IsEmpty () const noexcept

Data Fields

void * address
AlignedPtr allocStart
Block * prevBlock
int allocCount

Detailed Description

Descriptor of a block.

Constructor & Destructor Documentation

◆ Block()

NCollection_AccAllocator::Block::Block ( void *const theAddress,
const size_t theSize,
Block * thePrevBlock = nullptr )
inlinenoexcept

Member Function Documentation

◆ Allocate()

AlignedPtr NCollection_AccAllocator::Block::Allocate ( const AlignedSize theSize)
inlinenoexcept

◆ Free()

void NCollection_AccAllocator::Block::Free ( )
inline

◆ FreeSize()

size_t NCollection_AccAllocator::Block::FreeSize ( ) const
inlinenoexcept

◆ IsEmpty()

bool NCollection_AccAllocator::Block::IsEmpty ( ) const
inlinenoexcept

◆ SetFreeSize()

void NCollection_AccAllocator::Block::SetFreeSize ( const size_t theSize)
inlinenoexcept

Field Documentation

◆ address

void* NCollection_AccAllocator::Block::address

◆ allocCount

int NCollection_AccAllocator::Block::allocCount

◆ allocStart

AlignedPtr NCollection_AccAllocator::Block::allocStart

◆ prevBlock

Block* NCollection_AccAllocator::Block::prevBlock

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