Functions | |
| template<class T> | |
| void | evaluate_operands (T *o) |
Evaluates the operands of a CASObject. | |
| template<class T> | |
| void | expand_operands (T *o) |
Expands the operands of a CASObject. | |
| template<class T> | |
| void | resolve_parentheses (CASObject *o) |
| Friend for resolving parentheses. | |
| void evaluate_operands | ( | T * | o | ) |
CASObject by using std::transform on the operands vector. The newly created operands vector replaces the old one.
| o | Pointer to the CASObject whose operands have to be evaluated. |
Definition at line 177 of file castemplates.h.
| void expand_operands | ( | T * | o | ) |
CASObject by using std::transform on the operands vector. The newly created operans vector replaces the old one.
| o | Pointer to the CASObjet whose operands have to be evaluated. |
Definition at line 215 of file castemplates.h.
| void resolve_parentheses | ( | CASObject * | o | ) |
T. The parameter T is used to determine when to stop parenthese resolution, e.g. if T specifies a Sum, the resolution is stopped when another type as Sum is encountered.Resolving parentheses is done in the following manner:
It loops thru all operands of the CASObject and checks if they are of the same type as the object itself, if so, it appends their operands to the operands list of the object.
| o | Pointer to a CASObject of which the parentheses have to be resolved. |
Definition at line 86 of file castemplates.h.
1.4.7