|
dune-istl 2.12-git
|
Loading...
Searching...
No Matches
Dune::Amg::SubGraph< G, T >::VertexIterator Class Reference
The vertex iterator of the graph. More...
#include <dune/istl/paamg/graph.hh>
Inheritance diagram for Dune::Amg::SubGraph< G, T >::VertexIterator:

Public Types | |
| typedef std::forward_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 | |
| VertexIterator (const SubGraph< G, T > *graph, const VertexDescriptor ¤t, const VertexDescriptor &end) | |
| Constructor. | |
| VertexIterator (const VertexDescriptor ¤t) | |
| Constructor for end iterator. | |
| VertexIterator & | increment () |
| Preincrement operator. | |
| bool | equals (const VertexIterator &other) const |
| Equality iterator. | |
| const VertexDescriptor & | dereference () const |
| Get the descriptor of the current vertex. | |
| EdgeIterator | begin () const |
| Get an iterator over all edges starting at the current vertex. | |
| EdgeIterator | end () const |
| Get an iterator over all edges starting at the current vertex. | |
| constexpr Reference | operator* () const |
| constexpr Pointer | operator-> () const |
| constexpr DerivedType & | operator++ () |
| constexpr DerivedType | operator++ (int) |
Detailed Description
template<class G, class T>
class Dune::Amg::SubGraph< G, T >::VertexIterator
class Dune::Amg::SubGraph< G, T >::VertexIterator
The vertex iterator of the graph.
Constructor & Destructor Documentation
◆ VertexIterator() [1/2]
template<class G , class T >
|
explicit |
Constructor.
- Parameters
-
graph The graph over whose vertices to iterate. current The position of the iterator. end The last vertex of the graph.
◆ VertexIterator() [2/2]
template<class G , class T >
|
explicit |
Constructor for end iterator.
Use with care! All operations except operator== or operator!= will fail!
- Parameters
-
current The position of the iterator.
Member Function Documentation
◆ begin()
template<class G , class T >
| EdgeIterator Dune::Amg::SubGraph< G, T >::VertexIterator::begin | ( | ) | const |
Get an iterator over all edges starting at the current vertex.
- Returns
- Iterator position on the first edge to another vertex.
◆ dereference()
template<class G , class T >
| const VertexDescriptor & Dune::Amg::SubGraph< G, T >::VertexIterator::dereference | ( | ) | const |
Get the descriptor of the current vertex.
- Returns
- The index of the currently referenced vertex.
◆ end()
template<class G , class T >
| EdgeIterator Dune::Amg::SubGraph< G, T >::VertexIterator::end | ( | ) | const |
Get an iterator over all edges starting at the current vertex.
- Returns
- Iterator position on the first edge to another vertex.
◆ equals()
template<class G , class T >
| bool Dune::Amg::SubGraph< G, T >::VertexIterator::equals | ( | const VertexIterator & | other | ) | const |
Equality iterator.
◆ increment()
template<class G , class T >
| VertexIterator & Dune::Amg::SubGraph< G, T >::VertexIterator::increment | ( | ) |
Preincrement operator.
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8