stx::SymbolTable Class Reference

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

#include <ExpressionParser.h>

Inheritance diagram for stx::SymbolTable:

stx::BasicSymbolTable stx::EmptySymbolTable List of all members.

Public Types

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

Public Member Functions

virtual ~SymbolTable ()
 *** SymbolTable, EmptySymbolTable and BasicSymbolTable implementation
virtual AnyScalar lookupVariable (const std::string &varname) const=0
 Return the (constant) value of a variable.
virtual AnyScalar processFunction (const std::string &funcname, const paramlist_type &paramlist) const=0
 Called when a program-defined function needs to be evaluated within an expression.

Detailed Description

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

If you wish some standard mathematic function, then derive your SymbolTable class from BasicSymbolTable instead of directly from this one.

Definition at line 116 of file ExpressionParser.h.


Member Function Documentation

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

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

Implemented in stx::EmptySymbolTable, and stx::BasicSymbolTable.


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