COPASI API  4.16.103
Public Member Functions | Private Attributes | Friends | List of all members
CSimSummaryInfo Class Reference

#include <CSimSummaryInfo.h>

Collaboration diagram for CSimSummaryInfo:
Collaboration graph
[legend]

Public Member Functions

 CSimSummaryInfo ()
 
 CSimSummaryInfo (size_t steps, size_t numReactants, C_FLOAT32 time)
 
C_FLOAT64 getMaxForSpecies (std::string ndKey)
 
C_FLOAT64 getMaxOverallConcentration ()
 
C_FLOAT64 getMinForSpecies (std::string ndKey)
 
C_FLOAT64 getMinOverallConcentration ()
 
size_t getNumberOfReactants ()
 
size_t getNumberOfSteps ()
 
C_FLOAT64 getTotalTime ()
 
void setMaxOverallConcentration (C_FLOAT64 max)
 
void storeMax (std::string ndKey, C_FLOAT64 maxR)
 
void storeMin (std::string ndKey, C_FLOAT64 minR)
 

Private Attributes

std::map< std::string, C_FLOAT64maxMap
 
std::map< std::string, C_FLOAT64minMap
 
C_FLOAT64 mMaxOverallConcentration
 
size_t mNumberOfReactants
 
size_t mNumberOfSteps
 
C_FLOAT64 mTotalTime
 

Friends

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

Detailed Description

Definition at line 26 of file CSimSummaryInfo.h.

Constructor & Destructor Documentation

CSimSummaryInfo::CSimSummaryInfo ( )

Definition at line 20 of file CSimSummaryInfo.cpp.

References mMaxOverallConcentration, mNumberOfReactants, mNumberOfSteps, and mTotalTime.

21 {
22  mNumberOfSteps = 0;
24  mTotalTime = 0.0;
26 }
C_FLOAT64 mTotalTime
size_t mNumberOfReactants
C_FLOAT64 mMaxOverallConcentration
CSimSummaryInfo::CSimSummaryInfo ( size_t  steps,
size_t  numReactants,
C_FLOAT32  time 
)

Definition at line 28 of file CSimSummaryInfo.cpp.

References mMaxOverallConcentration, mNumberOfReactants, mNumberOfSteps, and mTotalTime.

29 {
30  mNumberOfSteps = steps;
31  mNumberOfReactants = numReactants;
32  mTotalTime = time;
34 }
C_FLOAT64 mTotalTime
size_t mNumberOfReactants
C_FLOAT64 mMaxOverallConcentration

Member Function Documentation

C_FLOAT64 CSimSummaryInfo::getMaxForSpecies ( std::string  ndKey)

Definition at line 48 of file CSimSummaryInfo.cpp.

References maxMap.

Referenced by CQGLNetworkPainter::createDataSets(), CQGLNetworkPainter::rescaleDataSets(), CQGLNetworkPainter::rescaleDataSetsWithNewMinMax(), CQGLNetworkPainter::rescaleNode(), and CQGLNetworkPainter::showStep().

49 {
50  std::map<std::string, C_FLOAT64>::const_iterator iter = maxMap.find(ndKey);
51 
52  if (iter != maxMap.end())
53  return (*iter).second;
54  else
55  return 0.0;
56 }
std::map< std::string, C_FLOAT64 > maxMap
C_FLOAT64 CSimSummaryInfo::getMaxOverallConcentration ( )
inline
C_FLOAT64 CSimSummaryInfo::getMinForSpecies ( std::string  ndKey)

Definition at line 58 of file CSimSummaryInfo.cpp.

References minMap.

Referenced by CQGLNetworkPainter::createDataSets(), CQGLNetworkPainter::rescaleDataSets(), CQGLNetworkPainter::rescaleDataSetsWithNewMinMax(), CQGLNetworkPainter::rescaleNode(), and CQGLNetworkPainter::showStep().

59 {
60  std::map<std::string, C_FLOAT64>::const_iterator iter = minMap.find(ndKey);
61 
62  if (iter != minMap.end())
63  return (*iter).second;
64  else
65  return 0.0;
66 }
std::map< std::string, C_FLOAT64 > minMap
C_FLOAT64 CSimSummaryInfo::getMinOverallConcentration ( )
inline
size_t CSimSummaryInfo::getNumberOfReactants ( )
inline

Definition at line 43 of file CSimSummaryInfo.h.

References mNumberOfReactants.

43 {return this->mNumberOfReactants;}
size_t mNumberOfReactants
size_t CSimSummaryInfo::getNumberOfSteps ( )
inline

Definition at line 42 of file CSimSummaryInfo.h.

References mNumberOfSteps.

42 {return this->mNumberOfSteps;}
C_FLOAT64 CSimSummaryInfo::getTotalTime ( )
inline

Definition at line 41 of file CSimSummaryInfo.h.

References mTotalTime.

41 {return this->mTotalTime;}
C_FLOAT64 mTotalTime
void CSimSummaryInfo::setMaxOverallConcentration ( C_FLOAT64  max)
inline

Definition at line 47 of file CSimSummaryInfo.h.

References max, and mMaxOverallConcentration.

Referenced by CQGLNetworkPainter::createDataSets().

C_FLOAT64 mMaxOverallConcentration
#define max(a, b)
Definition: f2c.h:176
void CSimSummaryInfo::storeMax ( std::string  ndKey,
C_FLOAT64  maxR 
)

Definition at line 36 of file CSimSummaryInfo.cpp.

References maxMap.

Referenced by CQGLNetworkPainter::createDataSets().

37 {
38  maxMap.insert(std::pair<std::string, C_FLOAT64>
39  (ndKey, maxR));
40 }
std::map< std::string, C_FLOAT64 > maxMap
void CSimSummaryInfo::storeMin ( std::string  ndKey,
C_FLOAT64  minR 
)

Definition at line 42 of file CSimSummaryInfo.cpp.

References minMap.

Referenced by CQGLNetworkPainter::createDataSets().

43 {
44  minMap.insert(std::pair<std::string, C_FLOAT64>
45  (ndKey, minR));
46 }
std::map< std::string, C_FLOAT64 > minMap

Friends And Related Function Documentation

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

Definition at line 68 of file CSimSummaryInfo.cpp.

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

Member Data Documentation

std::map<std::string, C_FLOAT64> CSimSummaryInfo::maxMap
private

Definition at line 35 of file CSimSummaryInfo.h.

Referenced by getMaxForSpecies(), operator<<(), and storeMax().

std::map<std::string, C_FLOAT64> CSimSummaryInfo::minMap
private

Definition at line 34 of file CSimSummaryInfo.h.

Referenced by getMinForSpecies(), operator<<(), and storeMin().

C_FLOAT64 CSimSummaryInfo::mMaxOverallConcentration
private
size_t CSimSummaryInfo::mNumberOfReactants
private

Definition at line 30 of file CSimSummaryInfo.h.

Referenced by CSimSummaryInfo(), getNumberOfReactants(), and operator<<().

size_t CSimSummaryInfo::mNumberOfSteps
private

Definition at line 29 of file CSimSummaryInfo.h.

Referenced by CSimSummaryInfo(), getNumberOfSteps(), and operator<<().

C_FLOAT64 CSimSummaryInfo::mTotalTime
private

Definition at line 31 of file CSimSummaryInfo.h.

Referenced by CSimSummaryInfo(), getTotalTime(), and operator<<().


The documentation for this class was generated from the following files: