COPASI API  4.16.103
Functions
CSimSummaryInfo.cpp File Reference
#include "CSimSummaryInfo.h"
Include dependency graph for CSimSummaryInfo.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CSimSummaryInfo &inf)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CSimSummaryInfo inf 
)

Definition at line 68 of file CSimSummaryInfo.cpp.

References CSimSummaryInfo::maxMap, CSimSummaryInfo::minMap, CSimSummaryInfo::mMaxOverallConcentration, CSimSummaryInfo::mNumberOfReactants, CSimSummaryInfo::mNumberOfSteps, and CSimSummaryInfo::mTotalTime.

69 {
70  os << "number of steps: " << inf.mNumberOfSteps << std::endl;
71  os << "number of reactants: " << inf.mNumberOfReactants << std::endl;
72  os << "total time: " << inf.mTotalTime << std::endl;
73  os << "maximum overall concentration: " << inf.mMaxOverallConcentration << std::endl;
74  os << "range of values for species: " << std::endl;
75 
76  std::map<std::string, C_FLOAT64>::const_iterator iter = inf.maxMap.begin();
77  std::map<std::string, C_FLOAT64>::const_iterator iter2 = inf.minMap.begin();
78 
79  while ((iter != inf.maxMap.end()) && (iter2 != inf.minMap.end()))
80  {
81  os << " node: " << iter->first << " : [" << iter2->second;
82  os << " - " << iter->second << "]" << std::endl;
83  iter2++;
84  iter++;
85  }
86 
87  return os;
88 }
std::map< std::string, C_FLOAT64 > maxMap
C_FLOAT64 mTotalTime
size_t mNumberOfReactants
std::map< std::string, C_FLOAT64 > minMap
C_FLOAT64 mMaxOverallConcentration