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

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CDataEntity &de)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CDataEntity de 
)

Definition at line 81 of file CDataEntity.cpp.

References CDataEntity::mOrigValueMap, CDataEntity::mSpeciesValueMap, and CDataEntity::mTime.

82 {
83  os << "time: " << de.mTime << " size: " << std::endl;
84  std::map<std::string, C_FLOAT64>::const_iterator it1;
85  std::map<std::string, C_FLOAT64>::const_iterator it2;
86 
87  for (it1 = de.mSpeciesValueMap.begin() ; it1 != de.mSpeciesValueMap.end() ; it1++)
88  {
89  it2 = de.mOrigValueMap.find((*it1).first);
90 
91  if (it2 != de.mOrigValueMap.end())
92  os << (*it1).first << " : " << (*it1).second << " orig: " << (*it2).second << std::endl;
93  else
94  os << (*it1).first << " : " << (*it1).second << " orig: not found" << std::endl;
95  }
96 
97  //for (int i=0;i<gn.mConnectedCurveIndices.size();i++)
98  // os << gn.mConnectedCurveIndices[i] << std::endl;;
99 
100  return os;
101 }
std::map< std::string, C_FLOAT64 > mOrigValueMap
Definition: CDataEntity.h:36
std::map< std::string, C_FLOAT64 > mSpeciesValueMap
Definition: CDataEntity.h:35
C_FLOAT64 mTime
Definition: CDataEntity.h:34