Public Types | |
using | NodeType = N |
using | SubgraphType = SubgraphT< N > |
Public Member Functions | |
GraphT (const GraphT< N > &)=delete | |
GraphT & | operator= (const GraphT< N > &)=delete |
GraphT () | |
GraphT (GraphT< N > &&other) | |
GraphT< N > & | operator= (GraphT &&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) |
SubgraphT< N > & | addSubgraph () |
size_t | numSubgraphs () const |
const SubgraphT< N > & | subgraph (size_t index) const |
SubgraphT< N > & | subgraph (size_t index) |
template<class F > | |
void | forEachSubgraph (F &&func) const |
template<class F > | |
void | forEachSubgraph (F &&func) |
template<class F > | |
void | forEachNode (F &&func) const |
template<class F > | |
void | forEachNode (F &&func) |
void | clear () |
void | clearSubgraphs () |
Friends | |
template<class T > | |
class | SubgraphT |
|
inline |
|
inline |
|
inline |
apply an func to each node in the graph. Concurrency safe.
func | a functor with signature void(const Node&) |
|
inline |
apply an func to each node in the graph including all nodes from all subgraphs. Concurrency safe.
func | a functor with signature void(const Node&) |
|
inline |
apply an func to each subgraph in the graph. Concurrency safe.
func | a functor with signature void(SubgraphT<N>&) |
|
inline |
apply an func to each subgraph in the graph. Concurrency safe.
func | a functor with signature void(const SubgraphT<N>&) |
|
inline |
|
inline |
|
noexcept |