COPASI API  4.16.103
Functions
CSensProblem.cpp File Reference
#include <string>
#include <sstream>
#include "copasi.h"
#include "CSensProblem.h"
#include "CopasiDataModel/CCopasiDataModel.h"
Include dependency graph for CSensProblem.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

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

Output stream operator. Prints description of the problem

Parameters
ostream& os
constProblem & A
Returns
ostream & os

Definition at line 612 of file CSensProblem.cpp.

References CSensProblem::getNumberOfVariables(), CCopasiObject::getObjectDataModel(), CSensProblem::getSubTaskType(), CSensProblem::getTargetFunctions(), CSensProblem::getVariables(), CSensItem::print(), and CSensProblem::SubTaskName.

613 {
614  os << "Function(s) to be derived:" << std::endl;
615  const CCopasiDataModel* pDataModel = o.getObjectDataModel();
616  assert(pDataModel != NULL);
617  os << o.getTargetFunctions().print(pDataModel) << std::endl << std::endl;
618 
619  os << "Calculation to perform: "
620  << CSensProblem::SubTaskName[o.getSubTaskType()] << std::endl << std::endl;
621 
622  size_t i, imax = o.getNumberOfVariables();
623 
624  for (i = 0; i < imax; ++i)
625  {
626  os << "Variable(s) for " << i + 1 << ". derivation:" << std::endl;
627  os << o.getVariables(i).print(pDataModel) << std::endl << std::endl;
628  }
629 
630  return os;
631 }
CCopasiDataModel * getObjectDataModel()
size_t getNumberOfVariables() const
CSensItem getVariables(size_t index) const
static const std::string SubTaskName[]
Definition: CSensProblem.h:82
CSensProblem::SubTaskType getSubTaskType() const
CSensItem getTargetFunctions() const
std::string print(const CCopasiDataModel *pDataModel) const