Public Member Functions
Sundance::ProductTransformationSequence Class Reference
Inheritance diagram for Sundance::ProductTransformationSequence:
Sundance::ProductTransformation Sundance::SymbolicTransformation Sundance::ObjectWithClassVerbosity< SymbolicTransformation > Playa::ObjectWithVerbosity Sundance::StdProductTransformations

List of all members.

Public Member Functions

 ProductTransformationSequence ()
virtual ~ProductTransformationSequence ()
virtual bool doTransform (const RCP< ScalarExpr > &left, const RCP< ScalarExpr > &right, RCP< ScalarExpr > &rtn) const

Detailed Description

ProductTransformationSequence is a sequence of transformations to be applied to a product, producing a transformed expression.

Definition at line 61 of file SundanceProductTransformationSequence.hpp.


Constructor & Destructor Documentation

Definition at line 53 of file SundanceProductTransformationSequence.cpp.

Definition at line 69 of file SundanceProductTransformationSequence.hpp.


Member Function Documentation

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().

Site Contact