template<class N>
class dispenso::GraphT< N >
- Examples
- graph_example.cpp.
Definition at line 527 of file graph.h.
◆ NodeType
◆ SubgraphType
◆ GraphT() [1/2]
Create empty graph.
Definition at line 536 of file graph.h.
◆ GraphT() [2/2]
◆ addNode()
template<class N >
template<class T >
Construct a NodeType with a valid functor. This node is created into subgraph 0. This is not concurrency safe.
- Parameters
-
| f | A functor with signature void(). |
- Examples
- graph_example.cpp.
Definition at line 554 of file graph.h.
◆ addSubgraph()
◆ clear()
Destroy all nodes and subgraphs. This is not concurrency safe.
Definition at line 657 of file graph.h.
◆ clearSubgraphs()
Destroy all nodes. Keeps subgraphs. This is not concurrency safe.
Definition at line 664 of file graph.h.
◆ forEachNode() [1/2]
template<class N >
template<class F >
apply an func to each node in the graph. Concurrency safe.
- Parameters
-
| func | a functor with signature void(const Node&) |
Definition at line 647 of file graph.h.
◆ forEachNode() [2/2]
template<class N >
template<class F >
apply an func to each node in the graph including all nodes from all subgraphs. Concurrency safe.
- Parameters
-
| func | a functor with signature void(const Node&) |
Definition at line 634 of file graph.h.
◆ forEachSubgraph() [1/2]
template<class N >
template<class F >
apply an func to each subgraph in the graph. Concurrency safe.
- Parameters
-
| func | a functor with signature void(SubgraphT<N>&) |
Definition at line 622 of file graph.h.
◆ forEachSubgraph() [2/2]
template<class N >
template<class F >
apply an func to each subgraph in the graph. Concurrency safe.
- Parameters
-
| func | a functor with signature void(const SubgraphT<N>&) |
Definition at line 611 of file graph.h.
◆ node() [1/2]
Return reference to node with index in subgraph 0. Concurrency safe.
- Parameters
-
Definition at line 576 of file graph.h.
◆ node() [2/2]
Return const reference to node with index in subgraph 0. Concurrency safe.
- Parameters
-
Definition at line 568 of file graph.h.
◆ numNodes()
Return number of nodes in subgraph 0. Concurrency safe.
Definition at line 560 of file graph.h.
◆ numSubgraphs()
Return number of subgraphs in the graph including subgraph 0. Concurrency safe.
Definition at line 586 of file graph.h.
◆ operator=()
Move assignment operator
Definition at line 194 of file graph.cpp.
◆ subgraph() [1/2]
Return reference to subgraph with index. Concurrency safe.
- Parameters
-
| index | - index of the subgraph. |
Definition at line 602 of file graph.h.
◆ subgraph() [2/2]
Return const reference to subgraph with index. Concurrency safe.
- Parameters
-
| index | - index of the subgraph. |
Definition at line 594 of file graph.h.
◆ SubgraphT
template<class N >
template<class T >
The documentation for this class was generated from the following files: