COPASI API  4.16.103
Classes | Functions
CMathObject.h File Reference
#include <set>
#include <map>
#include "copasi/report/CCopasiObject.h"
#include "copasi/math/CMathEnum.h"
Include dependency graph for CMathObject.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMathObject
 

Functions

std::ostream & operator<< (std::ostream &os, const CMathObject &o)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CMathObject o 
)

Definition at line 1229 of file CMathObject.cpp.

References CMath::Analysis, CMath::Assignment, CEvaluationNode::buildInfix(), CMath::Compartment, CMath::Conversion, CMath::Dependent, CMath::DependentMass, CMath::Discontinuous, CMath::EntityTypeUndefined, CMath::Event, CMath::EventAssignment, CMath::EventDelay, CMath::EventPriority, CMath::EventRoot, CMath::EventRootState, CMath::EventTarget, CMath::EventTrigger, CMath::Fixed, CMath::Flux, CMathObject::getCN(), CCopasiObject::getCN(), CEvaluationTree::getRoot(), CMath::GlobalQuantity, CMath::Independent, CMath::LocalReactionParameter, CMathObject::mEntityType, CMathObject::mIsInitialValue, CMathObject::mIsIntensiveProperty, CMath::Model, CMath::Moiety, CMathObject::mpDataObject, CMathObject::mpExpression, CMathObject::mpIntensiveProperty, CMathObject::mpValue, CMathObject::mSimulationType, CMathObject::mValueType, CMath::ODE, CMath::ParticleFlux, CMath::Propensity, CMath::Rate, CMath::Reaction, CMath::SimulationTypeUndefined, CMath::Species, CMath::StoichiometricCoefficients, CMath::Time, CMath::TotalMass, CMath::Value, and CMath::ValueTypeUndefined.

1230 {
1231  if (o.mpDataObject != NULL)
1232  {
1233  os << o.mpDataObject->getCN() << std::endl;
1234  }
1235  else
1236  {
1237  os << "Data Object = NULL" << std::endl;
1238  }
1239 
1240  os << " Pointer: " << &o << std::endl;
1241  os << " Value Type: ";
1242 
1243  switch (o.mValueType)
1244  {
1246  os << "ValueTypeUndefined" << std::endl;
1247  break;
1248 
1249  case CMath::Value:
1250  os << "Value" << std::endl;
1251  break;
1252 
1253  case CMath::Rate:
1254  os << "ValueRate" << std::endl;
1255  break;
1256 
1257  case CMath::ParticleFlux:
1258  os << "ParticleFlux" << std::endl;
1259  break;
1260 
1261  case CMath::Flux:
1262  os << "Flux" << std::endl;
1263  break;
1264 
1265  case CMath::Propensity:
1266  os << "Propensity" << std::endl;
1267  break;
1268 
1269  case CMath::TotalMass:
1270  os << "TotalMass" << std::endl;
1271  break;
1272 
1273  case CMath::DependentMass:
1274  os << "DependentMass" << std::endl;
1275  break;
1276 
1277  case CMath::Discontinuous:
1278  os << "Discontinuous" << std::endl;
1279  break;
1280 
1281  case CMath::EventDelay:
1282  os << "EventDelay" << std::endl;
1283  break;
1284 
1285  case CMath::EventPriority:
1286  os << "EventPriority" << std::endl;
1287  break;
1288 
1290  os << "EventAssignment" << std::endl;
1291  break;
1292 
1293  case CMath::EventTrigger:
1294  os << "EventTrigger" << std::endl;
1295  break;
1296 
1297  case CMath::EventRoot:
1298  os << "EventRoot" << std::endl;
1299  break;
1300 
1301  case CMath::EventRootState:
1302  os << "EventRootState" << std::endl;
1303  break;
1304  }
1305 
1306  os << " Simulation Type: ";
1307 
1308  switch (o.mSimulationType)
1309  {
1311  os << "SimulationTypeUndefined" << std::endl;
1312  break;
1313 
1314  case CMath::Fixed:
1315  os << "Fixed" << std::endl;
1316  break;
1317 
1318  case CMath::EventTarget:
1319  os << "EventTarget" << std::endl;
1320  break;
1321 
1322  case CMath::Time:
1323  os << "Time" << std::endl;
1324  break;
1325 
1326  case CMath::ODE:
1327  os << "ODE" << std::endl;
1328  break;
1329 
1330  case CMath::Independent:
1331  os << "Independent" << std::endl;
1332  break;
1333 
1334  case CMath::Dependent:
1335  os << "Dependent" << std::endl;
1336  break;
1337 
1338  case CMath::Assignment:
1339  os << "Assignment" << std::endl;
1340  break;
1341 
1342  case CMath::Conversion:
1343  os << "Conversion" << std::endl;
1344  break;
1345  };
1346 
1347  os << " Entity Type: ";
1348 
1349  switch (o.mEntityType)
1350  {
1352  os << "EntityTypeUndefined" << std::endl;
1353  break;
1354 
1355  case CMath::Model:
1356  os << "Model" << std::endl;
1357  break;
1358 
1359  case CMath::Analysis:
1360  os << "Analysis" << std::endl;
1361  break;
1362 
1363  case CMath::GlobalQuantity:
1364  os << "GlobalQuantity" << std::endl;
1365  break;
1366 
1367  case CMath::Compartment:
1368  os << "Compartment" << std::endl;
1369  break;
1370 
1371  case CMath::Species:
1372  os << "Species" << std::endl;
1373  break;
1374 
1376  os << "LocalReactionParameter" << std::endl;
1377  break;
1378 
1380  os << "StoichiometricCoefficients" << std::endl;
1381  break;
1382 
1383  case CMath::Reaction:
1384  os << "Reaction" << std::endl;
1385  break;
1386 
1387  case CMath::Moiety:
1388  os << "Moiety" << std::endl;
1389  break;
1390 
1391  case CMath::Event:
1392  os << "Event" << std::endl;
1393  break;
1394  };
1395 
1396  os << " Is Intensive Property: " << (o.mIsIntensiveProperty ? "true" : "false") << std::endl;
1397 
1398  os << " Is Initial Value: " << (o.mIsInitialValue ? "true" : "false") << std::endl;
1399 
1400  os << " Intensive Property: ";
1401 
1402  if (o.mpIntensiveProperty != NULL)
1403  {
1404  os << o.mpIntensiveProperty->getCN() << std::endl;
1405  }
1406  else
1407  {
1408  os << "NULL" << std::endl;
1409  }
1410 
1411  os << " Value: " << *o.mpValue << " (" << o.mpValue << ")" << std::endl;
1412 
1413  os << " Expression: ";
1414 
1415  if (o.mpExpression != NULL)
1416  {
1417  os << o.mpExpression->getRoot()->buildInfix() << std::endl;
1418  }
1419  else
1420  {
1421  os << "NULL" << std::endl;
1422  }
1423 
1424  // CObjectInterface::ObjectSet mPrerequisites;
1425 
1426  return os;
1427 }
virtual CCopasiObjectName getCN() const
const CMathObject * mpIntensiveProperty
Definition: CMathObject.h:362
std::string buildInfix() const
virtual CCopasiObjectName getCN() const
bool mIsIntensiveProperty
Definition: CMathObject.h:351
C_FLOAT64 * mpValue
Definition: CMathObject.h:326
CMath::EntityType mEntityType
Definition: CMathObject.h:341
CMath::ValueType mValueType
Definition: CMathObject.h:336
bool mIsInitialValue
Definition: CMathObject.h:357
const CCopasiObject * mpDataObject
Definition: CMathObject.h:367
CMathExpression * mpExpression
Definition: CMathObject.h:321
CEvaluationNode * getRoot()
CMath::SimulationType mSimulationType
Definition: CMathObject.h:346