Public Types | |
using | NodeType = N |
Public Member Functions | |
SubgraphT (const SubgraphT< N > &)=delete | |
SubgraphT< N > & | operator= (const SubgraphT< N > &)=delete |
SubgraphT (SubgraphT< N > &&other) noexcept | |
template<class T > | |
N & | addNode (T &&f) |
size_t | numNodes () const |
const N & | node (size_t index) const |
N & | node (size_t index) |
template<class F > | |
void | forEachNode (F &&func) const |
template<class F > | |
void | forEachNode (F &&func) |
void | clear () |
Friends | |
template<class T > | |
class | GraphT |
dispenso::SubgraphT< N >::~SubgraphT | ( | ) |
void dispenso::SubgraphT< N >::clear | ( | ) |
|
inline |
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
func | a functor with signature void(Node&) |
|
inline |
apply an func to each node of the subgraph. Concurrency safe.
func | a functor with signature void(const Node&) |
|
inline |