Public Member Functions | |
Derivative (int direction) | |
virtual | ~Derivative () |
virtual XMLObject | toXML () const |
virtual bool | isHungryDiffOp () const |
virtual std::ostream & | toText (std::ostream &os, bool paren) const |
const MultiIndex & | multiIndex () const |
virtual RCP< ExprBase > | getRcp () |
virtual bool | lessThan (const ScalarExpr *other) const |
Private Attributes | |
MultiIndex | m_ |
Definition at line 51 of file SundanceDerivative.hpp.
Derivative::Derivative | ( | int | direction | ) |
Construct an operator for spatial differentiation with respect to the given direction (0=x, 1=y, or 2=z).
Definition at line 37 of file SundanceDerivative.cpp.
References m_.
virtual Sundance::Derivative::~Derivative | ( | ) | [inline, virtual] |
virtual destructor
Definition at line 59 of file SundanceDerivative.hpp.
virtual RCP<ExprBase> Sundance::Derivative::getRcp | ( | ) | [inline, virtual] |
virtual bool Sundance::Derivative::isHungryDiffOp | ( | ) | const [inline, virtual] |
Indicate whether this expression is a "hungry" differential operator that is awaiting an argument.
Reimplemented from Sundance::ScalarExpr.
Definition at line 66 of file SundanceDerivative.hpp.
bool Derivative::lessThan | ( | const ScalarExpr * | other | ) | const [virtual] |
Ordering operator for use in transforming exprs to standard form
Implements Sundance::ScalarExpr.
Definition at line 43 of file SundanceDerivative.cpp.
References multiIndex().
const MultiIndex& Sundance::Derivative::multiIndex | ( | ) | const [inline] |
Definition at line 72 of file SundanceDerivative.hpp.
References m_.
Referenced by Sundance::ApplySimpleDiffOp::doTransform(), and lessThan().
std::ostream & Derivative::toText | ( | std::ostream & | os, | |
bool | paren | |||
) | const [virtual] |
Implements Sundance::ExprBase.
Definition at line 51 of file SundanceDerivative.cpp.
References m_, and Sundance::MultiIndex::toString().
XMLObject Derivative::toXML | ( | ) | const [virtual] |
Implements Sundance::ExprBase.
Definition at line 58 of file SundanceDerivative.cpp.
References m_, and Sundance::MultiIndex::toString().
MultiIndex Sundance::Derivative::m_ [private] |
Definition at line 82 of file SundanceDerivative.hpp.
Referenced by Derivative(), multiIndex(), toText(), and toXML().