Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SymbolTable Class Reference

#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
 

Detailed Description

Definition at line 23 of file evalexpr_symbol.h.

Member Typedef Documentation

typedef std::map<std::string, SymbolRecord> SymbolTable::SymbolMap_t
private

Definition at line 40 of file evalexpr_symbol.h.

Member Enumeration Documentation

enum SymbolTable::ValueType
private
Enumerator
VARIABLE 
FUNCTION 

Definition at line 27 of file evalexpr_symbol.h.

Member Function Documentation

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.

Member Data Documentation

SymbolMap_t SymbolTable::table
private

Definition at line 42 of file evalexpr_symbol.h.


The documentation for this class was generated from the following files: