Sundance::Derivative Class Reference

Inheritance diagram for Sundance::Derivative:

Sundance::ScalarExpr Sundance::ExprBase Playa::Handleable< ExprBase >

List of all members.

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 MultiIndexmultiIndex () const
virtual RCP< ExprBasegetRcp ()
virtual bool lessThan (const ScalarExpr *other) const

Private Attributes

MultiIndex m_


Detailed Description

Derivative is an expression subtype representing a first-order spatial partial derivative operator.

Definition at line 51 of file SundanceDerivative.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual RCP<ExprBase> Sundance::Derivative::getRcp (  )  [inline, virtual]

Implements Playa::Handleable< ExprBase >.

Definition at line 75 of file SundanceDerivative.hpp.

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


Member Data Documentation

Definition at line 82 of file SundanceDerivative.hpp.

Referenced by Derivative(), multiIndex(), toText(), and toXML().

Site Contact