Sundance::SumTransformationSequence Class Reference

Inheritance diagram for Sundance::SumTransformationSequence:

Sundance::SumTransformation Sundance::SymbolicTransformation Sundance::ObjectWithClassVerbosity< SymbolicTransformation > Playa::ObjectWithVerbosity Sundance::StdSumTransformations

List of all members.

Public Member Functions

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

Detailed Description

SumTransformationSequence is a sequence of transformations to be applied to a sum, producing a transformed expression.

Definition at line 50 of file SundanceSumTransformationSequence.hpp.

Constructor & Destructor Documentation

SumTransformationSequence::SumTransformationSequence (  ) 

Definition at line 41 of file SundanceSumTransformationSequence.cpp.

virtual Sundance::SumTransformationSequence::~SumTransformationSequence (  )  [inline, virtual]

Definition at line 58 of file SundanceSumTransformationSequence.hpp.

Member Function Documentation

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 47 of file SundanceSumTransformationSequence.cpp.

Site Contact