Dune Core Modules (2.4.1)
Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C > Class Template Reference
Iterator over all edges starting from a vertex. More...
#include <dune/istl/paamg/graph.hh>
Public Types | |
enum | { isMutable = is_same<C, MutableContainer>::value } |
typedef remove_const< C >::type | MutableContainer |
The mutable type of the container type. | |
typedef const remove_const< C >::type | ConstContainer |
The constant type of the container type. | |
typedef conditional< isMutable &&C::mutableMatrix, typenameMatrix::row_type::Iterator, typenameMatrix::row_type::ConstIterator >::type | ColIterator |
The column iterator of the matrix we use. | |
typedef conditional< isMutable &&C::mutableMatrix, typenameM::block_type, consttypenameM::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. More... | |
EdgeIteratorT (const ColIterator &block) | |
Constructor for the end iterator. More... | |
template<class C1 > | |
EdgeIteratorT (const EdgeIteratorT< C1 > &other) | |
Copy Constructor. More... | |
WeightType & | weight () const |
Access the edge weight. | |
EdgeIteratorT< C > & | operator++ () |
preincrement operator. | |
bool | operator!= (const EdgeIteratorT< typename remove_const< C >::type > &other) const |
Inequality operator. | |
bool | operator!= (const EdgeIteratorT< const typename remove_const< C >::type > &other) const |
Inequality operator. | |
bool | operator== (const EdgeIteratorT< typename remove_const< C >::type > &other) const |
Equality operator. | |
bool | operator== (const EdgeIteratorT< const typename remove_const< 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 EdgeDescriptor & | operator* () const |
Get the edge descriptor. | |
const EdgeDescriptor * | operator-> () const |
Get the edge descriptor. | |
Detailed Description
template<class M>
template<class C>
class Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C >
template<class C>
class Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C >
Iterator over all edges starting from a vertex.
Member Enumeration Documentation
◆ anonymous enum
Constructor & Destructor Documentation
◆ EdgeIteratorT() [1/3]
template<class M >
template<class C >
Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C >::EdgeIteratorT | ( | const VertexDescriptor & | source, |
const ColIterator & | block, | ||
const ColIterator & | end, | ||
const EdgeDescriptor & | edge | ||
) |
Constructor.
- Parameters
-
source The source vertex of the edges. block The matrix column block the iterator is initialized to, end The end iterator of the matrix row. edge The edge descriptor of the current edge.
◆ EdgeIteratorT() [2/3]
template<class M >
template<class C >
Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C >::EdgeIteratorT | ( | const ColIterator & | block | ) |
Constructor for the end iterator.
Variables not needed by operator== or operator!= will not be initialized.
- Parameters
-
block The matrix column block the iterator is initialized to.
◆ EdgeIteratorT() [3/3]
template<class M >
template<class C >
template<class C1 >
Dune::Amg::MatrixGraph< M >::EdgeIteratorT< C >::EdgeIteratorT | ( | const EdgeIteratorT< C1 > & | other | ) |
Copy Constructor.
- Parameters
-
other The iterator to copy.
The documentation for this class was generated from the following file:
- dune/istl/paamg/graph.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 22, 23:30, 2024)