COPASI API
4.16.103
|
#include <CDependencyGraph.h>
Public Member Functions | |
void | addDependent (const size_t &node_num) |
CDependencyGraphNode () | |
const std::set< size_t > & | getDependents () const |
~CDependencyGraphNode () | |
Private Attributes | |
std::set< size_t > | mDependents |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CDependencyGraphNode &d) |
CDependencyGraphNode describes a node in the dependency graph.
Definition at line 28 of file CDependencyGraph.h.
CDependencyGraphNode::CDependencyGraphNode | ( | ) |
CDependencyGraphNode::~CDependencyGraphNode | ( | ) |
void CDependencyGraphNode::addDependent | ( | const size_t & | node_num | ) |
Add a dependent to the given node, represented by its node number. This then represents an edge in the graph.
const | size_t $ node_num The dependency, the node to which the edge connects. |
Definition at line 36 of file CDependencyGraph.cpp.
References mDependents.
const std::set< size_t > & CDependencyGraphNode::getDependents | ( | ) | const |
Return a vector of the dependents.
Definition at line 46 of file CDependencyGraph.cpp.
References mDependents.
|
friend |
|
private |
A vector containing the edges for this node. An edge is specified by the remote node to which it connects.
Definition at line 67 of file CDependencyGraph.h.
Referenced by addDependent(), getDependents(), and operator<<().