COPASI API
4.40.278
|
#include <CMathEvent.h>
Classes | |
class | CRootProcessor |
Public Member Functions | |
void | allocate (const CEvent *pDataEvent, const CMathContainer &container) |
void | allocateDiscontinuous (const size_t &nRoots, const CMathContainer &container) |
bool | compile (const CEvent *pDataEvent, CMathContainer &container) |
void | copy (const CTrigger &src, CMathContainer &container) |
CTrigger () | |
CTrigger (const CTrigger &src) | |
const CVector< CRootProcessor > & | getRoots () const |
void | initialize (CMath::sPointers &pointers) |
bool | isTrue () const |
void | relocate (const CMathContainer *pContainer, const std::vector< CMath::sRelocate > &relocations) |
void | setExpression (const std::string &infix, CMathContainer &container) |
~CTrigger () | |
Private Attributes | |
std::string | mInfix |
CMathObject * | mpInitialTrigger |
CMathObject * | mpTrigger |
CVector< CRootProcessor > | mRoots |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CTrigger &o) |
CMathEvent::CTrigger::CTrigger | ( | ) |
Default constructor
CMathEvent::CTrigger::CTrigger | ( | const CTrigger & | src | ) |
Copy constructor
CMathEvent::CTrigger::~CTrigger | ( | ) |
Destructor
void CMathEvent::CTrigger::allocate | ( | const CEvent * | pDataEvent, |
const CMathContainer & | container | ||
) |
void CMathEvent::CTrigger::allocateDiscontinuous | ( | const size_t & | nRoots, |
const CMathContainer & | container | ||
) |
|
staticprivate |
References CNodeIteratorMode::After, CEvaluationNode::AND, CNodeIteratorMode::Before, C_INVALID_INDEX, CEvaluationNode::CALL, CEvaluationNode::CONSTANT, CNodeContextIterator< Node, Context >::context(), CMathContainer::copyBranch(), CEvaluationNode::DEFAULT, CNodeContextIterator< Node, Context >::end(), CEvaluationNode::EQ, CEvaluationNode::EXPRESSION, CEvaluationNode::False, CEvaluationNode::FUNCTION, CEvaluationNode::GE, CEvaluationNodeVariable::getIndex(), CEvaluationNode::GT, CEvaluationNode::LE, CEvaluationNode::LOGICAL, CEvaluationNode::LT, CEvaluationNode::NaN, CEvaluationNode::NE, CNodeContextIterator< Node, Context >::next(), CEvaluationNode::NOT, CEvaluationNode::OR, CNodeContextIterator< Node, Context >::parentContextPtr(), CNodeContextIterator< Node, Context >::processingMode(), CNodeContextIterator< Node, Context >::setProcessingModes(), CNodeContextIterator< Node, Context >::skipChildren(), CEvaluationNode::True, CEvaluationNode::VARIABLE, and CEvaluationNode::XOR.
bool CMathEvent::CTrigger::compile | ( | const CEvent * | pDataEvent, |
CMathContainer & | container | ||
) |
References CExpression::compile(), CMathEvent::compile(), CEvaluationTree::getRoot(), CEvent::getTriggerExpression(), CEvent::getTriggerExpressionPtr(), CMathEvent::CTrigger::CRootProcessor::setDataObject(), CExpression::setInfix(), and CExpression::setIsBoolean().
Referenced by CMathEvent::compile().
|
staticprivate |
|
staticprivate |
|
staticprivate |
References CMathEvent::compile().
|
staticprivate |
References CCopasiNode< _Data >::addChild(), CMathEvent::CTrigger::CRootProcessor::compile(), CMathEvent::CTrigger::CRootProcessor::createTriggerExpressionNode(), CEvaluationNode::GE, CEvaluationNode::GT, CEvaluationNode::LE, CEvaluationNode::LT, CEvaluationNode::MINUS, and CEvaluationNode::subType().
|
staticprivate |
References CCopasiNode< _Data >::addChild(), CEvaluationNode::EQ, and CEvaluationNode::NOT.
|
staticprivate |
References CCopasiNode< _Data >::addChild(), and CEvaluationNode::NOT.
|
staticprivate |
References C_INVALID_INDEX, CCopasiNode< _Data >::getData(), and CEvaluationNode::NaN.
void CMathEvent::CTrigger::copy | ( | const CTrigger & | src, |
CMathContainer & | container | ||
) |
Copy an existing object
const | CTrigger & src |
CMathContainer | & container |
References CMathEvent::CTrigger::CRootProcessor::copy(), and mRoots.
Referenced by CMathEvent::copy().
|
staticprivate |
References CNodeIteratorMode::After, CNodeIteratorMode::Before, CEvaluationNode::CALL, CNodeContextIterator< Node, Context >::context(), CEvaluationNode::DEFAULT, CNodeContextIterator< Node, Context >::end(), CEvaluationNode::EQ, CEvaluationNode::EXPRESSION, CEvaluationNode::FUNCTION, CEvaluationNode::GE, CEvaluationNode::GT, CEvaluationNode::LE, CEvaluationNode::LOGICAL, CEvaluationNode::LT, CEvaluationNode::NE, CNodeContextIterator< Node, Context >::next(), CNodeContextIterator< Node, Context >::parentContextPtr(), CNodeContextIterator< Node, Context >::processingMode(), CNodeContextIterator< Node, Context >::setProcessingModes(), CNodeContextIterator< Node, Context >::skipChildren(), and CEvaluationNode::VARIABLE.
|
staticprivate |
|
staticprivate |
References CCopasiNode< _Data >::getChild(), and CEvaluationNode::isBoolean().
|
staticprivate |
|
staticprivate |
References C_INVALID_INDEX.
const CVector< CMathEvent::CTrigger::CRootProcessor > & CMathEvent::CTrigger::getRoots | ( | ) | const |
void CMathEvent::CTrigger::initialize | ( | CMath::sPointers & | pointers | ) |
References CMath::Event, CMath::EventTrigger, CMathEvent::CTrigger::CRootProcessor::initialize(), CMathObject::initialize(), CMath::sPointers::pEventTriggers, CMath::sPointers::pEventTriggersObject, CMath::sPointers::pInitialEventTriggers, CMath::sPointers::pInitialEventTriggersObject, and CMath::Undefined.
Referenced by CMathEvent::initialize().
bool CMathEvent::CTrigger::isTrue | ( | ) | const |
Check whether the root state is true
References C_FLOAT64.
Referenced by CMathEvent::fire().
void CMathEvent::CTrigger::relocate | ( | const CMathContainer * | pContainer, |
const std::vector< CMath::sRelocate > & | relocations | ||
) |
The objects and values are relocated
const | CMathContainer * pContainer |
const | std::vector< CMath::sRelocate > & relocations |
References CMathEvent::CTrigger::CRootProcessor::relocate(), and CMathContainer::relocateObject().
Referenced by CMathEvent::relocate().
void CMathEvent::CTrigger::setExpression | ( | const std::string & | infix, |
CMathContainer & | container | ||
) |
Set the trigger expression
const | std::string & infix |
CMathContainer | & container |
References CMathEvent::compile(), CMathEvent::CTrigger::CRootProcessor::mpRoot, and CMathEvent::CTrigger::CRootProcessor::mpRootState.
Referenced by CMathEvent::setTriggerExpression().
|
friend |
|
private |
|
private |
|
private |
|
private |
Referenced by copy().