Public Member Functions | |
| SumTransformationSequence () | |
| virtual | ~SumTransformationSequence () |
| virtual bool | doTransform (const RCP< ScalarExpr > &left, const RCP< ScalarExpr > &right, int sign, RCP< ScalarExpr > &rtn) const |
SumTransformationSequence is a sequence of transformations to be applied to a sum, producing a transformed expression.
Definition at line 61 of file SundanceSumTransformationSequence.hpp.
Definition at line 52 of file SundanceSumTransformationSequence.cpp.
| virtual Sundance::SumTransformationSequence::~SumTransformationSequence | ( | ) | [inline, virtual] |
Definition at line 69 of file SundanceSumTransformationSequence.hpp.
| bool SumTransformationSequence::doTransform | ( | const RCP< ScalarExpr > & | left, |
| const RCP< ScalarExpr > & | right, | ||
| int | sign, | ||
| RCP< ScalarExpr > & | rtn | ||
| ) | const [virtual] |
Test whether the transform is applicable in this case, and if it is, apply it. The return value is true is the transformation was applied, otherwise false. Returns by non-const reference the transformed expression.
For SumTransformationSequence, this is implemented by trying to apply all transformations in sequence. If one succeeds, we exit immediately with true.
Implements Sundance::SumTransformation.
Definition at line 58 of file SundanceSumTransformationSequence.cpp.