COPASI API
4.40.278
|
#include <CDataHandler.h>
Public Member Functions | |
void | addAfterName (const CRegisteredCommonName &name) |
void | addBeforeName (const CRegisteredCommonName &name) |
void | addDuringName (const CRegisteredCommonName &name) |
bool | addName (const CRegisteredCommonName &name, const Activity &activity) |
CDataHandler (bool separate=false) | |
CDataHandler (const CDataHandler &src) | |
void | cleanup () |
void | clearNames (const Activity &activity) |
virtual bool | compile (CObjectInterface::ContainerList listOfContainer) |
virtual void | finish () |
const std::vector< C_FLOAT64 > & | getAfterData () const |
const std::vector< C_FLOAT64 > & | getBeforeData () const |
const std::vector< std::vector< C_FLOAT64 > > & | getDuringData () const |
std::vector< CRegisteredCommonName > * | getNames (const Activity &activity) |
bool | getSeparate () const |
virtual void | output (const Activity &activity) |
virtual void | separate (const Activity &) |
void | setSeparate (bool separate) |
~CDataHandler () | |
Public Member Functions inherited from COutputHandler | |
virtual void | addInterface (COutputInterface *pInterface) |
COutputHandler () | |
COutputHandler (const COutputHandler &src) | |
std::set< COutputInterface * > | getInterfaces () const |
bool | isMaster () const |
virtual void | removeInterface (COutputInterface *pInterface) |
void | setMaster (COutputHandler *pMaster) |
virtual | ~COutputHandler () |
Public Member Functions inherited from COutputInterface | |
virtual void | close () |
COutputInterface () | |
COutputInterface (const COutputInterface &src) | |
virtual const CObjectInterface::ObjectSet & | getObjects () const |
virtual | ~COutputInterface () |
Protected Attributes | |
std::vector< C_FLOAT64 > | mAfterData |
std::vector< CObjectInterface * > | mAfterObjectList |
std::vector< C_FLOAT64 > | mBeforeData |
std::vector< CObjectInterface * > | mBeforeObjectList |
std::vector< CRegisteredCommonName > | mCNsAfter |
std::vector< CRegisteredCommonName > | mCNsBefore |
std::vector< CRegisteredCommonName > | mCNsDuring |
std::vector< std::vector< C_FLOAT64 > > | mDuringData |
std::vector< CObjectInterface * > | mDuringObjectList |
bool | mSeparate |
Protected Attributes inherited from COutputHandler | |
std::set< COutputInterface * > | mInterfaces |
const CMathContainer * | mpContainer |
COutputHandler * | mpMaster |
CCore::CUpdateSequence | mUpdateSequence |
Protected Attributes inherited from COutputInterface | |
CObjectInterface::ObjectSet | mObjects |
Private Member Functions | |
bool | generateObjectsFromName (const CObjectInterface::ContainerList &listOfContainer, std::vector< CObjectInterface * > &objectList, const std::vector< CRegisteredCommonName > *nameVector) |
void | storeDataAfter () |
void | storeDataBefore () |
void | storeDataDuring () |
Additional Inherited Members | |
Public Types inherited from COutputInterface | |
enum | Activity { BEFORE = 0x01 , DURING = 0x02 , AFTER = 0x04 , MONITORING = 0x08 } |
Protected Member Functions inherited from COutputHandler | |
void | applyUpdateSequence () |
bool | compileUpdateSequence (const CObjectInterface::ContainerList &listOfContainer) |
CDataHandler implements an output handler, that captures float for later.
CDataHandler::CDataHandler | ( | bool | separate = false | ) |
Constructor
separate | boolean indicate whether NaN / empty vectors are added on calls to separate. |
CDataHandler::CDataHandler | ( | const CDataHandler & | src | ) |
Copy constructor.
const | CDataHandler & src |
CDataHandler::~CDataHandler | ( | ) |
Destructor.
References cleanup().
void CDataHandler::addAfterName | ( | const CRegisteredCommonName & | name | ) |
void CDataHandler::addBeforeName | ( | const CRegisteredCommonName & | name | ) |
Adds the registered name to the list of names to be collected on Activity::BEFORE.
name | a registered name to a float value reference. |
References mCNsBefore.
Referenced by addName().
void CDataHandler::addDuringName | ( | const CRegisteredCommonName & | name | ) |
Adds the registered name to the list of names to be collected on Activity::DURING.
name | a registered name to a float value reference. |
References mCNsDuring.
Referenced by addName().
bool CDataHandler::addName | ( | const CRegisteredCommonName & | name, |
const Activity & | activity | ||
) |
Adds the registered name to the list of names with the specified activity.
name | the registered name to a float value reference |
activity | the activity to collect |
References addAfterName(), addBeforeName(), addDuringName(), COutputInterface::AFTER, COutputInterface::BEFORE, and COutputInterface::DURING.
void CDataHandler::cleanup | ( | ) |
cleanup
References COutputInterface::close(), finish(), mAfterObjectList, mBeforeObjectList, and mDuringObjectList.
Referenced by ~CDataHandler().
void CDataHandler::clearNames | ( | const Activity & | activity | ) |
empties the list of names for the specified activity
activity | the activity for which to clear the list of names |
References COutputInterface::AFTER, COutputInterface::BEFORE, COutputInterface::DURING, mCNsAfter, mCNsBefore, and mCNsDuring.
|
virtual |
compile the object list from name vector
CObjectInterface::ContainerList | listOfContainer |
Reimplemented from COutputHandler.
References generateObjectsFromName(), mAfterObjectList, mBeforeObjectList, mCNsAfter, mCNsBefore, mCNsDuring, mDuringObjectList, and COutputInterface::mObjects.
|
virtual |
Finish the output
Reimplemented from COutputHandler.
References storeDataAfter().
Referenced by cleanup().
|
private |
transfer every individual object list from name vector
References C_INT32, CObjectInterface::GetObjectFromCN(), CDataObject::hasFlag(), MCCopasiTask, COutputInterface::mObjects, and CCopasiMessage::WARNING.
Referenced by compile().
const std::vector< C_FLOAT64 > & CDataHandler::getAfterData | ( | ) | const |
References mAfterData.
const std::vector< C_FLOAT64 > & CDataHandler::getBeforeData | ( | ) | const |
References mBeforeData.
const std::vector< std::vector< C_FLOAT64 > > & CDataHandler::getDuringData | ( | ) | const |
References mDuringData.
std::vector< CRegisteredCommonName > * CDataHandler::getNames | ( | const Activity & | activity | ) |
Returns the list of names registered for the given activity
activity | the activity for which to return the names |
References COutputInterface::AFTER, COutputInterface::BEFORE, COutputInterface::DURING, mCNsAfter, mCNsBefore, and mCNsDuring.
bool CDataHandler::getSeparate | ( | ) | const |
References mSeparate.
|
virtual |
Perform an output event for the current activity
const | Activity & activity |
Reimplemented from COutputHandler.
References COutputInterface::AFTER, COutputInterface::BEFORE, COutputInterface::DURING, storeDataAfter(), storeDataBefore(), and storeDataDuring().
|
virtual |
Introduce an additional separator into the output
const | Activity & activity |
Reimplemented from COutputHandler.
References COutputInterface::AFTER, COutputInterface::BEFORE, COutputInterface::DURING, mAfterData, mBeforeData, mDuringData, and mSeparate.
Referenced by setSeparate().
void CDataHandler::setSeparate | ( | bool | separate | ) |
Sets what will happen on a call to separate
separate | the value to set, true will add NaN values for separate(BEFORE) / separate(AFTER) and an empty vector on separate(DURING). |
References mSeparate, and separate().
|
private |
References getValue(), mAfterData, and mAfterObjectList.
|
private |
References getValue(), mBeforeData, and mBeforeObjectList.
Referenced by output().
|
private |
References getValue(), mDuringData, and mDuringObjectList.
Referenced by output().
|
protected |
Referenced by getAfterData(), separate(), and storeDataAfter().
|
protected |
Referenced by cleanup(), compile(), and storeDataAfter().
|
protected |
Referenced by getBeforeData(), separate(), and storeDataBefore().
|
protected |
Referenced by cleanup(), compile(), and storeDataBefore().
|
protected |
Referenced by addAfterName(), clearNames(), compile(), and getNames().
|
protected |
Referenced by addBeforeName(), clearNames(), compile(), and getNames().
|
protected |
Referenced by addDuringName(), clearNames(), compile(), and getNames().
|
protected |
Referenced by getDuringData(), separate(), and storeDataDuring().
|
protected |
Referenced by cleanup(), compile(), and storeDataDuring().
|
protected |
Referenced by getSeparate(), separate(), and setSeparate().