stx::EmptySymbolTable Class Reference

Concrete class used for evaluation of variables and function placeholders within an expression. More...

#include <ExpressionParser.h>

Inheritance diagram for stx::EmptySymbolTable:

stx::SymbolTable List of all members.

Public Types

typedef std::vector< AnyScalarparamlist_type
 STL container type used for parameter lists: a vector.

Public Member Functions

virtual ~EmptySymbolTable ()
 Required for virtual functions.
virtual AnyScalar lookupVariable (const std::string &varname) const
 Return the (constant) value of a variable.
virtual AnyScalar processFunction (const std::string &funcname, const paramlist_type &paramlist) const
 Called when a program-defined function needs to be evaluated within an expression.

Detailed Description

Concrete class used for evaluation of variables and function placeholders within an expression.

This class will always throw an UnknownSymbolException for both lookup functions. It can be used as a base class for symbol tables without the standard functions included in BasicSymbolTable.

Definition at line 138 of file ExpressionParser.h.


Member Function Documentation

AnyScalar stx::EmptySymbolTable::lookupVariable ( const std::string &  varname  )  const [virtual]

Return the (constant) value of a variable.

In this dummy implementation no variables are defined, it always throws an UnknownSymbolException.

Implements stx::SymbolTable.

Definition at line 1418 of file ExpressionParser.cc.

AnyScalar stx::EmptySymbolTable::processFunction ( const std::string &  funcname,
const paramlist_type paramlist 
) const [virtual]

Called when a program-defined function needs to be evaluated within an expression.

In this dummy implementation no functions are defined, it always throws an UnknownSymbolException.

Implements stx::SymbolTable.

Definition at line 1423 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