xentara-plugin v2.0.4
The Xentara Plugin Framework
|
A sentinel that protects read access to memory containing a heterogenious array. More...
#include <xentara/memory/ReadSentinel_Array.hpp>
Public Member Functions | |
ReadSentinel (const ArrayBlock &block) | |
Constructor for a memory block. | |
internal auto | operator[] (const Array::Handle &handle) const noexcept -> const void * |
Gets a raw memory element. | |
template<typename Type > | |
auto | operator[] (const Array::ObjectHandle< Type > &handle) const noexcept -> const Type & |
Gets an element containing a C++ object. | |
auto | end () -> void |
Ends reading prematurely. | |
A sentinel that protects read access to memory containing a heterogenious array.
xentara::memory::ReadSentinel< Array >::ReadSentinel | ( | const ArrayBlock & | block | ) |
Constructor for a memory block.
block | The memory block you wish to read from |
auto xentara::memory::ReadSentinel< Array >::end | ( | ) | -> void |
Ends reading prematurely.
|
noexcept |
Gets a raw memory element.
handle | The element handle |
|
noexcept |
Gets an element containing a C++ object.
handle | The element handle |