stx::ParseTreeList Class Reference

ParseTreeList contains the root parse nodes of a list of expressions. More...

#include <ExpressionParser.h>

Inheritance diagram for stx::ParseTreeList:

List of all members.

Public Member Functions

std::vector< AnyScalarevaluate (const class SymbolTable &st=BasicSymbolTable()) const
 Function to recursively evaluate all the contained parse trees and retrieve each calculated scalar value for the given symbol table.
std::string toString () const
 Return the list of parsed expression as a string, which can be parsed again.

Protected Types

typedef std::vector< ParseTreeparent_type
 typedef of our parent class

Detailed Description

ParseTreeList contains the root parse nodes of a list of expressions.

It correctly allocates and deletes the parse nodes, because they themselves are not copy-constructable or assignable.

Definition at line 359 of file ExpressionParser.h.


Member Function Documentation

std::vector< AnyScalar > stx::ParseTreeList::evaluate ( const class SymbolTable st = BasicSymbolTable()  )  const

Function to recursively evaluate all the contained parse trees and retrieve each calculated scalar value for the given symbol table.

Definition at line 1380 of file ExpressionParser.cc.

std::string stx::ParseTreeList::toString (  )  const

Return the list of parsed expression as a string, which can be parsed again.

Definition at line 1392 of file ExpressionParser.cc.


The documentation for this class was generated from the following files:
Generated on Tue Jul 17 16:51:58 2007 for STX Expression Parser by  doxygen 1.5.2