xentara-plugin v2.0.4
The Xentara Plugin Framework
|
A handle to an array element. More...
#include <xentara/memory/Array.hpp>
Public Member Functions | |
constexpr | Handle () noexcept=default |
Default constructor. | |
auto | operator== (const Handle &) const -> bool=default |
Comparison operator. | |
auto | operator<=> (const Handle &rhs) const -> auto=default |
Comparison operator. | |
constexpr auto | offset () const noexcept -> std::size_t |
Gets the offset within the array data. | |
auto | operator++ () noexcept -> Handle & |
Increments the handle by a one byte. | |
auto | operator++ (int) noexcept -> Handle |
Increments the handle by a one byte. | |
auto | operator-- () noexcept -> Handle & |
Decrements the handle by a one byte. | |
auto | operator-- (int) noexcept -> Handle |
Decrements the handle by a one byte. | |
auto | operator+= (std::ptrdiff_t offset) noexcept -> Handle & |
Offsets the handle by a specific number of bytes. | |
auto | operator-= (std::ptrdiff_t offset) noexcept -> Handle & |
Offsets the handle by a specific number of bytes. | |
A handle to an array element.
This handle can be used to get an accessor to the element from a reader or writer
|
constexprdefaultnoexcept |
Default constructor.
This constructor creates an invalid handle. Do not attempt to use this handle, the associated memory may not be valid.
|
constexprnoexcept |
Gets the offset within the array data.
|
noexcept |
Increments the handle by a one byte.
|
noexcept |
Increments the handle by a one byte.
|
noexcept |
Offsets the handle by a specific number of bytes.
offset | The number of bytes to move the handle |
|
noexcept |
Decrements the handle by a one byte.
|
noexcept |
Decrements the handle by a one byte.
|
noexcept |
Offsets the handle by a specific number of bytes.
offset | The negative number of bytes to move the handle |
|
default |
Comparison operator.
|
default |
Comparison operator.