libER 0.1.4.2
ELDEN RING API library
|
The bidirectional param table iterator. More...
#include <param_iterator.hpp>
Public Types | |
using | iterator_concept = std::bidirectional_iterator_tag |
Bidirectional iterator concept tag. | |
using | iterator_category = std::bidirectional_iterator_tag |
Bidirectional iterator category tag. | |
using | value_type = std::pair< row_index_type, Def & > |
Dereferencing returns a row index/row pair. | |
using | difference_type = ptrdiff_t |
Iterator difference type. | |
using | pointer = value_type * |
Iterator pointer type. | |
using | reference = value_type & |
Iterator reference type. | |
Public Member Functions | |
param_iterator () noexcept | |
Default construct a param iterator. | |
param_iterator (const param_file &file, difference_type pos) noexcept | |
Construct a param iterator at a given row entry position. | |
param_iterator (const param_iterator &other) noexcept | |
Construct a new param iterator (copy constructor). | |
param_iterator (const param_iterator< std::remove_const_t< Def > > &other) noexcept | |
Construct a new param iterator (const iterator promotion). | |
value_type | operator* () const noexcept |
Dereference the iterator at the current position to get a row index/row pair. | |
param_iterator & | operator++ () noexcept |
Advance the iterator forwards by one entry (precrement). | |
param_iterator | operator++ (int) noexcept |
Advance the iterator forwards by one entry (postcrement). | |
param_iterator & | operator-- () noexcept |
Advance the iterator backwards by one entry (predecrement). | |
param_iterator | operator-- (int) noexcept |
Advance the iterator backwards by one entry (postdecrement). | |
param_iterator & | operator+= (difference_type offset) noexcept |
Advance the iterator forwards by offset entries. | |
param_iterator | operator+ (difference_type offset) const noexcept |
Add offset entries to the iterator. | |
param_iterator & | operator-= (difference_type offset) noexcept |
Advance the iterator backwards by offset entries. | |
param_iterator | operator- (difference_type offset) const noexcept |
Subtract offset entries from the iterator. | |
template<typename OtherDef > requires (std::is_same_v<const Def, const OtherDef>) | |
difference_type | operator- (const param_iterator< OtherDef > &rhs) const noexcept |
How many steps would it take from this iterator to reach iterator rhs? | |
value_type | operator[] (difference_type offset) const noexcept |
Param table iterator subscript. | |
template<typename OtherDef > requires (std::is_same_v<const Def, const OtherDef>) | |
bool | operator== (const param_iterator< OtherDef > &rhs) const noexcept |
The iterator equality comparison operator. | |
template<typename OtherDef > requires (std::is_same_v<const Def, const OtherDef>) | |
std::strong_ordering | operator<=> (const param_iterator< OtherDef > &rhs) const noexcept |
The iterator relation operator in terms of row indices. | |
Friends | |
template<typename > | |
class | param_table |
The bidirectional param table iterator.
Def | paramdef type being iterated |
|
inlinenoexcept |
Default construct a param iterator.
All default constructed param iterators are equal.
|
inlinenoexcept |
Construct a param iterator at a given row entry position.
file | the param file |
pos | the entry index in the range [0, file.row_count) |
|
inlinenoexcept |
Dereference the iterator at the current position to get a row index/row pair.
|
inlinenoexcept |
Add offset entries to the iterator.
offset | signed offset to add |
|
inlinenoexcept |
Advance the iterator forwards by one entry (precrement).
|
inlinenoexcept |
Advance the iterator forwards by one entry (postcrement).
|
inlinenoexcept |
Advance the iterator forwards by offset entries.
offset | signed offset to advance by |
|
inlinenoexcept |
How many steps would it take from this iterator to reach iterator rhs?
The result is only valid if the iterators point to the same param range.
OtherDef | optionally const matching paramdef type |
rhs | another iterator (can be a const iterator) to the same range |
|
inlinenoexcept |
Subtract offset entries from the iterator.
offset | signed offset to subtract |
|
inlinenoexcept |
Advance the iterator backwards by one entry (predecrement).
|
inlinenoexcept |
Advance the iterator backwards by one entry (postdecrement).
|
inlinenoexcept |
Advance the iterator backwards by offset entries.
offset | signed offset to advance by |
|
inlinenoexcept |
The iterator relation operator in terms of row indices.
OtherDef | optionally const matching paramdef type |
rhs | another iterator (can be a const iterator) |
|
inlinenoexcept |
The iterator equality comparison operator.
Any iterators pointing to the same param row are equal, as are any default constructed iterators.
Operator != is synthesized from this operator.
OtherDef | optionally const matching paramdef type |
rhs | another iterator (can be a const iterator) |
|
inlinenoexcept |
Param table iterator subscript.
offset | the param entry offset from the current iterator position |