xentara-plugin v2.0.4
The Xentara Plugin Framework
|
A handle used to access a memory block within a memory resource. More...
#include <xentara/memory/MemoryResource.hpp>
Public Types | |
using | Storage = utils::memory::SizedStorage< kHandleDataSize< kRole > > |
The storage used for holding the handle data. | |
Public Member Functions | |
Handle () noexcept | |
Default constructor. | |
internal | Handle (std::nullptr_t) noexcept |
Constructor for a null handle. | |
auto | operator= (std::nullptr_t) noexcept -> Handle & |
Assignment operator for a nullptr | |
auto | operator== (const Handle &rhs) const noexcept -> bool |
Comparison operator. | |
auto | operator== (std::nullptr_t) const noexcept -> bool |
Comparison operator for a nullptr | |
operator bool () const noexcept | |
Checks whether the handle points to a block. | |
auto | memoryResource () const noexcept -> MemoryResource & |
Gets the associeted memory resource. | |
auto | swap (Handle &other) noexcept -> void |
Swaps the handle with another handle. | |
A handle used to access a memory block within a memory resource.
using xentara::memory::MemoryResource::Handle< kRole >::Storage = utils::memory::SizedStorage<kHandleDataSize<kRole> > |
The storage used for holding the handle data.
|
noexcept |
Default constructor.
Constructs a handle not associated with any memory
|
noexcept |
Constructor for a null handle.
Constructs a handle not associated with any memory. This is equivalent to the default constructor.
|
noexcept |
Gets the associeted memory resource.
|
explicitnoexcept |
Checks whether the handle points to a block.
|
noexcept |
Assignment operator for a nullptr
This turns the handle into a null handle not associated with any memory.
|
noexcept |
Comparison operator.
|
noexcept |
Comparison operator for a nullptr
|
noexcept |
Swaps the handle with another handle.