dune-istl 2.12-git
Loading...
Searching...
No Matches
Dune::Experimental::MatrixView< B, P >::Iterator Class Reference

Mutable random-access iterator over matrix rows. More...

#include <dune/istl/experimental/matrixview.hh>

Inheritance diagram for Dune::Experimental::MatrixView< B, P >::Iterator:
Inheritance graph

Public Types

using reference = typename Facade::reference
 
typedef C iterator_category
 
typedef typename std::remove_const< V >::type value_type
 
typedef P pointer
 
typedef D difference_type
 
typedef value_type Value
 
typedef reference Reference
 
typedef pointer Pointer
 
typedef difference_type DifferenceType
 

Public Member Functions

constexpr reference operator* () const
 Dereference to the row view at the current row index.
 
constexpr size_type index () const
 Return the current logical row index.
 
constexpr pointer operator-> () const
 
constexpr decltype(auto) operator++ ()
 
constexpr DerivedIterator operator++ (int)
 
constexpr decltype(auto) operator-- ()
 
constexpr DerivedIterator operator-- (int)
 
constexpr reference operator[] (difference_type n) const
 
constexpr decltype(auto) operator+= (difference_type n)
 
constexpr DerivedIterator operator+ (difference_type n) const
 
constexpr DerivedIterator & operator-= (difference_type n)
 
constexpr DerivedIterator operator- (difference_type n) const
 

Protected Types

typedef It DerivedIterator
 

Protected Member Functions

constexpr const DerivedIterator & derived () const
 
constexpr DerivedIterator & derived ()
 

Detailed Description

template<std::random_access_iterator B, class P>
class Dune::Experimental::MatrixView< B, P >::Iterator

Mutable random-access iterator over matrix rows.

Dereferencing yields a row_type view for the current row index. The iterator must not outlive the matrix view it was created from.

Member Typedef Documentation

◆ reference

template<std::random_access_iterator B, class P >
using Dune::Experimental::MatrixView< B, P >::Iterator::reference = typename Facade::reference

Member Function Documentation

◆ index()

template<std::random_access_iterator B, class P >
constexpr size_type Dune::Experimental::MatrixView< B, P >::Iterator::index ( ) const
inlineconstexpr

Return the current logical row index.

◆ operator*()

template<std::random_access_iterator B, class P >
constexpr reference Dune::Experimental::MatrixView< B, P >::Iterator::operator* ( ) const
inlineconstexpr

Dereference to the row view at the current row index.


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