dune-istl 2.12-git
Loading...
Searching...
No Matches
Dune::Amg::SubGraph< G, T >::EdgeIterator Class Reference

The edge iterator of the graph. More...

#include <dune/istl/paamg/graph.hh>

Inheritance diagram for Dune::Amg::SubGraph< G, T >::EdgeIterator:
Inheritance graph

Public Types

typedef std::random_access_iterator_tag iterator_category
 
typedef typename std::remove_const< V >::type value_type
 
typedef D difference_type
 
typedef V * pointer
 
typedef R reference
 
typedef T DerivedType
 
typedef V Value
 
typedef V * Pointer
 
typedef D DifferenceType
 
typedef R Reference
 

Public Member Functions

 EdgeIterator (const VertexDescriptor &source, const EdgeDescriptor &edge)
 Constructor.
 
 EdgeIterator (const EdgeDescriptor &edge)
 Constructor for the end iterator.
 
bool equals (const EdgeIterator &other) const
 Equality operator.
 
EdgeIteratorincrement ()
 Preincrement operator.
 
EdgeIteratordecrement ()
 Preincrement operator.
 
EdgeIteratoradvance (std::ptrdiff_t n)
 
const EdgeDescriptordereference () const
 The descriptor of the current edge.
 
const VertexDescriptortarget () const
 The index of the target vertex of the current edge.
 
const VertexDescriptorsource () const
 The index of the source vertex of the current edge.
 
std::ptrdiff_t distanceTo (const EdgeIterator &other) const
 
constexpr Reference operator* () const
 
constexpr Pointer operator-> () const
 
constexpr Reference operator[] (DifferenceType n) const
 
constexpr DerivedTypeoperator++ ()
 
constexpr DerivedType operator++ (int)
 
constexpr DerivedTypeoperator+= (DifferenceType n)
 
constexpr DerivedType operator+ (DifferenceType n) const
 
constexpr DerivedTypeoperator-- ()
 
constexpr DerivedType operator-- (int)
 
constexpr DerivedTypeoperator-= (DifferenceType n)
 
constexpr DerivedType operator- (DifferenceType n) const
 

Detailed Description

template<class G, class T>
class Dune::Amg::SubGraph< G, T >::EdgeIterator

The edge iterator of the graph.

Constructor & Destructor Documentation

◆ EdgeIterator() [1/2]

template<class G , class T >
Dune::Amg::SubGraph< G, T >::EdgeIterator::EdgeIterator ( const VertexDescriptor source,
const EdgeDescriptor edge 
)
explicit

Constructor.

Parameters
sourceThe source vertex of the edge.
edgePointer to the edge the iterator should point to.

◆ EdgeIterator() [2/2]

template<class G , class T >
Dune::Amg::SubGraph< G, T >::EdgeIterator::EdgeIterator ( const EdgeDescriptor edge)
explicit

Constructor for the end iterator.

Only operator== or operator!= can be called safely on an iterator constructed this way!

Parameters
edgePointer to the end of the graph's edge array.

Member Function Documentation

◆ advance()

template<class G , class T >
EdgeIterator & Dune::Amg::SubGraph< G, T >::EdgeIterator::advance ( std::ptrdiff_t  n)

◆ decrement()

template<class G , class T >
EdgeIterator & Dune::Amg::SubGraph< G, T >::EdgeIterator::decrement ( )

Preincrement operator.

◆ dereference()

template<class G , class T >
const EdgeDescriptor & Dune::Amg::SubGraph< G, T >::EdgeIterator::dereference ( ) const

The descriptor of the current edge.

◆ distanceTo()

template<class G , class T >
std::ptrdiff_t Dune::Amg::SubGraph< G, T >::EdgeIterator::distanceTo ( const EdgeIterator other) const

◆ equals()

template<class G , class T >
bool Dune::Amg::SubGraph< G, T >::EdgeIterator::equals ( const EdgeIterator other) const

Equality operator.

◆ increment()

template<class G , class T >
EdgeIterator & Dune::Amg::SubGraph< G, T >::EdgeIterator::increment ( )

Preincrement operator.

◆ source()

template<class G , class T >
const VertexDescriptor & Dune::Amg::SubGraph< G, T >::EdgeIterator::source ( ) const

The index of the source vertex of the current edge.

◆ target()

template<class G , class T >
const VertexDescriptor & Dune::Amg::SubGraph< G, T >::EdgeIterator::target ( ) const

The index of the target vertex of the current edge.


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