|
copasi API
0.1
|
#include <CNormalSum.h>
Public Member Functions | |
| CNormalSum () | |
| CNormalSum (const CNormalSum &src) | |
| CNormalSum & | operator= (const CNormalSum &src) |
| bool | operator< (const CNormalSum &rhs) const |
| virtual | ~CNormalSum () |
| virtual CNormalBase * | copy () const |
| int | getSize () const |
| bool | add (const CNormalProduct &product) |
| bool | add (const CNormalFraction &fraction) |
| bool | add (const CNormalSum &sum) |
| bool | multiply (const C_FLOAT64 &number) |
| bool | multiply (const CNormalItemPower &itemPower) |
| bool | multiply (const CNormalSum &sum) |
| bool | multiply (const CNormalLcm &lcm) |
| bool | divide (const CNormalItemPower &itemPower) |
| const std::set< CNormalProduct *, compareProducts > & | getProducts () const |
| const std::set < CNormalFraction * > & | getFractions () const |
| bool | operator== (const CNormalSum &rhs) const |
| void | setProducts (const std::set< CNormalProduct *, compareProducts > &set) |
| void | setFractions (const std::set< CNormalFraction * > &set) |
| C_FLOAT64 | checkFactor (const CNormalItemPower &itemPower) const |
| virtual std::string | toString () const |
| virtual bool | simplify () |
| bool | checkIsOne () const |
| bool | checkIsZero () const |
Static Public Member Functions | |
| static CNormalSum * | createUnitSum () |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const CNormalSum &d) |
The class for sums used in CNormal
| CNormalSum::CNormalSum | ( | ) |
Default constructor
| CNormalSum::CNormalSum | ( | const CNormalSum & | src | ) |
Copy Constructor
| CNormalSum::~CNormalSum | ( | ) | [virtual] |
Destructor
| bool CNormalSum::add | ( | const CNormalProduct & | product | ) |
Add product to this sum.
| bool CNormalSum::add | ( | const CNormalFraction & | fraction | ) |
Add fraction to this sum.
| bool CNormalSum::add | ( | const CNormalSum & | sum | ) |
Add a sum to this sum.
| C_FLOAT64 CNormalSum::checkFactor | ( | const CNormalItemPower & | itemPower | ) | const |
Check if an itempower is a factor of this sum.
| bool CNormalSum::checkIsOne | ( | ) | const |
| bool CNormalSum::checkIsZero | ( | ) | const |
| CNormalBase * CNormalSum::copy | ( | ) | const [virtual] |
Implements CNormalBase.
| CNormalSum * CNormalSum::createUnitSum | ( | ) | [static] |
Returns a sum that is 1. In this case it only creates a new sum sum and adds a unit product to the sum.
| bool CNormalSum::divide | ( | const CNormalItemPower & | itemPower | ) |
Divide this sum by an itempower, provided it is a factor of it -This sum does not contain fractions!
| const std::set< CNormalFraction * > & CNormalSum::getFractions | ( | ) | const |
Retrieve the set of fractions of this sum.
| const std::set< CNormalProduct *, compareProducts > & CNormalSum::getProducts | ( | ) | const |
Retrieve the set of products of this sum.
| int CNormalSum::getSize | ( | ) | const |
Retrieve the number of summands of this sum.
| bool CNormalSum::multiply | ( | const C_FLOAT64 & | number | ) |
Multiply this sum with a number.
| bool CNormalSum::multiply | ( | const CNormalItemPower & | itemPower | ) |
Multiply this sum with an itempower.
| bool CNormalSum::multiply | ( | const CNormalSum & | sum | ) |
Multiply this sum with another sum, both do not contain fractions!!
| bool CNormalSum::multiply | ( | const CNormalLcm & | lcm | ) |
Multiply this sum by a lcm Numerator and denominator of mFractions do not contain further fractions!
| bool CNormalSum::operator< | ( | const CNormalSum & | rhs | ) | const |
Smaller operator
| CNormalSum & CNormalSum::operator= | ( | const CNormalSum & | src | ) |
Assignment operator
| bool CNormalSum::operator== | ( | const CNormalSum & | rhs | ) | const |
Examine equality of two sums.
| void CNormalSum::setFractions | ( | const std::set< CNormalFraction * > & | set | ) |
Sets the fractions of this product.
| void CNormalSum::setProducts | ( | const std::set< CNormalProduct *, compareProducts > & | set | ) |
Sets the products of this product.
| bool CNormalSum::simplify | ( | ) | [virtual] |
Implements CNormalBase.
| std::string CNormalSum::toString | ( | ) | const [virtual] |
Implements CNormalBase.
| std::ostream& operator<< | ( | std::ostream & | os, |
| const CNormalSum & | d | ||
| ) | [friend] |
1.7.5.1