xentara-plugin v1.2.1
The Xentara Plugin Framework
|
A handle to a bit field object located in a memory resource. More...
#include <memory/BitFieldHandle.hpp>
Public Types | |
using | TargetBitField = memory::BitField< Type > |
The object type describing the structure. | |
using | BaseType = typename TargetBitField::BaseType |
The unsigned integer type that holds the bits. | |
Public Member Functions | |
MemoryHandle () noexcept=default | |
Default constructor. | |
MemoryHandle (const ObjectHandle< Type > &baseHandle, Type mask) noexcept | |
Creates a handle for bits in an integer referenced by another handle. | |
MemoryHandle (const RawMemoryHandle &rawHandle, Type mask) noexcept | |
Creates a handle for a bit field in a memory block. | |
MemoryHandle (std::nullptr_t) noexcept | |
Conversion from an null pointer. | |
auto | operator= (std::nullptr_t) noexcept -> MemoryHandle & |
Assignment operator for a null pointer. | |
auto | operator== (std::nullptr_t) const -> bool |
Comparison operator with a null pointer. | |
operator bool () const noexcept | |
Checks for a null handle. | |
auto | operator== (const MemoryHandle &) const -> bool=default |
Comparison operator. | |
auto | operator<=> (const MemoryHandle &) const -> auto=default |
Comparison operator. | |
auto | memoryResource () const noexcept -> MemoryResource & |
Returns the memory resource that the data resides in. | |
constexpr auto | blockHandle () const noexcept -> const MemoryResource::BlockHandle & |
Returns a a handle to the memory block that holds the data. | |
constexpr auto | baseHandle () const noexcept -> const ObjectHandle< Type > & |
Returns a handle to the integer containing the bits. | |
constexpr auto | rawHandle () const noexcept -> const RawMemoryHandle & |
Returns a handle to the raw memory holding the object. | |
auto | offset () const noexcept -> std::size_t |
Gets the offset of the base value within the block data. | |
constexpr auto | mask () const -> Type |
Gets the mask describing the relevant bits. | |
A handle to a bit field object located in a memory resource.
Type | The unsigned integer type that holds the bits |
using xentara::memory::MemoryHandle< BitField< Type > >::BaseType = typename TargetBitField::BaseType |
The unsigned integer type that holds the bits.
using xentara::memory::MemoryHandle< BitField< Type > >::TargetBitField = memory::BitField<Type> |
The object type describing the structure.
|
defaultnoexcept |
Default constructor.
This constructor constructs a null handle
|
noexcept |
Creates a handle for bits in an integer referenced by another handle.
baseHandle | A handle to the base value |
mask | A mask describing the relevant bits |
|
noexcept |
Creates a handle for a bit field in a memory block.
rawHandle | A handle to the raw memory containing the base value |
mask | A mask describing the relevant bits |
|
noexcept |
Conversion from an null pointer.
This constructor constructs a null handle
|
constexprnoexcept |
Returns a handle to the integer containing the bits.
|
constexprnoexcept |
Returns a a handle to the memory block that holds the data.
|
constexpr |
Gets the mask describing the relevant bits.
|
noexcept |
Returns the memory resource that the data resides in.
|
noexcept |
Gets the offset of the base value within the block data.
|
explicitnoexcept |
Checks for a null handle.
|
default |
Comparison operator.
|
noexcept |
Assignment operator for a null pointer.
|
default |
Comparison operator.
auto xentara::memory::MemoryHandle< BitField< Type > >::operator== | ( | std::nullptr_t | ) | const -> bool |
Comparison operator with a null pointer.
|
constexprnoexcept |
Returns a handle to the raw memory holding the object.