|
COPASI API
4.40.278
|
#include <CDependencyGraph.h>
Public Member Functions | |
| void | addDependent (const size_t &node, const size_t &dependent) |
| CDependencyGraph () | |
| void | clear () |
| const std::set< size_t > & | getDependents (const size_t &node) const |
| void | resize (const size_t &n) |
| ~CDependencyGraph () | |
Private Member Functions | |
| void | addNode (const size_t &node) |
Private Attributes | |
| std::vector< CDependencyGraphNode > | mNodes |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const CDependencyGraph &d) |
CDependencyGraph describes a dependency graph.
| CDependencyGraph::CDependencyGraph | ( | ) |
Constructor
| CDependencyGraph::~CDependencyGraph | ( | ) |
Desctructor
| void CDependencyGraph::addDependent | ( | const size_t & | node, |
| const size_t & | dependent | ||
| ) |
Add a dependent for a particular node.
| node | The number of the node. |
| dependent | The number of the dependent node. |
References mNodes.
Referenced by CHybridMethod::setupDependencyGraph(), and CStochMethod::setupDependencyGraph().
|
private |
| void CDependencyGraph::clear | ( | ) |
References mNodes.
Referenced by CHybridMethod::setupDependencyGraph(), and CStochMethod::setupDependencyGraph().
| const std::set< size_t > & CDependencyGraph::getDependents | ( | const size_t & | node | ) | const |
Retrieve a vector of dependents for a given node.
| node | The number of the node to access. |
References mNodes.
Referenced by CStochNextReactionMethod::updatePriorityQueue().
| void CDependencyGraph::resize | ( | const size_t & | n | ) |
References mNodes.
Referenced by CHybridMethod::setupDependencyGraph(), and CStochMethod::setupDependencyGraph().
|
friend |
insert operator
|
private |
A vector containing the nodes in the graph
Referenced by addDependent(), addNode(), clear(), getDependents(), and resize().