COPASI API
4.16.103
|
#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.
Definition at line 74 of file CDependencyGraph.h.
CDependencyGraph::CDependencyGraph | ( | ) |
CDependencyGraph::~CDependencyGraph | ( | ) |
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. |
Definition at line 68 of file CDependencyGraph.cpp.
References addNode(), and mNodes.
Referenced by CHybridMethodODE45::setupDependencyGraph(), CHybridMethod::setupDependencyGraph(), CHybridMethodLSODA::setupDependencyGraph(), and CStochMethod::setupDependencyGraphAndBalances().
|
private |
Add a node with a given number.
node | The number of the node to add. |
Definition at line 55 of file CDependencyGraph.cpp.
References mNodes.
Referenced by addDependent().
void CDependencyGraph::clear | ( | ) |
Definition at line 86 of file CDependencyGraph.cpp.
References mNodes.
Referenced by CHybridMethodODE45::setupDependencyGraph(), CHybridMethod::setupDependencyGraph(), CHybridMethodLSODA::setupDependencyGraph(), and CStochMethod::setupDependencyGraphAndBalances().
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. |
Definition at line 74 of file CDependencyGraph.cpp.
References mNodes.
Referenced by CHybridMethod::fireReaction(), CHybridMethodLSODA::fireReaction(), CHybridMethod::integrateDeterministicPart(), CHybridMethodLSODA::integrateDeterministicPart(), CHybridMethod::integrateDeterministicPartEuler(), CStochNextReactionMethod::updatePriorityQueue(), and CStochMethod::updateSystemState().
void CDependencyGraph::resize | ( | const size_t & | n | ) |
Definition at line 63 of file CDependencyGraph.cpp.
References mNodes.
Referenced by CStochMethod::setupDependencyGraphAndBalances().
|
friend |
insert operator
Definition at line 102 of file CDependencyGraph.cpp.
|
private |
A vector containing the nodes in the graph
Definition at line 116 of file CDependencyGraph.h.
Referenced by addDependent(), addNode(), clear(), getDependents(), operator<<(), and resize().