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

Const block iterator adapter. More...

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

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

Public Types

using reference = typename Facade::reference
 The type used for references to the components.
 
using difference_type = typename Facade::difference_type
 The type used for differences between iterators.
 

Public Member Functions

constexpr block_const_iter_type () noexcept=default
 Default constructor.
 
constexpr block_const_iter_type (const B &it) noexcept(std::is_nothrow_copy_constructible_v< B >)
 Construct a const iterator from a mutable iterator.
 
constexpr block_const_iter_type & operator= (const B &it) noexcept(std::is_nothrow_copy_assignable_v< B >)
 Copy assignment operator from a mutable iterator.
 
constexpr reference operator* () const
 Reference to the component at the current iterator position.
 

Friends

constexpr friend auto operator<=> (const block_const_iter_type &it1, const B &it2) noexcept
 Compare const iterators for equality and ordering.
 
constexpr friend auto operator<=> (const B &it1, const block_const_iter_type &it2) noexcept
 Compare const iterators for equality and ordering.
 

Detailed Description

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

Const block iterator adapter.

This adapter wraps the mutable block iterator type B and exposes const-qualified element access for const matrix row views.

Member Typedef Documentation

◆ difference_type

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

The type used for differences between iterators.

◆ reference

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

The type used for references to the components.

Constructor & Destructor Documentation

◆ block_const_iter_type() [1/2]

template<std::random_access_iterator B, class P >
constexpr Dune::Experimental::MatrixView< B, P >::block_const_iter_type::block_const_iter_type ( )
constexprdefaultnoexcept

Default constructor.

◆ block_const_iter_type() [2/2]

template<std::random_access_iterator B, class P >
constexpr Dune::Experimental::MatrixView< B, P >::block_const_iter_type::block_const_iter_type ( const B &  it)
inlineconstexprnoexcept

Construct a const iterator from a mutable iterator.

Member Function Documentation

◆ operator*()

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

Reference to the component at the current iterator position.

◆ operator=()

template<std::random_access_iterator B, class P >
constexpr block_const_iter_type & Dune::Experimental::MatrixView< B, P >::block_const_iter_type::operator= ( const B &  it)
inlineconstexprnoexcept

Copy assignment operator from a mutable iterator.

Friends And Related Symbol Documentation

◆ operator<=> [1/2]

template<std::random_access_iterator B, class P >
constexpr friend auto operator<=> ( const B &  it1,
const block_const_iter_type &  it2 
)
friend

Compare const iterators for equality and ordering.

◆ operator<=> [2/2]

template<std::random_access_iterator B, class P >
constexpr friend auto operator<=> ( const block_const_iter_type &  it1,
const B &  it2 
)
friend

Compare const iterators for equality and ordering.


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