copasi API  0.1
Public Member Functions | Friends
CDependencyGraph Class Reference

#include <CDependencyGraph.h>

List of all members.

Public Member Functions

 CDependencyGraph ()
 ~CDependencyGraph ()
void resize (const unsigned C_INT32 &n)
void addDependent (const unsigned C_INT32 &node, const unsigned C_INT32 &dependent)
const std::set< unsigned
C_INT32 > & 
getDependents (const unsigned C_INT32 &node) const
void clear ()

Friends

std::ostream & operator<< (std::ostream &os, const CDependencyGraph &d)

Detailed Description

CDependencyGraph describes a dependency graph.


Constructor & Destructor Documentation

CDependencyGraph::CDependencyGraph ( )

Constructor

CDependencyGraph::~CDependencyGraph ( )

Desctructor


Member Function Documentation

void CDependencyGraph::addDependent ( const unsigned C_INT32 &  node,
const unsigned C_INT32 &  dependent 
)

Add a dependent for a particular node.

Parameters:
nodeThe number of the node.
dependentThe number of the dependent node.
void CDependencyGraph::clear ( )
const std::set< unsigned C_INT32 > & CDependencyGraph::getDependents ( const unsigned C_INT32 &  node) const

Retrieve a vector of dependents for a given node.

Parameters:
nodeThe number of the node to access.
Returns:
A vector of node numbers.
void CDependencyGraph::resize ( const unsigned C_INT32 &  n)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CDependencyGraph d 
) [friend]

insert operator


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines