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