
Public Member Functions | |
| ListExpr () | |
| ListExpr (const Array< Expr > &elements) | |
| virtual | ~ListExpr () | 
| const Expr & | element (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< ExprBase > | getRcp () | 
Private Attributes | |
| Array< Expr > | elements_ | 
Definition at line 46 of file SundanceListExpr.hpp.
| ListExpr::ListExpr | ( | ) | 
| 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.
| void ListExpr::append | ( | const Expr & | expr | ) | 
Definition at line 55 of file SundanceListExpr.cpp.
References appendToListTimer(), and elements_.
Referenced by Sundance::Expr::append(), Sundance::DiscreteFunctionStub::DiscreteFunctionStub(), Sundance::DiscreteFunctionStub::initTensor(), Sundance::DiscreteFunctionStub::initTensorSpectral(), Sundance::TestFunctionStub::TestFunctionStub(), Sundance::UnknownFunctionStub::UnknownFunctionStub(), Sundance::UnknownParameter::UnknownParameter(), and Sundance::UserDefOp::UserDefOp().
| const Expr& Sundance::ListExpr::element | ( | int | i | ) |  const [inline] | 
        
Definition at line 59 of file SundanceListExpr.hpp.
References elements_.
Referenced by flatten(), Sundance::Expr::operator[](), and Sundance::SymbolicFunc::substituteZero().
| Expr ListExpr::flatten | ( | ) | const | 
Definition at line 61 of file SundanceListExpr.cpp.
References Sundance::Expr::append(), element(), Sundance::Expr::flatten(), ListExpr(), Sundance::Expr::size(), and size().
Referenced by Sundance::Expr::flatten().
| virtual RCP<ExprBase> Sundance::ListExpr::getRcp | ( | ) |  [inline, virtual] | 
        
Implements Playa::Handleable< ExprBase >.
Reimplemented in Sundance::DiscreteFunctionStub, Sundance::TestFunctionStub, Sundance::UnknownFunctionStub, Sundance::UnknownParameter, and Sundance::UserDefOp.
Definition at line 84 of file SundanceListExpr.hpp.
Definition at line 77 of file SundanceListExpr.cpp.
References Sundance::Expr::append(), elements_, ListExpr(), and Sundance::Expr::size().
| int ListExpr::size | ( | ) | const | 
Definition at line 89 of file SundanceListExpr.cpp.
References elements_.
Referenced by flatten(), Sundance::Expr::size(), Sundance::SymbolicFunc::substituteZero(), and totalSize().
| 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_.
Array<Expr> Sundance::ListExpr::elements_ [private]           | 
        
Definition at line 87 of file SundanceListExpr.hpp.
Referenced by append(), element(), join(), size(), totalSize(), toText(), and toXML().