![]() |
deal.II version GIT relicensing-6809-ge913b9bb34 2026-09-25 17:20:01+00:00
|
#include <deal.II/base/vectorization.h>
An iterator for VectorizedArray.
Definition at line 98 of file vectorization.h.
Public Member Functions | |
| constexpr | VectorizedArrayIterator (T &data, const std::size_t lane) |
| constexpr bool | operator== (const VectorizedArrayIterator< T > &other) const |
| constexpr bool | operator!= (const VectorizedArrayIterator< T > &other) const |
| constexpr const T::value_type & | operator* () const |
| template<typename U = T> | |
| constexpr std::enable_if_t<!std::is_same_v< U, const U >, typename T::value_type > & | operator* () |
| constexpr VectorizedArrayIterator< T > & | operator++ () |
| constexpr VectorizedArrayIterator< T > & | operator+= (const std::size_t offset) |
| constexpr VectorizedArrayIterator< T > & | operator-- () |
| constexpr VectorizedArrayIterator< T > | operator+ (const std::size_t &offset) const |
| constexpr std::ptrdiff_t | operator- (const VectorizedArrayIterator< T > &other) const |
Private Attributes | |
| T * | data |
| std::size_t | lane |
|
inlineconstexpr |
Constructor.
| data | The actual VectorizedArray. |
| lane | A pointer to the current lane. |
Definition at line 107 of file vectorization.h.
|
inlineconstexpr |
Compare for equality.
Definition at line 116 of file vectorization.h.
|
inlineconstexpr |
Compare for inequality.
Definition at line 128 of file vectorization.h.
|
inlineconstexpr |
Dereferencing operator (const version): returns the value of the current lane.
Definition at line 141 of file vectorization.h.
|
inlineconstexpr |
Dereferencing operator (non-const version): returns the value of the current lane.
Definition at line 155 of file vectorization.h.
|
inlineconstexpr |
Prefix ++ operator: ++iterator. This operator advances the iterator to the next lane and returns a reference to *this.
Definition at line 167 of file vectorization.h.
|
inlineconstexpr |
This operator advances the iterator by offset lanes and returns a reference to *this.
Definition at line 179 of file vectorization.h.
|
inlineconstexpr |
Prefix – operator: –iterator. This operator advances the iterator to the previous lane and returns a reference to *this.
Definition at line 192 of file vectorization.h.
|
inlineconstexpr |
Create new iterator, which is shifted by offset.
Definition at line 206 of file vectorization.h.
|
inlineconstexpr |
Compute distance between this iterator and iterator other.
Definition at line 216 of file vectorization.h.
|
private |
Pointer to the actual VectorizedArray.
Definition at line 226 of file vectorization.h.
|
private |
Pointer to the current lane.
Definition at line 231 of file vectorization.h.