Sundance::ComplexExpr Class Reference

Inheritance diagram for Sundance::ComplexExpr:

Sundance::ExprBase Playa::Handleable< ExprBase >

List of all members.

Public Member Functions

 ComplexExpr (const Expr &re, const Expr &im)
virtual ~ComplexExpr ()
virtual XMLObject toXML () const
virtual const Exprreal () const
virtual const Exprimag () const
virtual std::ostream & toText (std::ostream &os, bool paren) const
virtual RCP< ExprBasegetRcp ()

Private Attributes

Expr real_
Expr imag_

Detailed Description

Complex expression

Definition at line 52 of file SundanceComplexExpr.hpp.

Constructor & Destructor Documentation

ComplexExpr::ComplexExpr ( const Expr re,
const Expr im 

Definition at line 42 of file SundanceComplexExpr.cpp.

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

virtual destructor

Definition at line 59 of file SundanceComplexExpr.hpp.

Member Function Documentation

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

Implements Playa::Handleable< ExprBase >.

Definition at line 75 of file SundanceComplexExpr.hpp.

virtual const Expr& Sundance::ComplexExpr::imag (  )  const [inline, virtual]

Definition at line 68 of file SundanceComplexExpr.hpp.

References imag_.

Referenced by Sundance::Expr::imag(), toText(), and toXML().

virtual const Expr& Sundance::ComplexExpr::real (  )  const [inline, virtual]

Definition at line 65 of file SundanceComplexExpr.hpp.

References real_.

Referenced by Sundance::Expr::real(), toText(), and toXML().

virtual std::ostream& Sundance::ComplexExpr::toText ( std::ostream &  os,
bool  paren 
) const [inline, virtual]

Write self in text form

Implements Sundance::ExprBase.

Definition at line 71 of file SundanceComplexExpr.hpp.

References imag(), and real().

XMLObject ComplexExpr::toXML (  )  const [virtual]

Implements Sundance::ExprBase.

Definition at line 47 of file SundanceComplexExpr.cpp.

References imag(), and real().

Member Data Documentation

Definition at line 81 of file SundanceComplexExpr.hpp.

Referenced by imag().

Definition at line 80 of file SundanceComplexExpr.hpp.

Referenced by real().

Site Contact