#include <ExpressionParser.h>
Inheritance diagram for stx::EmptySymbolTable:
Public Types | |
typedef std::vector< AnyScalar > | paramlist_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 ¶mlist) const |
Called when a program-defined function needs to be evaluated 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.
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.