|
dune-istl 2.10
|
Attaches properties to the vertices of a graph. More...
#include <dune/istl/paamg/graph.hh>
Classes | |
| class | VertexIteratorT |
Public Types | |
| typedef G | Graph |
| The graph we attach properties to. | |
| typedef Graph::VertexDescriptor | VertexDescriptor |
| The vertex descriptor. | |
| typedef Graph::EdgeDescriptor | EdgeDescriptor |
| The edge descritor. | |
| typedef VP | VertexProperties |
| The type of the properties of the vertices. | |
| typedef VM | VertexMap |
| The type of the map for converting the VertexDescriptor to std::size_t. | |
| typedef Graph::EdgeIterator | EdgeIterator |
| The type of the mutable edge iterator. | |
| typedef Graph::ConstEdgeIterator | ConstEdgeIterator |
| The type of the constant edge iterator. | |
| typedef VertexIteratorT< VertexPropertiesGraph< Graph, VertexProperties, VM > > | VertexIterator |
| The type of the mutable Vertex iterator. | |
| typedef VertexIteratorT< const VertexPropertiesGraph< Graph, VertexProperties, VM > > | ConstVertexIterator |
| The type of the constant Vertex iterator. | |
Public Member Functions | |
| EdgeIterator | beginEdges (const VertexDescriptor &source) |
| Get the mutable edge iterator over edges starting at a vertex. | |
| EdgeIterator | endEdges (const VertexDescriptor &source) |
| Get the mutable edge iterator over edges starting at a vertex. | |
| ConstEdgeIterator | beginEdges (const VertexDescriptor &source) const |
| Get the mutable edge iterator over edges starting at a vertex. | |
| ConstEdgeIterator | endEdges (const VertexDescriptor &source) const |
| Get the mutable edge iterator over edges starting at a vertex. | |
| VertexIterator | begin () |
| Get an iterator over the vertices. | |
| VertexIterator | end () |
| Get an iterator over the vertices. | |
| ConstVertexIterator | begin () const |
| Get an iterator over the vertices. | |
| ConstVertexIterator | end () const |
| Get an iterator over the vertices. | |
| VertexProperties & | getVertexProperties (const VertexDescriptor &vertex) |
| Get the properties associated with a vertex. | |
| const VertexProperties & | getVertexProperties (const VertexDescriptor &vertex) const |
| Get the properties associated with a vertex. | |
| const Graph & | graph () const |
| Get the graph the properties are attached to. | |
| std::size_t | noVertices () const |
| Get the number of vertices in the graph. | |
| std::size_t | noEdges () const |
| Get the number of edges in the graph. | |
| VertexDescriptor | maxVertex () const |
| Get the maximal vertex descriptor. | |
| VertexPropertiesGraph (Graph &graph, const VertexMap vmap=VertexMap()) | |
| Constructor. | |
Attaches properties to the vertices of a graph.
| typedef Graph::ConstEdgeIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::ConstEdgeIterator |
The type of the constant edge iterator.
| typedef VertexIteratorT<const VertexPropertiesGraph<Graph, VertexProperties,VM> > Dune::Amg::VertexPropertiesGraph< G, VP, VM >::ConstVertexIterator |
The type of the constant Vertex iterator.
| typedef Graph::EdgeDescriptor Dune::Amg::VertexPropertiesGraph< G, VP, VM >::EdgeDescriptor |
The edge descritor.
| typedef Graph::EdgeIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::EdgeIterator |
The type of the mutable edge iterator.
| typedef G Dune::Amg::VertexPropertiesGraph< G, VP, VM >::Graph |
The graph we attach properties to.
| typedef Graph::VertexDescriptor Dune::Amg::VertexPropertiesGraph< G, VP, VM >::VertexDescriptor |
The vertex descriptor.
| typedef VertexIteratorT<VertexPropertiesGraph<Graph, VertexProperties,VM> > Dune::Amg::VertexPropertiesGraph< G, VP, VM >::VertexIterator |
The type of the mutable Vertex iterator.
| typedef VM Dune::Amg::VertexPropertiesGraph< G, VP, VM >::VertexMap |
The type of the map for converting the VertexDescriptor to std::size_t.
Has to provide the following method: std::size_t operator[](const VertexDescriptor& vertex)
The following condition has to be met: Let v1 and v2 be two vertex descriptors with v1 < v2 and map be the index map. Then map[v1]<map[v2] has to hold.
| typedef VP Dune::Amg::VertexPropertiesGraph< G, VP, VM >::VertexProperties |
The type of the properties of the vertices.
| Dune::Amg::VertexPropertiesGraph< G, VP, VM >::VertexPropertiesGraph | ( | Graph & | graph, |
| const VertexMap | vmap = VertexMap() ) |
Constructor.
| graph | The graph we attach properties to. |
| vmap | The vertex map. |
| VertexIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::begin | ( | ) |
Get an iterator over the vertices.
| ConstVertexIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::begin | ( | ) | const |
Get an iterator over the vertices.
| EdgeIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::beginEdges | ( | const VertexDescriptor & | source | ) |
Get the mutable edge iterator over edges starting at a vertex.
| ConstEdgeIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::beginEdges | ( | const VertexDescriptor & | source | ) | const |
Get the mutable edge iterator over edges starting at a vertex.
| VertexIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::end | ( | ) |
Get an iterator over the vertices.
| ConstVertexIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::end | ( | ) | const |
Get an iterator over the vertices.
| EdgeIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::endEdges | ( | const VertexDescriptor & | source | ) |
Get the mutable edge iterator over edges starting at a vertex.
| ConstEdgeIterator Dune::Amg::VertexPropertiesGraph< G, VP, VM >::endEdges | ( | const VertexDescriptor & | source | ) | const |
Get the mutable edge iterator over edges starting at a vertex.
| VertexProperties & Dune::Amg::VertexPropertiesGraph< G, VP, VM >::getVertexProperties | ( | const VertexDescriptor & | vertex | ) |
Get the properties associated with a vertex.
| vertex | The descriptor identifying the vertex. |
| const VertexProperties & Dune::Amg::VertexPropertiesGraph< G, VP, VM >::getVertexProperties | ( | const VertexDescriptor & | vertex | ) | const |
Get the properties associated with a vertex.
| vertex | The descriptor identifying the vertex. |
| const Graph & Dune::Amg::VertexPropertiesGraph< G, VP, VM >::graph | ( | ) | const |
Get the graph the properties are attached to.
| VertexDescriptor Dune::Amg::VertexPropertiesGraph< G, VP, VM >::maxVertex | ( | ) | const |
Get the maximal vertex descriptor.
| std::size_t Dune::Amg::VertexPropertiesGraph< G, VP, VM >::noEdges | ( | ) | const |
Get the number of edges in the graph.
| std::size_t Dune::Amg::VertexPropertiesGraph< G, VP, VM >::noVertices | ( | ) | const |
Get the number of vertices in the graph.