Public Member Functions | |
| ProductTransformationSequence () | |
| virtual | ~ProductTransformationSequence () |
| virtual bool | doTransform (const RCP< ScalarExpr > &left, const RCP< ScalarExpr > &right, RCP< ScalarExpr > &rtn) const |
ProductTransformationSequence is a sequence of transformations to be applied to a product, producing a transformed expression.
Definition at line 61 of file SundanceProductTransformationSequence.hpp.
Definition at line 53 of file SundanceProductTransformationSequence.cpp.
| virtual Sundance::ProductTransformationSequence::~ProductTransformationSequence | ( | ) | [inline, virtual] |
Definition at line 69 of file SundanceProductTransformationSequence.hpp.
| bool ProductTransformationSequence::doTransform | ( | const RCP< ScalarExpr > & | left, |
| const RCP< ScalarExpr > & | right, | ||
| 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 ProductTransformationSequence, this is implemented by trying to apply all transformations in sequence. If one succeeds, we exit immediately with true.
Implements Sundance::ProductTransformation.
Definition at line 58 of file SundanceProductTransformationSequence.cpp.
References SUNDANCE_MSG2, and Playa::ObjectWithVerbosity::verb().