xentara-plugin v2.0.4
The Xentara Plugin Framework
|
Base class for handlers that perorm certain operations on a block. More...
#include <xentara/memory/MemoryResource.hpp>
Classes | |
class | BlockTraits |
A size and an alignment. More... | |
Public Member Functions | |
virtual | ~BlockHandler ()=0 |
Virtual destructor. | |
virtual auto | blockTraits () const noexcept -> BlockTraits=0 |
Gets the size and alignment info for the block. | |
virtual auto | constructAt (void *placement) const -> void=0 |
Called by the framework to construct a block in an existing placement. | |
virtual auto | constructAt (void *placement, const void *init) const -> void=0 |
Called by the framework to construct a block in an existing placement using copy construction. | |
virtual auto | destroyAt (void *placement) const noexcept -> void=0 |
Called by the framework to destroy the block in an existing placement. | |
Base class for handlers that perorm certain operations on a block.
|
pure virtualdefault |
Virtual destructor.
|
pure virtualnoexcept |
Gets the size and alignment info for the block.
Implemented in xentara::memory::MemoryBlock< Array >, and xentara::memory::MemoryBlock< Object< Type > >.
|
pure virtual |
Called by the framework to construct a block in an existing placement.
placement | The placement of the block |
Implemented in xentara::memory::MemoryBlock< Array >, and xentara::memory::MemoryBlock< Object< Type > >.
|
pure virtual |
Called by the framework to construct a block in an existing placement using copy construction.
placement | The placement of the block |
init | The placement of the block to copy. The block is guaranteed to have the same handler. |
Implemented in xentara::memory::MemoryBlock< Array >, and xentara::memory::MemoryBlock< Object< Type > >.
|
pure virtualnoexcept |
Called by the framework to destroy the block in an existing placement.
placement | The placement of the block |
Implemented in xentara::memory::MemoryBlock< Array >, and xentara::memory::MemoryBlock< Object< Type > >.