Public Member Functions | |
NonlinearUnaryOp (const RCP< ScalarExpr > &arg, const RCP< UnaryFunctor > &op) | |
virtual | ~NonlinearUnaryOp () |
virtual std::ostream & | toText (std::ostream &os, bool paren) const |
virtual XMLObject | toXML () const |
virtual RCP< ExprBase > | getRcp () |
const UnaryFunctor * | op () const |
virtual bool | lessThan (const ScalarExpr *other) const |
Private Attributes | |
RCP< UnaryFunctor > | op_ |
Definition at line 56 of file SundanceNonlinearUnaryOp.hpp.
NonlinearUnaryOp::NonlinearUnaryOp | ( | const RCP< ScalarExpr > & | arg, | |
const RCP< UnaryFunctor > & | op | |||
) |
construct with an argument and the functor defining the operation
Definition at line 40 of file SundanceNonlinearUnaryOp.cpp.
virtual Sundance::NonlinearUnaryOp::~NonlinearUnaryOp | ( | ) | [inline, virtual] |
virtual destructor
Definition at line 65 of file SundanceNonlinearUnaryOp.hpp.
virtual RCP<ExprBase> Sundance::NonlinearUnaryOp::getRcp | ( | ) | [inline, virtual] |
Implements Playa::Handleable< ExprBase >.
Definition at line 75 of file SundanceNonlinearUnaryOp.hpp.
bool NonlinearUnaryOp::lessThan | ( | const ScalarExpr * | other | ) | const [virtual] |
Ordering operator for use in transforming exprs to standard form
Reimplemented from Sundance::ExprWithChildren.
Definition at line 48 of file SundanceNonlinearUnaryOp.cpp.
References op().
const UnaryFunctor* Sundance::NonlinearUnaryOp::op | ( | ) | const [inline] |
Access to the operator
Definition at line 79 of file SundanceNonlinearUnaryOp.hpp.
References op_.
Referenced by lessThan().
std::ostream & NonlinearUnaryOp::toText | ( | std::ostream & | os, | |
bool | paren | |||
) | const [virtual] |
Write a simple text description suitable for output to a terminal
Implements Sundance::ExprBase.
Definition at line 62 of file SundanceNonlinearUnaryOp.cpp.
References Sundance::UnaryExpr::arg(), op_, and Sundance::Expr::toString().
XMLObject NonlinearUnaryOp::toXML | ( | ) | const [virtual] |
Write in XML
Implements Sundance::ExprBase.
Definition at line 69 of file SundanceNonlinearUnaryOp.cpp.
References Sundance::UnaryExpr::arg(), op_, and toXML().
Referenced by toXML().
RCP<UnaryFunctor> Sundance::NonlinearUnaryOp::op_ [private] |
Definition at line 87 of file SundanceNonlinearUnaryOp.hpp.