|
Bridge++
Version 1.5.4
|
#include <evalexpr_symbol.h>
Classes | |
| struct | SymbolRecord |
Public Member Functions | |
| bool | find_symbol (const std::string &name) |
| bool | put_symbol (const std::string &name, const double value) |
| bool | put_symbol (const std::string &name, const function_t tptr) |
| double | get_symbol_value (const std::string &name) const |
| function_t | get_symbol_function (const std::string &name) const |
| void | print () const |
Private Types | |
| enum | ValueType { VARIABLE, FUNCTION } |
| typedef std::map< std::string, SymbolRecord > | SymbolMap_t |
Private Attributes | |
| SymbolMap_t | table |
Definition at line 23 of file evalexpr_symbol.h.
|
private |
Definition at line 40 of file evalexpr_symbol.h.
|
private |
| Enumerator | |
|---|---|
| VARIABLE | |
| FUNCTION | |
Definition at line 27 of file evalexpr_symbol.h.
| bool SymbolTable::find_symbol | ( | const std::string & | name | ) |
Definition at line 19 of file evalexpr_symbol.cpp.
| function_t SymbolTable::get_symbol_function | ( | const std::string & | name | ) | const |
Definition at line 72 of file evalexpr_symbol.cpp.
| double SymbolTable::get_symbol_value | ( | const std::string & | name | ) | const |
Definition at line 58 of file evalexpr_symbol.cpp.
| void SymbolTable::print | ( | ) | const |
Definition at line 86 of file evalexpr_symbol.cpp.
| bool SymbolTable::put_symbol | ( | const std::string & | name, |
| const double | value | ||
| ) |
Definition at line 26 of file evalexpr_symbol.cpp.
| bool SymbolTable::put_symbol | ( | const std::string & | name, |
| const function_t | tptr | ||
| ) |
Definition at line 42 of file evalexpr_symbol.cpp.
|
private |
Definition at line 42 of file evalexpr_symbol.h.