Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C > Class Template Reference

#include <graph.hh>

List of all members.


Detailed Description

template<class M>
template<class C>
class Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C >

Iterator over all edges starting from a vertex.


Public Types

enum  { isMutable = SameType<C }
typedef RemoveConst< C >::Type MutableContainer
 The mutable type of the container type.
typedef const RemoveConst<
C >::Type 
ConstContainer
 The constant type of the container type.
typedef SelectType< isMutable
&&C::mutableMatrix, typename
Matrix::row_type::Iterator,
typename Matrix::row_type::ConstIterator
>::Type 
ColIterator
 The column iterator of the matrix we use.
typedef SelectType< isMutable
&&C::mutableMatrix, typename
M::block_type, const typename
M::block_type >::Type 
Weight
 The matrix block type we use as weights.

Public Member Functions

 EdgeIteratorT (const VertexDescriptor &source, const ColIterator &block, const ColIterator &end, const EdgeDescriptor &edge)
 Constructor.
 EdgeIteratorT (const ColIterator &block)
 Constructor for the end iterator.
template<class C1>
 EdgeIteratorT (const EdgeIteratorT< C1 > &other)
 Copy Constructor.
WeightType & weight () const
 Access the edge weight.
EdgeIteratorT< C > & operator++ ()
 preincrement operator.
bool operator!= (const EdgeIteratorT< typename RemoveConst< C >::Type > &other) const
 Inequality operator.
bool operator!= (const EdgeIteratorT< const typename RemoveConst< C >::Type > &other) const
 Inequality operator.
bool operator== (const EdgeIteratorT< typename RemoveConst< C >::Type > &other) const
 Equality operator.
bool operator== (const EdgeIteratorT< const typename RemoveConst< C >::Type > &other) const
 Equality operator.
VertexDescriptor target () const
 The index of the target vertex of the current edge.
VertexDescriptor source () const
 The index of the source vertex of the current edge.
const EdgeDescriptoroperator * () const
 Get the edge descriptor.
const EdgeDescriptoroperator-> () const
 Get the edge descriptor.

Member Enumeration Documentation

template<class M>
template<class C>
anonymous enum

Enumerator:
isMutable  whether C is mutable.


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

Generated on 12 Dec 2007 with Doxygen (ver 1.5.1)