COPASI API  4.16.103
Functions
CDependencyGraph.cpp File Reference
#include "copasi.h"
#include "CDependencyGraph.h"
#include <algorithm>
Include dependency graph for CDependencyGraph.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

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

insert operator

Definition at line 89 of file CDependencyGraph.cpp.

References CDependencyGraphNode::mDependents.

91 {
92  std::set <size_t>::const_iterator it;
93 
94  for (it = d.mDependents.begin(); it != d.mDependents.end(); it++)
95  os << *it << " ";
96 
97  os << std::endl;
98 
99  return os;
100 }
std::set< size_t > mDependents
std::ostream& operator<< ( std::ostream &  os,
const CDependencyGraph d 
)

insert operator

Definition at line 102 of file CDependencyGraph.cpp.

References CDependencyGraph::mNodes.

104 {
105  unsigned int i;
106 
107  for (i = 0; i < d.mNodes.size(); i++)
108  os << d.mNodes[i];
109 
110  os << std::endl;
111 
112  return os;
113 }
std::vector< CDependencyGraphNode > mNodes