Pyrogenesis  trunk
Public Member Functions | Private Attributes | Friends | List of all members
Allocators::DynamicArena< BLOCK_SIZE >::Block Class Reference

#include <DynamicArena.h>

Public Member Functions

 Block ()
 
 ~Block ()
 
 Block (const Block &other)=delete
 
Blockoperator= (const Block &other)=delete
 
 Block (Block &&other)
 
Blockoperator= (Block &&other)
 
bool Available (size_t n, size_t alignment) const
 
uint8_tAllocate (size_t n, size_t alignment)
 

Private Attributes

size_t m_Size = 0
 
uint8_tm_Data = nullptr
 

Friends

void swap (Block &lhs, Block &rhs)
 

Constructor & Destructor Documentation

◆ Block() [1/3]

template<size_t BLOCK_SIZE>
Allocators::DynamicArena< BLOCK_SIZE >::Block::Block ( )
inline

◆ ~Block()

template<size_t BLOCK_SIZE>
Allocators::DynamicArena< BLOCK_SIZE >::Block::~Block ( )
inline

◆ Block() [2/3]

template<size_t BLOCK_SIZE>
Allocators::DynamicArena< BLOCK_SIZE >::Block::Block ( const Block other)
delete

◆ Block() [3/3]

template<size_t BLOCK_SIZE>
Allocators::DynamicArena< BLOCK_SIZE >::Block::Block ( Block &&  other)
inline

Member Function Documentation

◆ Allocate()

template<size_t BLOCK_SIZE>
uint8_t* Allocators::DynamicArena< BLOCK_SIZE >::Block::Allocate ( size_t  n,
size_t  alignment 
)
inline

◆ Available()

template<size_t BLOCK_SIZE>
bool Allocators::DynamicArena< BLOCK_SIZE >::Block::Available ( size_t  n,
size_t  alignment 
) const
inline

◆ operator=() [1/2]

template<size_t BLOCK_SIZE>
Block& Allocators::DynamicArena< BLOCK_SIZE >::Block::operator= ( const Block other)
delete

◆ operator=() [2/2]

template<size_t BLOCK_SIZE>
Block& Allocators::DynamicArena< BLOCK_SIZE >::Block::operator= ( Block &&  other)
inline

Friends And Related Function Documentation

◆ swap

template<size_t BLOCK_SIZE>
void swap ( Block lhs,
Block rhs 
)
friend

Member Data Documentation

◆ m_Data

template<size_t BLOCK_SIZE>
uint8_t* Allocators::DynamicArena< BLOCK_SIZE >::Block::m_Data = nullptr
private

◆ m_Size

template<size_t BLOCK_SIZE>
size_t Allocators::DynamicArena< BLOCK_SIZE >::Block::m_Size = 0
private

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