dune-istl  2.1.1
Public Member Functions
Dune::Amg::SubGraph< G, T >::VertexIterator Class Reference

The vertex iterator of the graph. More...

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

List of all members.

Public Member Functions

 VertexIterator (const SubGraph< G, T > *graph, const VertexDescriptor &current, const VertexDescriptor &end)
 Constructor.
 VertexIterator (const VertexDescriptor &current)
 Constructor for end iterator.
VertexIteratorincrement ()
 Preincrement operator.
bool equals (const VertexIterator &other) const
 Equality iterator.
const VertexDescriptordereference () 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.

Detailed Description

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

The vertex iterator of the graph.


Constructor & Destructor Documentation

template<class G, class T>
Dune::Amg::SubGraph< G, T >::VertexIterator::VertexIterator ( const SubGraph< G, T > *  graph,
const VertexDescriptor current,
const VertexDescriptor end 
) [explicit]

Constructor.

Parameters:
graphThe graph over whose vertices to iterate.
currentThe position of the iterator.
endThe last vertex of the graph.
template<class G, class T>
Dune::Amg::SubGraph< G, T >::VertexIterator::VertexIterator ( const VertexDescriptor current) [explicit]

Constructor for end iterator.

Use with care! All operations except operator== or operator!= will fail!

Parameters:
currentThe position of the iterator.

Member Function Documentation

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.
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.
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.
template<class G, class T>
bool Dune::Amg::SubGraph< G, T >::VertexIterator::equals ( const VertexIterator other) const

Equality iterator.

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: