|
| template<class T > |
| class | GraphT |
| |
template<class N>
class dispenso::SubgraphT< N >
- Examples
- graph_example.cpp.
Definition at line 416 of file graph.h.
◆ NodeType
◆ SubgraphT()
◆ ~SubgraphT()
◆ addNode()
template<class N >
template<class T >
Construct a NodeType with a valid functor. This is not concurrency safe.
- Parameters
-
| f | A functor with signature void(). |
- Returns
- reference to the created node.
- Examples
- graph_example.cpp.
Definition at line 434 of file graph.h.
◆ clear()
Removes all dependency between nodes of this subgraph and other nodes, destroy this subgraph nodes. This is not concurrency safe.
Definition at line 54 of file graph.cpp.
◆ forEachNode() [1/2]
template<class N >
template<class F >
apply an func to each node of the subgraph. This is not concurrency safe. This methods should never be called concurrent to when the graph execution is happening
- Parameters
-
| func | a functor with signature void(Node&) |
Definition at line 478 of file graph.h.
◆ forEachNode() [2/2]
template<class N >
template<class F >
apply an func to each node of the subgraph. Concurrency safe.
- Parameters
-
| func | a functor with signature void(const Node&) |
Definition at line 466 of file graph.h.
◆ node() [1/2]
Return reference to node with index. Concurrency safe.
- Parameters
-
Definition at line 457 of file graph.h.
◆ node() [2/2]
Return const reference to node with index. Concurrency safe.
- Parameters
-
Definition at line 449 of file graph.h.
◆ numNodes()
Return number of nodes in subgraph. Concurrency safe.
Definition at line 441 of file graph.h.
◆ GraphT
template<class N >
template<class T >
The documentation for this class was generated from the following files: