COPASI API
4.16.103
|
#include <CNormalLcm.h>
Public Member Functions | |
bool | add (const CNormalItemPower &itemPower) |
bool | add (const CNormalSum &sum) |
CNormalLcm () | |
CNormalLcm (const CNormalLcm &src) | |
const std::set < CNormalItemPower *, compareItemPowers > & | getItemPowers () const |
const std::vector< CNormalSum * > & | getSums () const |
CNormalLcm & | operator= (const CNormalLcm &src) |
bool | remove (const CNormalItemPower &itemPower) |
bool | remove (const CNormalSum &sum) |
std::string | toString () const |
~CNormalLcm () | |
Private Attributes | |
std::set< CNormalItemPower *, compareItemPowers > | mItemPowers |
std::vector< CNormalSum * > | mSums |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CNormalLcm &d) |
The class for lcms used in CNormal
Definition at line 33 of file CNormalLcm.h.
CNormalLcm::CNormalLcm | ( | ) |
CNormalLcm::CNormalLcm | ( | const CNormalLcm & | src | ) |
Copy contructor
Definition at line 43 of file CNormalLcm.cpp.
References mItemPowers, and mSums.
CNormalLcm::~CNormalLcm | ( | ) |
Destructor
Definition at line 85 of file CNormalLcm.cpp.
References mItemPowers, and mSums.
bool CNormalLcm::add | ( | const CNormalItemPower & | itemPower | ) |
Add an itempower to this lcm, ie. lcm := LeastCommonMultiple(lcm,itempower)
Definition at line 105 of file CNormalLcm.cpp.
References CNormalItemPower::getExp(), CNormalItemPower::getItem(), and mItemPowers.
Referenced by add(), and CNormalFraction::findLcm().
bool CNormalLcm::add | ( | const CNormalSum & | sum | ) |
Add a fractionless sum to this lcm, ie. lcm := LeastCommonMultiple(lcm,sum)
Definition at line 129 of file CNormalLcm.cpp.
References add(), CNormalProduct::getItemPowers(), CNormalSum::getProducts(), and mSums.
const std::set< CNormalItemPower *, compareItemPowers > & CNormalLcm::getItemPowers | ( | ) | const |
Retrieve the set of itempowers of this lcm.
Definition at line 266 of file CNormalLcm.cpp.
References mItemPowers.
Referenced by convertToCEvaluationNode(), and CNormalProduct::multiply().
const std::vector< CNormalSum * > & CNormalLcm::getSums | ( | ) | const |
Retrieve the vector of sums of this lcm.
Definition at line 275 of file CNormalLcm.cpp.
References mSums.
Referenced by convertToCEvaluationNode(), and CNormalProduct::multiply().
CNormalLcm & CNormalLcm::operator= | ( | const CNormalLcm & | src | ) |
Assignment operator
Definition at line 65 of file CNormalLcm.cpp.
References mItemPowers, and mSums.
bool CNormalLcm::remove | ( | const CNormalItemPower & | itemPower | ) |
Remove an itempower from this lcm, provided it is a factor
Definition at line 176 of file CNormalLcm.cpp.
References C_FLOAT64, CNormalItemPower::getExp(), CNormalItemPower::getItem(), and mItemPowers.
Referenced by CNormalFraction::multiply().
bool CNormalLcm::remove | ( | const CNormalSum & | sum | ) |
Remove a fractionless sum from this lcm, provided it is a factor
Definition at line 209 of file CNormalLcm.cpp.
References CNormalProduct::getItemPowers(), CNormalSum::getProducts(), and mSums.
std::string CNormalLcm::toString | ( | ) | const |
Definition at line 280 of file CNormalLcm.cpp.
|
friend |
Definition at line 287 of file CNormalLcm.cpp.
|
private |
Enumeration of members
Definition at line 39 of file CNormalLcm.h.
Referenced by add(), CNormalLcm(), getItemPowers(), operator<<(), operator=(), remove(), and ~CNormalLcm().
|
private |
Definition at line 40 of file CNormalLcm.h.
Referenced by add(), CNormalLcm(), getSums(), operator<<(), operator=(), remove(), and ~CNormalLcm().