COPASI API  4.16.103
Functions
CReaction.cpp File Reference
#include "copasi.h"
#include <algorithm>
#include <stdio.h>
#include "CopasiDataModel/CCopasiDataModel.h"
#include "CReaction.h"
#include "CCompartment.h"
#include "CModel.h"
#include "utilities/CReadConfig.h"
#include "utilities/CCopasiMessage.h"
#include "utilities/CCopasiException.h"
#include "utilities/CNodeIterator.h"
#include "utilities/utility.h"
#include "function/CFunctionDB.h"
#include "report/CCopasiObjectReference.h"
#include "report/CKeyFactory.h"
#include "CMetabNameInterface.h"
#include "CChemEqInterface.h"
#include "CChemEqElement.h"
#include "function/CExpression.h"
#include "report/CCopasiRootContainer.h"
#include "sbml/Species.h"
#include "sbml/Parameter.h"
#include "sbml/Compartment.h"
#include "sbml/SBMLImporter.h"
Include dependency graph for CReaction.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

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

Friend declaration for ostream operator

Parameters
std::ostream& os
constCReaction & d
Returns
std::ostream & os

Definition at line 1029 of file CReaction.cpp.

References CCopasiObject::getObjectName(), CReaction::mChemEq, CReaction::mFlux, CReaction::mMetabKeyMap, CReaction::mParameters, CReaction::mpFunction, CReaction::mSBMLId, CReaction::mScalingFactor, and CReaction::mUnitScalingFactor.

1030 {
1031  os << "CReaction: " << d.getObjectName() << std::endl;
1032  os << " SBML id: " << d.mSBMLId << std::endl;
1033 
1034  os << " mChemEq " << std::endl;
1035  os << d.mChemEq;
1036 
1037  if (d.mpFunction)
1038  os << " *mpFunction " << d.mpFunction->getObjectName() << std::endl;
1039  else
1040  os << " mpFunction == 0 " << std::endl;
1041 
1042  //os << " mParameterDescription: " << std::endl << d.mParameterDescription;
1043  os << " mFlux: " << d.mFlux << std::endl;
1044 
1045  if (d.mScalingFactor)
1046  os << " *mScalingFactor " << *(d.mScalingFactor) << std::endl;
1047  else
1048  os << " mScalingFactor == NULL " << std::endl;
1049 
1050  if (d.mUnitScalingFactor)
1051  os << " *mUnitScalingFactor " << *(d.mUnitScalingFactor) << std::endl;
1052  else
1053  os << " mUnitScalingFactor == NULL " << std::endl;
1054 
1055  os << " parameter group:" << std::endl;
1056  os << d.mParameters;
1057 
1058  os << " key map:" << std::endl;
1059  size_t i, j;
1060 
1061  for (i = 0; i < d.mMetabKeyMap.size(); ++i)
1062  {
1063  os << i << ": ";
1064 
1065  for (j = 0; j < d.mMetabKeyMap[i].size(); ++j)
1066  os << d.mMetabKeyMap[i][j] << ", ";
1067 
1068  os << std::endl;
1069  }
1070 
1071  os << "----CReaction" << std::endl;
1072 
1073  return os;
1074 }
CCopasiParameterGroup mParameters
Definition: CReaction.h:610
CFunction * mpFunction
Definition: CReaction.h:563
const std::string & getObjectName() const
const C_FLOAT64 * mUnitScalingFactor
Definition: CReaction.h:593
CChemEq mChemEq
Definition: CReaction.h:558
const C_FLOAT64 * mScalingFactor
Definition: CReaction.h:588
C_FLOAT64 mFlux
Definition: CReaction.h:568
std::vector< std::vector< std::string > > mMetabKeyMap
Definition: CReaction.h:605
std::string mSBMLId
Definition: CReaction.h:617