xentara-plugin v1.2.1
The Xentara Plugin Framework
|
A handle to a single bit of a byte located in a memory resource. More...
#include <memory/BitHandle.hpp>
Public Member Functions | |
MemoryHandle () noexcept=default | |
Default constructor. | |
MemoryHandle (const ObjectHandle< std::uint8_t > &byteHandle, std::uint8_t mask) noexcept | |
Creates a handle for a bit in a byte referenced by another handle. | |
template<utils::tools::UnsignedIntegral Type> | |
MemoryHandle (const ObjectHandle< Type > &bitFieldHandle, Type mask) noexcept | |
Creates a handle for a bit in an unsigned integer referenced by another handle. | |
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 | byteHandle () const noexcept -> const ObjectHandle< std::uint8_t > & |
Returns a handle to the byte containing the bit. | |
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 byte containing the bit within the block data. | |
constexpr auto | mask () const -> std::uint8_t |
Gets the mask describing the desired bit. | |
A handle to a single bit of a byte located in a memory resource.
|
defaultnoexcept |
Default constructor.
This constructor constructs a null handle
|
noexcept |
Creates a handle for a bit in a byte referenced by another handle.
byteHandle | A handle to the byte containing the bit |
mask | A mask describing the desired bit. Must have exactly one bit set. |
|
noexcept |
Creates a handle for a bit in an unsigned integer referenced by another handle.
bitFieldHandle | A handle to the integer containing the bit |
mask | A mask describing the desired bit. Must have exactly one bit set. |
|
noexcept |
Conversion from an null pointer.
This constructor constructs a null handle
|
constexprnoexcept |
Returns a a handle to the memory block that holds the data.
|
constexprnoexcept |
Returns a handle to the byte containing the bit.
|
constexpr |
Gets the mask describing the desired bit.
|
noexcept |
Returns the memory resource that the data resides in.
|
noexcept |
Gets the offset of the byte containing the bit 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< Bit >::operator== | ( | std::nullptr_t | ) | const -> bool |
Comparison operator with a null pointer.
|
constexprnoexcept |
Returns a handle to the raw memory holding the object.