COPASI API
4.16.103
|
#include <CNormalChoice.h>
Public Member Functions | |
CNormalChoice () | |
CNormalChoice (const CNormalChoice &src) | |
virtual CNormalBase * | copy () const |
const CNormalLogical & | getCondition () const |
CNormalLogical & | getCondition () |
const CNormalFraction & | getFalseExpression () const |
CNormalFraction & | getFalseExpression () |
const CNormalFraction & | getTrueExpression () const |
CNormalFraction & | getTrueExpression () |
bool | operator< (const CNormalChoice &rhs) const |
CNormalChoice & | operator= (const CNormalChoice &src) |
bool | operator== (const CNormalChoice &rhs) const |
bool | setCondition (const CNormalLogical &cond) |
bool | setFalseExpression (const CNormalFraction &branch) |
bool | setTrueExpression (const CNormalFraction &branch) |
virtual bool | simplify () |
virtual std::string | toString () const |
virtual | ~CNormalChoice () |
![]() | |
virtual bool | areEqual (const CNormalBase &rhs) const |
virtual | ~CNormalBase () |
Static Public Member Functions | |
static bool | checkConditionTree (const CNormalBase &branch) |
static bool | checkExpressionTree (const CNormalBase &branch) |
Protected Attributes | |
CNormalLogical * | mpCondition |
CNormalFraction * | mpFalse |
CNormalFraction * | mpTrue |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CNormalChoice &choice) |
Definition at line 23 of file CNormalChoice.h.
CNormalChoice::CNormalChoice | ( | ) |
CNormalChoice::CNormalChoice | ( | const CNormalChoice & | src | ) |
Definition at line 30 of file CNormalChoice.cpp.
|
virtual |
Definition at line 37 of file CNormalChoice.cpp.
References mpCondition, mpFalse, mpTrue, and pdelete.
|
static |
Definition at line 133 of file CNormalChoice.cpp.
References CNormalItem::CONSTANT, getCondition(), getFalseExpression(), CNormalItem::getName(), getTrueExpression(), and CNormalItem::getType().
Referenced by checkExpressionTree(), and setCondition().
|
static |
Definition at line 171 of file CNormalChoice.cpp.
References checkConditionTree(), getCondition(), getFalseExpression(), and getTrueExpression().
Referenced by setFalseExpression(), and setTrueExpression().
|
virtual |
Implements CNormalBase.
Definition at line 128 of file CNormalChoice.cpp.
References CNormalChoice().
const CNormalLogical & CNormalChoice::getCondition | ( | ) | const |
Definition at line 98 of file CNormalChoice.cpp.
References mpCondition.
Referenced by checkConditionTree(), checkExpressionTree(), convertToCEvaluationNode(), and normalize_variable_names().
CNormalLogical & CNormalChoice::getCondition | ( | ) |
const CNormalFraction & CNormalChoice::getFalseExpression | ( | ) | const |
Definition at line 118 of file CNormalChoice.cpp.
References mpFalse.
Referenced by checkConditionTree(), checkExpressionTree(), convertToCEvaluationNode(), and normalize_variable_names().
CNormalFraction & CNormalChoice::getFalseExpression | ( | ) |
const CNormalFraction & CNormalChoice::getTrueExpression | ( | ) | const |
Definition at line 108 of file CNormalChoice.cpp.
References mpTrue.
Referenced by checkConditionTree(), checkExpressionTree(), convertToCEvaluationNode(), and normalize_variable_names().
CNormalFraction & CNormalChoice::getTrueExpression | ( | ) |
bool CNormalChoice::operator< | ( | const CNormalChoice & | rhs | ) | const |
CNormalChoice & CNormalChoice::operator= | ( | const CNormalChoice & | src | ) |
Definition at line 44 of file CNormalChoice.cpp.
References mpCondition, mpFalse, mpTrue, and pdelete.
bool CNormalChoice::operator== | ( | const CNormalChoice & | rhs | ) | const |
Definition at line 214 of file CNormalChoice.cpp.
References mpCondition, mpFalse, and mpTrue.
bool CNormalChoice::setCondition | ( | const CNormalLogical & | cond | ) |
Definition at line 60 of file CNormalChoice.cpp.
References checkConditionTree(), mpCondition, and pdelete.
Referenced by createChoice().
bool CNormalChoice::setFalseExpression | ( | const CNormalFraction & | branch | ) |
Definition at line 87 of file CNormalChoice.cpp.
References checkExpressionTree(), mpFalse, and pdelete.
Referenced by createChoice().
bool CNormalChoice::setTrueExpression | ( | const CNormalFraction & | branch | ) |
Definition at line 74 of file CNormalChoice.cpp.
References checkExpressionTree(), mpTrue, and pdelete.
Referenced by createChoice().
|
virtual |
Implements CNormalBase.
Definition at line 205 of file CNormalChoice.cpp.
References mpCondition, mpFalse, mpTrue, CNormalFraction::simplify(), and CNormalLogical::simplify().
|
virtual |
Implements CNormalBase.
Definition at line 192 of file CNormalChoice.cpp.
References mpCondition, mpFalse, mpTrue, CNormalFraction::toString(), and CNormalLogical::toString().
Referenced by operator<<().
|
friend |
Definition at line 199 of file CNormalChoice.cpp.
|
protected |
Definition at line 26 of file CNormalChoice.h.
Referenced by getCondition(), operator<(), operator=(), operator==(), setCondition(), simplify(), toString(), and ~CNormalChoice().
|
protected |
Definition at line 28 of file CNormalChoice.h.
Referenced by getFalseExpression(), operator<(), operator=(), operator==(), setFalseExpression(), simplify(), toString(), and ~CNormalChoice().
|
protected |
Definition at line 27 of file CNormalChoice.h.
Referenced by getTrueExpression(), operator<(), operator=(), operator==(), setTrueExpression(), simplify(), toString(), and ~CNormalChoice().