dune-istl
2.4
|
The edge iterator of the graph. More...
#include <dune/istl/paamg/graph.hh>
Public Member Functions | |
EdgeIterator (const VertexDescriptor &source, const EdgeDescriptor &edge) | |
Constructor. More... | |
EdgeIterator (const EdgeDescriptor &edge) | |
Constructor for the end iterator. More... | |
bool | equals (const EdgeIterator &other) const |
Equality operator. More... | |
EdgeIterator & | increment () |
Preincrement operator. More... | |
EdgeIterator & | decrement () |
Preincrement operator. More... | |
EdgeIterator & | advance (std::ptrdiff_t n) |
const EdgeDescriptor & | dereference () const |
The descriptor of the current edge. More... | |
const VertexDescriptor & | target () const |
The index of the target vertex of the current edge. More... | |
const VertexDescriptor & | source () const |
The index of the source vertex of the current edge. More... | |
std::ptrdiff_t | distanceTo (const EdgeIterator &other) const |
The edge iterator of the graph.
|
explicit |
Constructor.
source | The source vertex of the edge. |
edge | Pointer to the edge the iterator should point to. |
|
explicit |
Constructor for the end iterator.
Only operator== or operator!= can be called safely on an iterator constructed this way!
edge | Pointer to the end of the graph's edge array. |
EdgeIterator& Dune::Amg::SubGraph< G, T >::EdgeIterator::advance | ( | std::ptrdiff_t | n | ) |
EdgeIterator& Dune::Amg::SubGraph< G, T >::EdgeIterator::decrement | ( | ) |
Preincrement operator.
const EdgeDescriptor& Dune::Amg::SubGraph< G, T >::EdgeIterator::dereference | ( | ) | const |
The descriptor of the current edge.
std::ptrdiff_t Dune::Amg::SubGraph< G, T >::EdgeIterator::distanceTo | ( | const EdgeIterator & | other | ) | const |
bool Dune::Amg::SubGraph< G, T >::EdgeIterator::equals | ( | const EdgeIterator & | other | ) | const |
Equality operator.
EdgeIterator& Dune::Amg::SubGraph< G, T >::EdgeIterator::increment | ( | ) |
Preincrement operator.
const VertexDescriptor& Dune::Amg::SubGraph< G, T >::EdgeIterator::source | ( | ) | const |
The index of the source vertex of the current edge.
const VertexDescriptor& Dune::Amg::SubGraph< G, T >::EdgeIterator::target | ( | ) | const |
The index of the target vertex of the current edge.