Argon 0.1.0
Loading...
Searching...
No Matches
argon::vectorize::store< ScalarType >::StoreIterator Struct Reference

Public Types

using iterator_category = std::input_iterator_tag
 The iterator category.
using difference_type = std::ptrdiff_t
using value_type = Argon<ScalarType>

Public Member Functions

 StoreIterator (ScalarType *ptr)
Argon< ScalarType > & operator* ()
const Argon< ScalarType > & operator* () const
StoreIteratoroperator+= (int n)
StoreIteratoroperator-= (int n)
StoreIterator operator++ (int)
StoreIterator operator-- (int)
StoreIteratoroperator++ ()
StoreIteratoroperator-- ()
StoreIterator operator+ (int n) const
 Adds an integer to the iterator and returns a new iterator.
StoreIterator operator- (int n) const
 Subtracts an integer from the iterator and returns a new iterator.
difference_type operator- (const StoreIterator &other) const

Friends

StoreIterator operator+ (const int n, const StoreIterator &it)
 Adds an integer to the iterator and returns a new iterator.
bool operator== (const StoreIterator &a, const StoreIterator &b)
bool operator== (const StoreIterator &a, const ScalarType *ptr)
bool operator!= (const StoreIterator &a, const StoreIterator &b)
bool operator!= (const StoreIterator &a, const ScalarType *ptr)
auto operator<=> (const StoreIterator &a, const StoreIterator &b)

Member Function Documentation

◆ operator+()

template<typename ScalarType>
StoreIterator argon::vectorize::store< ScalarType >::StoreIterator::operator+ ( int n) const
inline

Adds an integer to the iterator and returns a new iterator.

Parameters
nThe number of steps to add.
Returns
The updated iterator.

◆ operator-()

template<typename ScalarType>
StoreIterator argon::vectorize::store< ScalarType >::StoreIterator::operator- ( int n) const
inline

Subtracts an integer from the iterator and returns a new iterator.

Parameters
nThe number of steps to subtract.
Returns
The updated iterator.

◆ operator+

template<typename ScalarType>
StoreIterator operator+ ( const int n,
const StoreIterator & it )
friend

Adds an integer to the iterator and returns a new iterator.

Parameters
nThe number of steps to add.
itThe iterator to add to.
Returns
The updated iterator.

The documentation for this struct was generated from the following file: