COPASI API
4.16.103
|
#include <CNormalGeneralPower.h>
Public Types | |
enum | Type { POWER = 0, MODULO, INVALID } |
Public Member Functions | |
bool | checkIsOne () const |
CNormalGeneralPower () | |
CNormalGeneralPower (const CNormalGeneralPower &src) | |
virtual CNormalBase * | copy () const |
CNormalFraction & | getLeft () |
const CNormalFraction & | getLeft () const |
CNormalFraction & | getRight () |
const CNormalFraction & | getRight () const |
Type | getType () const |
void | multiply (const CNormalGeneralPower &generalPower) |
bool | operator< (const CNormalGeneralPower &rhs) const |
CNormalGeneralPower & | operator= (const CNormalGeneralPower &src) |
bool | operator== (const CNormalGeneralPower &rhs) const |
void | setLeft (const CNormalFraction &left) |
void | setRight (const CNormalFraction &right) |
void | setType (Type type) |
virtual bool | simplify () |
virtual std::string | toString () const |
virtual | ~CNormalGeneralPower () |
![]() | |
virtual bool | areEqual (const CNormalBase &rhs) const |
virtual | ~CNormalBase () |
Static Public Member Functions | |
static CNormalGeneralPower * | createUnitGeneralPower () |
Protected Attributes | |
CNormalFraction * | mpLeft |
CNormalFraction * | mpRight |
Type | mType |
Static Protected Attributes | |
static const char * | SYMBOLS [] = {"^", "%"} |
Definition at line 28 of file CNormalGeneralPower.h.
CNormalGeneralPower::CNormalGeneralPower | ( | ) |
Definition at line 34 of file CNormalGeneralPower.cpp.
Referenced by copy(), createUnitGeneralPower(), and multiply().
CNormalGeneralPower::CNormalGeneralPower | ( | const CNormalGeneralPower & | src | ) |
Definition at line 37 of file CNormalGeneralPower.cpp.
|
virtual |
bool CNormalGeneralPower::checkIsOne | ( | ) | const |
Definition at line 265 of file CNormalGeneralPower.cpp.
References CNormalFraction::checkIsOne(), CNormalFraction::checkIsZero(), mpLeft, and mpRight.
Referenced by CNormalSum::checkIsOne(), multiply(), CNormalSum::simplify(), and CNormalProduct::simplify().
|
virtual |
Implements CNormalBase.
Definition at line 176 of file CNormalGeneralPower.cpp.
References CNormalGeneralPower().
|
static |
Returns a general power that is (1/1)^(1/1). It creates a new general power of type power and sets the left and right side to a unit fraction.
Definition at line 273 of file CNormalGeneralPower.cpp.
References CNormalGeneralPower(), CNormalFraction::createUnitFraction(), mpLeft, mpRight, POWER, and setType().
CNormalFraction & CNormalGeneralPower::getLeft | ( | ) |
Definition at line 92 of file CNormalGeneralPower.cpp.
References mpLeft.
Referenced by convertToCEvaluationNode(), CNormalProduct::getDenominator(), normalize_variable_names(), operator=(), CNormalProduct::setDenominatorsOne(), and CNormalSum::simplify().
const CNormalFraction & CNormalGeneralPower::getLeft | ( | ) | const |
CNormalFraction & CNormalGeneralPower::getRight | ( | ) |
Definition at line 108 of file CNormalGeneralPower.cpp.
References mpRight.
Referenced by convertToCEvaluationNode(), normalize_variable_names(), operator=(), and CNormalSum::simplify().
const CNormalFraction & CNormalGeneralPower::getRight | ( | ) | const |
CNormalGeneralPower::Type CNormalGeneralPower::getType | ( | ) | const |
Definition at line 124 of file CNormalGeneralPower.cpp.
References mType.
Referenced by convertToCEvaluationNode(), CNormalProduct::getDenominator(), operator=(), and CNormalProduct::setDenominatorsOne().
void CNormalGeneralPower::multiply | ( | const CNormalGeneralPower & | generalPower | ) |
Definition at line 181 of file CNormalGeneralPower.cpp.
References checkIsOne(), CNormalSum::checkIsOne(), CNormalGeneralPower(), CNormalFraction::createUnitFraction(), CNormalFraction::getDenominator(), CNormalFraction::getNumerator(), CNormalSum::getProducts(), mpLeft, mpRight, CNormalProduct::multiply(), POWER, setLeft(), CNormalFraction::setNumerator(), setRight(), and setType().
Referenced by CNormalProduct::getDenominator(), and CNormalProduct::simplify().
bool CNormalGeneralPower::operator< | ( | const CNormalGeneralPower & | rhs | ) | const |
CNormalGeneralPower & CNormalGeneralPower::operator= | ( | const CNormalGeneralPower & | src | ) |
Definition at line 46 of file CNormalGeneralPower.cpp.
References getLeft(), getRight(), getType(), mpLeft, mpRight, and mType.
bool CNormalGeneralPower::operator== | ( | const CNormalGeneralPower & | rhs | ) | const |
void CNormalGeneralPower::setLeft | ( | const CNormalFraction & | left | ) |
Definition at line 102 of file CNormalGeneralPower.cpp.
References mpLeft.
Referenced by createGeneralPower(), CNormalProduct::getDenominator(), multiply(), CNormalSum::simplify(), and test_simplify::test_simplify_1().
void CNormalGeneralPower::setRight | ( | const CNormalFraction & | right | ) |
Definition at line 118 of file CNormalGeneralPower.cpp.
References mpRight.
Referenced by createGeneralPower(), CNormalProduct::getDenominator(), multiply(), and test_simplify::test_simplify_1().
void CNormalGeneralPower::setType | ( | CNormalGeneralPower::Type | type | ) |
Definition at line 129 of file CNormalGeneralPower.cpp.
References mType.
Referenced by createGeneralPower(), createUnitGeneralPower(), CNormalProduct::getDenominator(), multiply(), and test_simplify::test_simplify_1().
|
virtual |
Implements CNormalBase.
Definition at line 166 of file CNormalGeneralPower.cpp.
References mpLeft, mpRight, and CNormalFraction::simplify().
Referenced by test_simplify::test_simplify_1().
|
virtual |
Implements CNormalBase.
Definition at line 56 of file CNormalGeneralPower.cpp.
References CNormalFraction::checkDenominatorOne(), CNormalSum::checkIsOne(), CNormalFraction::getDenominator(), CNormalFraction::getNumerator(), INVALID, mpLeft, mpRight, mType, and SYMBOLS.
Referenced by operator<<().
|
protected |
Definition at line 40 of file CNormalGeneralPower.h.
Referenced by checkIsOne(), createUnitGeneralPower(), getLeft(), multiply(), operator<(), operator=(), operator==(), setLeft(), simplify(), toString(), and ~CNormalGeneralPower().
|
protected |
Definition at line 41 of file CNormalGeneralPower.h.
Referenced by checkIsOne(), createUnitGeneralPower(), getRight(), multiply(), operator<(), operator=(), operator==(), setRight(), simplify(), toString(), and ~CNormalGeneralPower().
|
protected |
Definition at line 39 of file CNormalGeneralPower.h.
Referenced by getType(), operator<(), operator=(), operator==(), setType(), and toString().
|
staticprotected |
Definition at line 43 of file CNormalGeneralPower.h.
Referenced by toString().