xentara-plugin v1.2.1
The Xentara Plugin Framework
|
A sentinel that protects read access to memory containing a single C++ object. More...
#include <memory/ReadSentinel_Object.hpp>
Public Types | |
using | TargetObject = memory::Object< Type > |
The object type describing the structure. | |
using | Element = typename TargetObject::Element |
The C++ object type. | |
Public Member Functions | |
ReadSentinel (const ObjectBlock< Type > &block) | |
Constructor for a memory block. | |
ReadSentinel (const ObjectHandle< Type > &handle) | |
Constructor for a handle. | |
internal auto | get () const noexcept -> const Element & |
Gets the object. | |
auto | operator* () const noexcept -> const Element & |
Gets the object. | |
auto | operator-> () const noexcept -> const Element * |
Member access operator. | |
auto | end () -> void |
Ends reading prematurely. | |
A sentinel that protects read access to memory containing a single C++ object.
using xentara::memory::ReadSentinel< Object< Type > >::Element = typename TargetObject::Element |
The C++ object type.
using xentara::memory::ReadSentinel< Object< Type > >::TargetObject = memory::Object<Type> |
The object type describing the structure.
xentara::memory::ReadSentinel< Object< Type > >::ReadSentinel | ( | const ObjectBlock< Type > & | block | ) |
Constructor for a memory block.
block | The memory block you wish to read from |
xentara::memory::ReadSentinel< Object< Type > >::ReadSentinel | ( | const ObjectHandle< Type > & | handle | ) |
Constructor for a handle.
handle | The handle you wish to read from |
auto xentara::memory::ReadSentinel< Object< Type > >::end | ( | ) | -> void |
Ends reading prematurely.
|
noexcept |
Gets the object.
|
noexcept |
Gets the object.
|
noexcept |
Member access operator.