COPASI API
4.16.103
|
#include <CNormalCall.h>
Public Types | |
enum | Type { FUNCTION, EXPRESSION, DELAY, INVALID } |
Public Member Functions | |
bool | add (const CNormalFraction &fraction) |
CNormalCall () | |
CNormalCall (const CNormalCall &src) | |
virtual CNormalBase * | copy () const |
const std::vector < CNormalFraction * > & | getFractions () const |
const std::string & | getName () const |
int | getSize () const |
Type | getType () const |
bool | operator< (const CNormalCall &rhs) const |
CNormalCall & | operator= (const CNormalCall &src) |
bool | operator== (const CNormalCall &rhs) const |
void | setFractions (const std::vector< CNormalFraction * > &set) |
void | setName (const std::string &name) |
void | setType (Type type) |
virtual bool | simplify () |
virtual std::string | toString () const |
virtual | ~CNormalCall () |
![]() | |
virtual bool | areEqual (const CNormalBase &rhs) const |
virtual | ~CNormalBase () |
Private Attributes | |
std::vector< CNormalFraction * > | mFractions |
std::string | mName |
Type | mType |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CNormalCall &d) |
The class for function calls used in CNormal
Definition at line 33 of file CNormalCall.h.
enum CNormalCall::Type |
Enumerator | |
---|---|
FUNCTION | |
EXPRESSION | |
DELAY | |
INVALID |
Definition at line 36 of file CNormalCall.h.
CNormalCall::CNormalCall | ( | ) |
Default constructor
Definition at line 25 of file CNormalCall.cpp.
Referenced by copy().
CNormalCall::CNormalCall | ( | const CNormalCall & | src | ) |
Copy Constructor
Definition at line 31 of file CNormalCall.cpp.
References mFractions, mName, mType, and setFractions().
|
virtual |
Destructor
Definition at line 109 of file CNormalCall.cpp.
References mFractions.
bool CNormalCall::add | ( | const CNormalFraction & | fraction | ) |
Add fraction to this sum.
Definition at line 139 of file CNormalCall.cpp.
References mFractions.
Referenced by createCall(), and setFractions().
|
virtual |
const std::vector< CNormalFraction * > & CNormalCall::getFractions | ( | ) | const |
Retrieve the set of fractions of this sum.
Definition at line 149 of file CNormalCall.cpp.
References mFractions.
Referenced by convertToCEvaluationNode().
const std::string & CNormalCall::getName | ( | ) | const |
Definition at line 262 of file CNormalCall.cpp.
References mName.
Referenced by convertToCEvaluationNode().
int CNormalCall::getSize | ( | ) | const |
Retrieve the number of summands of this sum.
Definition at line 130 of file CNormalCall.cpp.
References mFractions.
CNormalCall::Type CNormalCall::getType | ( | ) | const |
Definition at line 272 of file CNormalCall.cpp.
References mType.
Referenced by convertToCEvaluationNode().
bool CNormalCall::operator< | ( | const CNormalCall & | rhs | ) | const |
Smaller operator
Definition at line 56 of file CNormalCall.cpp.
References mFractions, mName, and mType.
CNormalCall & CNormalCall::operator= | ( | const CNormalCall & | src | ) |
Assignment operator
Definition at line 41 of file CNormalCall.cpp.
References mFractions, mName, mType, and setFractions().
bool CNormalCall::operator== | ( | const CNormalCall & | rhs | ) | const |
Examine equality of two sums.
Definition at line 158 of file CNormalCall.cpp.
References mFractions, mName, and mType.
void CNormalCall::setFractions | ( | const std::vector< CNormalFraction * > & | set | ) |
Sets the fractions of this product.
Definition at line 200 of file CNormalCall.cpp.
References add(), and mFractions.
Referenced by CNormalCall(), and operator=().
void CNormalCall::setName | ( | const std::string & | name | ) |
void CNormalCall::setType | ( | CNormalCall::Type | type | ) |
|
virtual |
Implements CNormalBase.
Definition at line 242 of file CNormalCall.cpp.
References mFractions.
|
virtual |
Implements CNormalBase.
Definition at line 221 of file CNormalCall.cpp.
References mFractions, and mName.
Referenced by operator<<().
|
friend |
Definition at line 256 of file CNormalCall.cpp.
|
private |
Enumeration of members The members of a call have to be kept in the correct order since the order of arguments to a call matters.
Definition at line 60 of file CNormalCall.h.
Referenced by add(), CNormalCall(), getFractions(), getSize(), operator<(), operator=(), operator==(), setFractions(), simplify(), toString(), and ~CNormalCall().
|
private |
The name of the called function
Definition at line 48 of file CNormalCall.h.
Referenced by CNormalCall(), getName(), operator<(), operator=(), operator==(), setName(), and toString().
|
private |
the call type
Definition at line 53 of file CNormalCall.h.
Referenced by CNormalCall(), getType(), operator<(), operator=(), operator==(), and setType().