|
Argon 0.1.0
|
The Iterator type for the range. More...
#include <load.hpp>
Public Types | |
| using | iterator_category = std::bidirectional_iterator_tag |
| The iterator category. | |
| using | difference_type = std::ptrdiff_t |
| The difference type. | |
| using | value_type = helpers::ArgonFor_t<intrinsic_type> |
| The value type of the iterator. | |
| using | reference_type = value_type& |
Public Member Functions | |
| LoadIterator (const ScalarType *ptr) | |
| Constructs a LoadIterator from a pointer to the data. | |
| Argon< ScalarType > | operator* () const |
| Dereferences the iterator to get the SIMD vector. | |
| LoadIterator & | operator+= (int n) |
| Increments the iterator by a number of steps. | |
| LoadIterator & | operator-= (int n) |
| Decrements the iterator by a number of steps. | |
| LoadIterator | operator++ (int) |
| Postfix increment operator. | |
| LoadIterator & | operator++ () |
| Prefix increment operator. | |
| LoadIterator | operator-- (int) |
| Postfix decrement operator. | |
| LoadIterator & | operator-- () |
| Prefix decrement operator. | |
| LoadIterator | operator+ (int n) const |
| Adds an integer to the iterator and returns a new iterator. | |
| LoadIterator | operator- (int n) const |
| Subtracts an integer from the iterator and returns a new iterator. | |
| LoadIterator & | operator[] (int n) const |
| Accesses the element at the given index. | |
| difference_type | operator- (const LoadIterator &other) const |
| Calculates the difference between two iterators. | |
Friends | |
| LoadIterator | operator+ (const int n, const LoadIterator &it) |
| Adds an integer to the iterator and returns a new iterator. | |
| bool | operator== (const LoadIterator &a, const LoadIterator &b) |
| Compares LoadIterators for equality. | |
| bool | operator== (const LoadIterator &a, const ScalarType *ptr) |
| Compares LoadIterators for equality. | |
| bool | operator!= (const LoadIterator &a, const LoadIterator &b) |
| Compares LoadIterators for inequality. | |
| bool | operator!= (const LoadIterator &a, const ScalarType *ptr) |
| Compares LoadIterators for inequality. | |
| auto | operator<=> (const LoadIterator &a, const LoadIterator &b) |
| Compares LoadIterators. | |
The Iterator type for the range.
|
inline |
Constructs a LoadIterator from a pointer to the data.
| ptr | The pointer to the data. |
|
inline |
Dereferences the iterator to get the SIMD vector.
|
inline |
Adds an integer to the iterator and returns a new iterator.
| n | The number of steps to add. |
|
inline |
Prefix increment operator.
|
inline |
Postfix increment operator.
|
inline |
Increments the iterator by a number of steps.
| n | The number of steps to increment. |
|
inline |
Calculates the difference between two iterators.
| other | The other iterator to subtract from this one. |
|
inline |
Subtracts an integer from the iterator and returns a new iterator.
| n | The number of steps to subtract. |
|
inline |
Prefix decrement operator.
|
inline |
Postfix decrement operator.
|
inline |
Decrements the iterator by a number of steps.
| n | The number of steps to decrement. |
|
inline |
Accesses the element at the given index.
| n | The index of the element to access. |
|
friend |
Compares LoadIterators for inequality.
|
friend |
Adds an integer to the iterator and returns a new iterator.
| n | The number of steps to add. |
| it | The iterator to add to. |
|
friend |
Compares LoadIterators for equality.