xentara-plugin v1.2.1
The Xentara Plugin Framework
|
A sentinel that protects read access to memory containing a bit field. More...
#include <memory/ReadSentinel_BitField.hpp>
Public Types | |
using | BitField = memory::BitField< Type > |
The bit field type describing the structure. | |
using | BaseType = typename BitField::BaseType |
The unsigned integer type that holds the bits. | |
Public Member Functions | |
ReadSentinel (const BitFieldHandle< Type > &handle) | |
Constructor for a handle. | |
internal auto | get () const noexcept -> Type |
Gets the bits. | |
auto | operator* () const noexcept -> Type |
Gets the bits. | |
auto | end () -> void |
Ends reading prematurely. | |
A sentinel that protects read access to memory containing a bit field.
using xentara::memory::ReadSentinel< BitField< Type > >::BaseType = typename BitField::BaseType |
The unsigned integer type that holds the bits.
using xentara::memory::ReadSentinel< BitField< Type > >::BitField = memory::BitField<Type> |
The bit field type describing the structure.
xentara::memory::ReadSentinel< BitField< Type > >::ReadSentinel | ( | const BitFieldHandle< Type > & | handle | ) |
Constructor for a handle.
handle | The handle you wish to read from |
auto xentara::memory::ReadSentinel< BitField< Type > >::end | ( | ) | -> void |
Ends reading prematurely.
|
noexcept |
Gets the bits.
|
noexcept |
Gets the bits.