Public Member Functions | Private Attributes
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 62 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 48 of file SundanceDerivative.cpp.

References m_.

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

virtual destructor

Definition at line 70 of file SundanceDerivative.hpp.


Member Function Documentation

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

Implements Playa::Handleable< ExprBase >.

Definition at line 86 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 77 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 54 of file SundanceDerivative.cpp.

References multiIndex().

const MultiIndex& Sundance::Derivative::multiIndex ( ) const [inline]

Definition at line 83 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 62 of file SundanceDerivative.cpp.

References m_, and Sundance::MultiIndex::toString().

XMLObject Derivative::toXML ( ) const [virtual]

Implements Sundance::ExprBase.

Definition at line 69 of file SundanceDerivative.cpp.

References m_, and Sundance::MultiIndex::toString().


Member Data Documentation

Definition at line 93 of file SundanceDerivative.hpp.

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

Site Contact