COPASI API  4.16.103
Public Member Functions | Friends | List of all members
CCopasiTask::CResult Class Reference

#include <CCopasiTask.h>

Inheritance diagram for CCopasiTask::CResult:
Inheritance graph
Collaboration diagram for CCopasiTask::CResult:
Collaboration graph

Public Member Functions

 CResult (const CCopasiContainer *pParent=NULL)
 CResult (const CResult &src, const CCopasiContainer *pParent=NULL)
virtual void print (std::ostream *ostream) const
virtual ~CResult ()
- Public Member Functions inherited from CCopasiObject
void addDirectDependency (const CCopasiObject *pObject)
 CCopasiObject (const CCopasiObject &src, const CCopasiContainer *pParent=NULL)
void clearDirectDependencies ()
void clearRefresh ()
bool dependsOn (DataObjectSet candidates, const DataObjectSet &context=DataObjectSet()) const
void getAllDependencies (DataObjectSet &dependencies, const DataObjectSet &context) const
virtual CCopasiObjectName getCN () const
virtual const DataObjectSetgetDirectDependencies (const DataObjectSet &context=DataObjectSet()) const
virtual const std::string & getKey () const
virtual const CObjectInterfacegetObject (const CCopasiObjectName &cn) const
CCopasiContainergetObjectAncestor (const std::string &type) const
CCopasiDataModelgetObjectDataModel ()
const CCopasiDataModelgetObjectDataModel () const
virtual std::string getObjectDisplayName (bool regular=true, bool richtext=false) const
const std::string & getObjectName () const
CCopasiContainergetObjectParent () const
const std::string & getObjectType () const
virtual const
getPrerequisites () const
virtual RefreshgetRefresh () const
virtual std::string getUnits () const
UpdateMethodgetUpdateMethod () const
virtual const CCopasiObjectgetValueObject () const
virtual voidgetValuePointer () const
bool hasCircularDependencies (DataObjectSet &candidates, DataObjectSet &verified, const DataObjectSet &context) const
bool hasUpdateMethod () const
bool isArray () const
bool isContainer () const
bool isDataModel () const
bool isMatrix () const
bool isNameVector () const
bool isNonUniqueName () const
virtual bool isPrerequisiteForContext (const CObjectInterface *pObject, const CMath::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const
bool isReference () const
bool isRoot () const
bool isSeparator () const
bool isStaticString () const
bool isValueBool () const
bool isValueDbl () const
bool isValueInt () const
bool isValueInt64 () const
bool isValueString () const
bool isVector () const
virtual bool mustBeDeleted (const DataObjectSet &deletedObjects) const
void removeDirectDependency (const CCopasiObject *pObject)
void setDirectDependencies (const DataObjectSet &directDependencies)
bool setObjectName (const std::string &name)
virtual bool setObjectParent (const CCopasiContainer *pParent)
void setObjectValue (const C_FLOAT64 &value)
void setObjectValue (const C_INT32 &value)
void setObjectValue (const bool &value)
template<class CType >
void setRefresh (CType *pType, void(CType::*method)(void))
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const C_FLOAT64 &))
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const C_INT32 &))
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const bool &))
virtual ~CCopasiObject ()
- Public Member Functions inherited from CObjectInterface
 CObjectInterface ()
virtual ~CObjectInterface ()


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

Additional Inherited Members

- Public Types inherited from CCopasiObject
typedef std::set< const
CCopasiObject * > 
typedef std::vector< Refresh * > DataUpdateSequence
- Public Types inherited from CObjectInterface
typedef std::set< const
CObjectInterface * > 
typedef std::vector
< CObjectInterface * > 
- Static Public Member Functions inherited from CCopasiObject
static std::vector< Refresh * > buildUpdateSequence (const DataObjectSet &objects, const DataObjectSet &uptoDateObjects, const DataObjectSet &context=DataObjectSet())
static void setRenameHandler (CRenameHandler *rh)
- Protected Types inherited from CCopasiObject
enum  Flag {
  Container = 0x1, Vector = 0x2, Matrix = 0x4, NameVector = 0x8,
  Reference = 0x10, ValueBool = 0x20, ValueInt = 0x40, ValueInt64 = 0x80,
  ValueDbl = 0x100, NonUniqueName = 0x200, StaticString = 0x400, ValueString = 0x800,
  Separator = 0x1000, ModelEntity = 0x2000, Array = 0x4000, DataModel = 0x8000,
  Root = 0x10000, Gui = 0x20000
- Protected Member Functions inherited from CCopasiObject
 CCopasiObject ()
 CCopasiObject (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=0)
- Static Protected Attributes inherited from CCopasiObject
static CRenameHandlersmpRenameHandler = NULL

Detailed Description

Definition at line 153 of file CCopasiTask.h.

Constructor & Destructor Documentation

CCopasiTask::CResult::CResult ( const CCopasiContainer pParent = NULL)

Default constructor

Definition at line 437 of file CCopasiTask.cpp.

437  :
438  CCopasiObject("Result", pParent, "Object")
439 {}
CCopasiTask::CResult::CResult ( const CResult src,
const CCopasiContainer pParent = NULL 

Copy constructor

constCResult & src
constCCopasiContainer * pParent (default: NULL)

Definition at line 441 of file CCopasiTask.cpp.

442  :
443  CCopasiObject(src, pParent)
444 {}
CCopasiTask::CResult::~CResult ( )


Definition at line 446 of file CCopasiTask.cpp.

446 {}

Member Function Documentation

void CCopasiTask::CResult::print ( std::ostream *  ostream) const

This is the output method for any object. The default implementation provided with CCopasiObject uses the ostream operator<< of the object to print the object.To overide this default behaviour one needs to reimplement the virtual print function.

std::ostream* ostream

Reimplemented from CCopasiObject.

Definition at line 448 of file CCopasiTask.cpp.

449 {*ostream << *this;}

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CResult o 

Output stream operator

ostream& os
constCResult & A
ostream & os

Definition at line 451 of file CCopasiTask.cpp.

453 {
454  const CCopasiTask & Task = *static_cast<const CCopasiTask *>(o.getObjectParent());
456  os << Task.getObjectName() << " Result:" << std::endl << std::endl;
458  if (Task.getProblem())
459  {
460  Task.getProblem()->printResult(&os);
461  os << std::endl;
462  }
463  else
464  os << "No Problem Specified!" << std::endl;
466  return os;
467 }
CCopasiProblem * getProblem()
const std::string & getObjectName() const
virtual void printResult(std::ostream *ostream) const

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