Sum of two terms. More...
#include <TermSum.h>


Public Member Functions | |
| Term * | differentiate (TermVariable *variable) throw (ProblemMismatchException) |
| Determines the partial derivative of the term. | |
| bool | less (const Term *term) const |
| Compares this term to an other term. | |
| std::string | toString () const |
| Convert term to string. | |
Static Public Member Functions | |
| static Term * | create (Problem *problem, Term *summand1, Term *summand2) |
| Creates sum. | |
Protected Member Functions | |
| double | eval (const DoubleVector *variableValues, TermValueSet *termValues) |
| Evaluates term. | |
| TermSum (Problem *problem, Term *summand1, Term *summand2) | |
| Creates sum. | |
| virtual | ~TermSum () |
| Destroys sum. | |
Protected Member Functions inherited from TermBinary | |
| TermBinary (Problem *problem) | |
| Creates a binary term. | |
| virtual | ~TermBinary () |
| Destroys a binary term. | |
Protected Member Functions inherited from Term | |
| void | setTermIndex (const int termIndex) |
| Set term index. | |
| Term (Problem *problem) | |
| Creates a term. | |
| virtual | ~Term () |
| Destroys a term. | |
Additional Inherited Members | |
Static Public Attributes inherited from Term | |
| static const int | INVALID_INDEX = -1 |
Creates sum.
| problem | problem to which the term belongs |
| summand1 | first summand |
| summand2 | second summand |
Definition at line 32 of file TermSum.cc.


Creates sum.
| problem | problem to which the term belongs |
| summand1 | first summand |
| summand2 | second summand |
Definition at line 57 of file TermSum.cc.


|
virtual |
Determines the partial derivative of the term.
| variable | variable with respect to which the derivative shall be calculated |
Reimplemented from Term.
Definition at line 81 of file TermSum.cc.

|
protectedvirtual |
Evaluates term.
| variableValues | values of the variables |
| termValues | values of the terms |
Reimplemented from Term.
Definition at line 93 of file TermSum.cc.

|
virtual |
Compares this term to an other term.
| term | term to compare this term with |
Reimplemented from Term.
Definition at line 99 of file TermSum.cc.

|
virtual |
Convert term to string.
Reimplemented from Term.
Definition at line 119 of file TermSum.cc.
1.8.1.2