NIREP

NIREPFunctionParseEngine Class Reference

#include <NIREPFunctionParseEngine.h>

Collaboration diagram for NIREPFunctionParseEngine:

List of all members.

Public Member Functions

void AddCallback (std::string fn, std::string(*func)(std::vector< std::string >))
std::string CallBackHandler ()
bool CheckMismatchParenthesis (std::string str)
bool CheckUndefinedFunction ()
void Delete ()
std::string DispatchCallBack (std::string func, std::vector< std::string > para)
std::string endHandler (std::string str, std::string::size_type loc)
std::string Evaluate ()
 method for the widget to request an image
void EvaluateString (std::string str)
std::string functionHandler (std::string str, std::string::size_type loc)
 NIREPFunctionParseEngine (void)
std::string operatorHandler (std::string str, std::string::size_type loc)
std::string removeSpaceTabNewLineReturn (std::string str)
void SetString (std::string str)
 ~NIREPFunctionParseEngine (void)

Public Attributes

std::map< std::string,
std::string > 
cache
Nodecurrent
std::vector< func_infofunc_list
std::vector< Node * > lst
Nodenode
Noderoot
std::string str
int tablecnt

Detailed Description

Definition at line 23 of file NIREPFunctionParseEngine.h.


Constructor & Destructor Documentation

NIREPFunctionParseEngine::NIREPFunctionParseEngine ( void  )

Definition at line 4 of file NIREPFunctionParseEngine.cxx.

NIREPFunctionParseEngine::~NIREPFunctionParseEngine ( void  )

Definition at line 8 of file NIREPFunctionParseEngine.cxx.


Member Function Documentation

void NIREPFunctionParseEngine::AddCallback ( std::string  fn,
std::string(*)(std::vector< std::string >)  func 
)

Definition at line 223 of file NIREPFunctionParseEngine.cxx.

std::string NIREPFunctionParseEngine::CallBackHandler ( )

Definition at line 178 of file NIREPFunctionParseEngine.cxx.

bool NIREPFunctionParseEngine::CheckMismatchParenthesis ( std::string  str)

Definition at line 95 of file NIREPFunctionParseEngine.cxx.

bool NIREPFunctionParseEngine::CheckUndefinedFunction ( )

Definition at line 111 of file NIREPFunctionParseEngine.cxx.

void NIREPFunctionParseEngine::Delete ( )

Definition at line 262 of file NIREPFunctionParseEngine.cxx.

std::string NIREPFunctionParseEngine::DispatchCallBack ( std::string  func,
std::vector< std::string >  para 
)

Definition at line 156 of file NIREPFunctionParseEngine.cxx.

std::string NIREPFunctionParseEngine::endHandler ( std::string  str,
std::string::size_type  loc 
)

Definition at line 56 of file NIREPFunctionParseEngine.cxx.

std::string NIREPFunctionParseEngine::Evaluate ( )

method for the widget to request an image

Parameters:
commandstd::string containing the abbreviation or expression to be retrieved (ex: _A3 or diff(_A1, _A2))

Definition at line 235 of file NIREPFunctionParseEngine.cxx.

void NIREPFunctionParseEngine::EvaluateString ( std::string  str)

Definition at line 140 of file NIREPFunctionParseEngine.cxx.

std::string NIREPFunctionParseEngine::functionHandler ( std::string  str,
std::string::size_type  loc 
)

Definition at line 12 of file NIREPFunctionParseEngine.cxx.

std::string NIREPFunctionParseEngine::operatorHandler ( std::string  str,
std::string::size_type  loc 
)

Definition at line 31 of file NIREPFunctionParseEngine.cxx.

std::string NIREPFunctionParseEngine::removeSpaceTabNewLineReturn ( std::string  str)

Definition at line 83 of file NIREPFunctionParseEngine.cxx.

void NIREPFunctionParseEngine::SetString ( std::string  str)

Definition at line 231 of file NIREPFunctionParseEngine.cxx.


Member Data Documentation

std::map<std::string,std::string> NIREPFunctionParseEngine::cache

Definition at line 35 of file NIREPFunctionParseEngine.h.

Definition at line 30 of file NIREPFunctionParseEngine.h.

Definition at line 33 of file NIREPFunctionParseEngine.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines