Sundance::ListExpr Class Reference

Inheritance diagram for Sundance::ListExpr:

Sundance::ExprBase Playa::Handleable< ExprBase > Sundance::DiscreteFunctionStub Sundance::SymbolicFunc Sundance::UserDefOp Sundance::DiscreteFunction Sundance::TestFunctionStub Sundance::UnknownFunctionStub Sundance::UnknownParameter Sundance::TestFunction Sundance::UnknownFunction

List of all members.

Public Member Functions

 ListExpr ()
 ListExpr (const Array< Expr > &elements)
virtual ~ListExpr ()
const Exprelement (int i) const
void append (const Expr &expr)
Expr flatten () const
Expr join (const Expr &other) const
int size () const
int totalSize () const
virtual std::ostream & toText (std::ostream &os, bool paren) const
virtual XMLObject toXML () const
virtual RCP< ExprBasegetRcp ()

Private Attributes

Array< Exprelements_

Detailed Description

Definition at line 46 of file SundanceListExpr.hpp.

Constructor & Destructor Documentation

ListExpr::ListExpr (  ) 

Definition at line 47 of file SundanceListExpr.cpp.

Referenced by flatten(), and join().

ListExpr::ListExpr ( const Array< Expr > &  elements  ) 

Definition at line 51 of file SundanceListExpr.cpp.

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

Definition at line 56 of file SundanceListExpr.hpp.

Member Function Documentation

void ListExpr::append ( const Expr expr  ) 

const Expr& Sundance::ListExpr::element ( int  i  )  const [inline]

Expr ListExpr::flatten (  )  const

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

Expr ListExpr::join ( const Expr other  )  const

int ListExpr::size (  )  const

int ListExpr::totalSize (  )  const

Definition at line 94 of file SundanceListExpr.cpp.

References elements_, and size().

Referenced by Sundance::Expr::totalSize().

std::ostream & ListExpr::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 106 of file SundanceListExpr.cpp.

References elements_.

XMLObject ListExpr::toXML (  )  const [virtual]

Write in XML

Implements Sundance::ExprBase.

Definition at line 119 of file SundanceListExpr.cpp.

References elements_.

Member Data Documentation

Definition at line 87 of file SundanceListExpr.hpp.

Referenced by append(), element(), join(), size(), totalSize(), toText(), and toXML().

Site Contact