COPASI API
4.16.103
|
#include <CMathEvent.h>
Classes | |
class | CAssignment |
class | CTrigger |
Public Member Functions | |
void | addAssignment (CMathObject *pTarget, CMathObject *pExpression) |
CMathEventN () | |
bool | compile (CEvent *pDataEvent, CMathContainer &container) |
bool | compile (CMathContainer &container) |
void | copy (const CMathEventN &src, CMathContainer &container, const size_t &valueOffset, const size_t &objectOffset) |
const CVector< CAssignment > & | getAssignments () const |
const CTrigger & | getTrigger () const |
void | initialize (CMath::sPointers &pointers) |
void | setDelayExpression (const std::string &infix, CMathContainer &container) |
void | setPriorityExpression (const std::string &infix, CMathContainer &container) |
void | setTriggerExpression (const std::string &infix, CMathContainer &container) |
~CMathEventN () | |
Static Public Member Functions | |
static void | allocate (CMathEventN *pEvent, const CEvent *pDataEvent, const CMathContainer &container) |
Private Attributes | |
CVector< CAssignment > | mAssignments |
bool | mDelayAssignment |
bool | mFireAtInitialTime |
CMathObject * | mpDelay |
bool | mPersistentTrigger |
CMathObject * | mpPriority |
CTrigger | mTrigger |
CEvent::Type | mType |
Definition at line 20 of file CMathEvent.h.
CMathEventN::CMathEventN | ( | ) |
CMathEventN::~CMathEventN | ( | ) |
void CMathEventN::addAssignment | ( | CMathObject * | pTarget, |
CMathObject * | pExpression | ||
) |
Add an assignment
CMathObject | * pTarget |
CMathObject | * pExpression |
Definition at line 991 of file CMathEvent.cpp.
References mAssignments, CMathEventN::CAssignment::setExpression(), and CMathEventN::CAssignment::setTarget().
Referenced by CMathContainer::replaceDiscontinuousNode().
|
static |
Definition at line 838 of file CMathEvent.cpp.
References CMathEventN::CTrigger::allocate(), CEvent::getAssignments(), mAssignments, mTrigger, and CCopasiVector< T >::size().
Referenced by CMathContainer::allocate().
bool CMathEventN::compile | ( | CEvent * | pDataEvent, |
CMathContainer & | container | ||
) |
Definition at line 916 of file CMathEvent.cpp.
References CCopasiVector< T >::begin(), CMathEventN::CAssignment::compile(), CExpression::compile(), CMathEventN::CTrigger::compile(), CEvent::getAssignments(), CEvent::getDelayAssignment(), CEvent::getDelayExpression(), CEvent::getFireAtInitialTime(), CEvent::getPersistentTrigger(), CEvent::getPriorityExpression(), mAssignments, mDelayAssignment, mFireAtInitialTime, mpDelay, mPersistentTrigger, mpPriority, mTrigger, CMathObject::setExpression(), and CExpression::setInfix().
Referenced by CMathEventN::CTrigger::compile(), CMathContainer::compileEvents(), CMathEventN::CTrigger::compileFUNCTION(), and CMathEventN::CTrigger::setExpression().
bool CMathEventN::compile | ( | CMathContainer & | container | ) |
Definition at line 956 of file CMathEvent.cpp.
References CMathEventN::CTrigger::compile(), and mTrigger.
void CMathEventN::copy | ( | const CMathEventN & | src, |
CMathContainer & | container, | ||
const size_t & | valueOffset, | ||
const size_t & | objectOffset | ||
) |
Copy an existing object
const | CMathEventN & src |
CMathContainer | & container |
const | size_t & valueOffset |
const | size_t & objectOffset |
Definition at line 894 of file CMathEvent.cpp.
References CMathEventN::CAssignment::copy(), CMathEventN::CTrigger::copy(), mAssignments, mDelayAssignment, mFireAtInitialTime, mpDelay, mPersistentTrigger, mpPriority, mTrigger, and mType.
Referenced by CMathContainer::CMathContainer().
const CVector< CMathEventN::CAssignment > & CMathEventN::getAssignments | ( | ) | const |
Definition at line 1001 of file CMathEvent.cpp.
References mAssignments.
Referenced by CMathContainer::allocate().
const CMathEventN::CTrigger & CMathEventN::getTrigger | ( | ) | const |
Definition at line 863 of file CMathEvent.cpp.
References mTrigger.
Referenced by CMathContainer::allocate().
void CMathEventN::initialize | ( | CMath::sPointers & | pointers | ) |
Definition at line 868 of file CMathEvent.cpp.
References CMath::Event, CMath::EventDelay, CMath::EventPriority, CMathEventN::CAssignment::initialize(), CMathObject::initialize(), CMathEventN::CTrigger::initialize(), mAssignments, mpDelay, mpPriority, mTrigger, CMath::sPointers::pEventDelays, CMath::sPointers::pEventDelaysObject, CMath::sPointers::pEventPriorities, CMath::sPointers::pEventPrioritiesObject, and CMath::SimulationTypeUndefined.
Referenced by CMathContainer::initializeEvents().
void CMathEventN::setDelayExpression | ( | const std::string & | infix, |
CMathContainer & | container | ||
) |
Set the delay expression
const | std::string & infix |
CMathContainer | & container |
Definition at line 977 of file CMathEvent.cpp.
References mpDelay, and CMathObject::setExpression().
void CMathEventN::setPriorityExpression | ( | const std::string & | infix, |
CMathContainer & | container | ||
) |
Set the priority expression
const | std::string & infix |
CMathContainer | & container |
Definition at line 984 of file CMathEvent.cpp.
References mpPriority, and CMathObject::setExpression().
void CMathEventN::setTriggerExpression | ( | const std::string & | infix, |
CMathContainer & | container | ||
) |
Set the trigger expression
const | std::string & infix |
CMathContainer | & container |
Definition at line 972 of file CMathEvent.cpp.
References mTrigger, and CMathEventN::CTrigger::setExpression().
Referenced by CMathContainer::replaceDiscontinuousNode().
|
private |
Definition at line 271 of file CMathEvent.h.
Referenced by addAssignment(), allocate(), compile(), copy(), getAssignments(), and initialize().
|
private |
Definition at line 276 of file CMathEvent.h.
|
private |
Definition at line 274 of file CMathEvent.h.
|
private |
Definition at line 272 of file CMathEvent.h.
Referenced by compile(), copy(), initialize(), and setDelayExpression().
|
private |
Definition at line 275 of file CMathEvent.h.
|
private |
Definition at line 273 of file CMathEvent.h.
Referenced by compile(), copy(), initialize(), and setPriorityExpression().
|
private |
Definition at line 270 of file CMathEvent.h.
Referenced by allocate(), compile(), copy(), getTrigger(), initialize(), and setTriggerExpression().
|
private |
Definition at line 269 of file CMathEvent.h.
Referenced by copy().