Dali 3D User Interface Engine
List of all members | Public Member Functions | Public Attributes | Private Member Functions
Dali::Internal::FixedSizeMemoryPool::Impl::Block Struct Reference

Struct to represent a block of memory from which allocations can be made. More...

Collaboration diagram for Dali::Internal::FixedSizeMemoryPool::Impl::Block:
Collaboration graph
[legend]

Public Member Functions

 Block (SizeType size)
 Construct a new block with given size. More...
 
 ~Block ()
 Destructor. More...
 

Public Attributes

void * blockMemory
 The allocated memory from which allocations can be made. More...
 
BlocknextBlock
 The next block in the linked list. More...
 

Private Member Functions

 Block (const Block &block)
 
Blockoperator= (const Block &block)
 

Detailed Description

Struct to represent a block of memory from which allocations can be made.

The block forms a linked list.

Definition at line 41 of file fixed-size-memory-pool.cpp.

Constructor & Destructor Documentation

Dali::Internal::FixedSizeMemoryPool::Impl::Block::Block ( SizeType  size)
inline

Construct a new block with given size.

Parameters
sizeThe size of the memory block to allocate in bytes. Must be non-zero.

Definition at line 51 of file fixed-size-memory-pool.cpp.

References blockMemory, and DALI_ASSERT_ALWAYS.

Dali::Internal::FixedSizeMemoryPool::Impl::Block::~Block ( )
inline

Destructor.

Definition at line 61 of file fixed-size-memory-pool.cpp.

References blockMemory.

Dali::Internal::FixedSizeMemoryPool::Impl::Block::Block ( const Block block)
private

Member Function Documentation

Block& Dali::Internal::FixedSizeMemoryPool::Impl::Block::operator= ( const Block block)
private

Member Data Documentation

void* Dali::Internal::FixedSizeMemoryPool::Impl::Block::blockMemory

The allocated memory from which allocations can be made.

Definition at line 43 of file fixed-size-memory-pool.cpp.

Referenced by Dali::Internal::FixedSizeMemoryPool::Allocate(), Block(), and ~Block().

Block* Dali::Internal::FixedSizeMemoryPool::Impl::Block::nextBlock

The documentation for this struct was generated from the following file:
Dali Docs Home
Read more about Dali