#include <CMathDependencyNode.h>
|
void | addDependent (CMathDependencyNode *pNode) |
|
void | addPrerequisite (CMathDependencyNode *pNode) |
|
bool | buildUpdateSequence (const CCore::SimulationContextFlag &context, std::vector< CObjectInterface * > &updateSequence, bool ignoreCircularDependecies) |
|
| CMathDependencyNode (const CMathDependencyNode &src) |
|
| CMathDependencyNode (const CObjectInterface *pObject) |
|
std::vector< CMathDependencyNode * > & | getDependents () |
|
const CObjectInterface * | getObject () const |
|
std::vector< CMathDependencyNode * > & | getPrerequisites () |
|
const bool & | isChanged () const |
|
const bool & | isRequested () const |
|
void | relocate (const CMathContainer *pContainer, const std::vector< CMath::sRelocate > &relocations) |
|
void | remove () |
|
void | removeDependent (CMathDependencyNode *pNode) |
|
void | removePrerequisite (CMathDependencyNode *pNode) |
|
void | reset () |
|
void | setChanged (const bool &changed) |
|
void | setRequested (const bool &requested) |
|
bool | updateCalculatedState (const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects, bool ignoreCircularDependecies) |
|
bool | updateDependentState (const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects, bool ignoreCircularDependecies) |
|
void | updateEdges (const std::map< CMathDependencyNode *, CMathDependencyNode * > &map) |
|
bool | updateIgnoredState (const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects, bool ignoreCircularDependecies) |
|
bool | updatePrerequisiteState (const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects, bool ignoreCircularDependecies) |
|
| ~CMathDependencyNode () |
|
◆ CMathDependencyNode() [1/3]
CMathDependencyNode::CMathDependencyNode |
( |
| ) |
|
|
privatedelete |
◆ CMathDependencyNode() [2/3]
Specific constructor
- Parameters
-
◆ CMathDependencyNode() [3/3]
◆ ~CMathDependencyNode()
CMathDependencyNode::~CMathDependencyNode |
( |
| ) |
|
◆ addDependent()
◆ addPrerequisite()
◆ buildUpdateSequence()
Build the sequence of objects which need to be updated to calculate the object value.
- Parameters
-
- Returns
- bool success
References CMathDependencyNodeIterator::After, CMathDependencyNodeIterator::Before, CMathObject::canCalculateValue(), createMessage(), CMath::Dependent, CMathObject::getCorrespondingProperty(), CMathObject::getEntityType(), getObject(), CMathObject::getSimulationType(), CMathObject::getValueType(), isChanged(), CMathObject::isInitialValue(), CMathObject::isIntensiveProperty(), isRequested(), CFlags< Enum >::isSet(), mChanged, mRequested, CMathDependencyNodeIterator::next(), CMathDependencyNodeIterator::parent(), CMathDependencyNodeIterator::Prerequisites, CMathDependencyNodeIterator::Recursive, setChanged(), CMathDependencyNodeIterator::setProcessingModes(), CMathDependencyNodeIterator::skipChildren(), CMath::Species, CMathDependencyNodeIterator::state(), CCore::UseMoieties, and CMath::Value.
◆ createMessage()
bool CMathDependencyNode::createMessage |
( |
bool |
ignoreCircularDependecies | ) |
|
|
private |
◆ getDependents()
◆ getObject()
◆ getPrerequisites()
◆ isChanged()
const bool & CMathDependencyNode::isChanged |
( |
| ) |
const |
◆ isRequested()
const bool & CMathDependencyNode::isRequested |
( |
| ) |
const |
◆ relocate()
◆ remove()
void CMathDependencyNode::remove |
( |
| ) |
|
◆ removeDependent()
◆ removePrerequisite()
◆ reset()
void CMathDependencyNode::reset |
( |
| ) |
|
◆ setChanged()
void CMathDependencyNode::setChanged |
( |
const bool & |
changed | ) |
|
◆ setRequested()
void CMathDependencyNode::setRequested |
( |
const bool & |
requested | ) |
|
◆ updateCalculatedState()
Update the state of all prerequisites (and prerequisites thereof) to calculate.
- Parameters
-
- Returns
- bool success
References CMathDependencyNodeIterator::Before, createMessage(), getObject(), isChanged(), CObjectInterface::isPrerequisiteForContext(), CMathDependencyNodeIterator::next(), CMathDependencyNodeIterator::parent(), CMathDependencyNodeIterator::Prerequisites, CMathDependencyNodeIterator::Recursive, setChanged(), CMathDependencyNodeIterator::setProcessingModes(), CMathDependencyNodeIterator::skipChildren(), and CMathDependencyNodeIterator::state().
◆ updateDependentState()
Update the state of all dependents (and dependents thereof) to changed,
- Parameters
-
- Returns
- bool success
References CMathDependencyNodeIterator::Before, createMessage(), CMathDependencyNodeIterator::Dependents, getObject(), isChanged(), CObjectInterface::isPrerequisiteForContext(), CMathDependencyNodeIterator::next(), CMathDependencyNodeIterator::parent(), CMathDependencyNodeIterator::Recursive, setChanged(), CMathDependencyNodeIterator::setProcessingModes(), CMathDependencyNodeIterator::skipChildren(), and CMathDependencyNodeIterator::state().
◆ updateEdges()
◆ updateIgnoredState()
Update the state of all dependents (and dependents thereof) to changed,
- Parameters
-
- Returns
- bool success
References CMathDependencyNodeIterator::Before, createMessage(), CMathDependencyNodeIterator::Dependents, CMathDependencyNodeIterator::End, getObject(), getPrerequisites(), isChanged(), CObjectInterface::isPrerequisiteForContext(), CMathDependencyNodeIterator::next(), CMathDependencyNodeIterator::parent(), CMathDependencyNodeIterator::Recursive, setChanged(), CMathDependencyNodeIterator::setProcessingModes(), CMathDependencyNodeIterator::state(), and updateIgnoredState().
Referenced by updateIgnoredState().
◆ updatePrerequisiteState()
Update the state of all prerequisites (and prerequisites thereof) to requested.
- Parameters
-
- Returns
- bool success
References CMathDependencyNodeIterator::Before, createMessage(), getObject(), CObjectInterface::isPrerequisiteForContext(), isRequested(), CMathDependencyNodeIterator::next(), CMathDependencyNodeIterator::parent(), CMathDependencyNodeIterator::Prerequisites, CMathDependencyNodeIterator::Recursive, CMathDependencyNodeIterator::setProcessingModes(), setRequested(), CMathDependencyNodeIterator::skipChildren(), and CMathDependencyNodeIterator::state().
◆ mChanged
bool CMathDependencyNode::mChanged |
|
private |
◆ mDependents
◆ mpObject
◆ mPrerequisites
◆ mRequested
bool CMathDependencyNode::mRequested |
|
private |
The documentation for this class was generated from the following files: