List of all members | Classes | Public Member Functions | Public Attributes | Private Attributes
utl::UnitGrammar Struct Reference

#include <UnitGrammar.h>

Inheritance diagram for utl::UnitGrammar:
Inheritance graph
[legend]

Classes

struct  definition
 Boost spirit definition template (Read Boost Spirit documentation) More...
 
struct  SAssignmentClosure
 Assignment closure set. More...
 
struct  SStringClosure
 String closure set. More...
 
struct  SValueClosure
 Value closure set. More...
 

Public Member Functions

 ERROR (err)
 
 if (it!=fSymbols->end())
 
void SaveResult (const double val) const
 
 UnitGrammar (double &result, const utl::SymbolTable &symbols)
 
 UnitGrammar (double &result, const utl::SymbolTable &symbols, utl::SymbolTable &)
 
throw XMLParseException (err)
 

Public Attributes

double const
 Function which searches in the symbol table. More...
 
std::string err
 
 return
 

Private Attributes

double * fResult
 
const SymbolTablefSymbols
 

Detailed Description

Definition at line 51 of file UnitGrammar.h.

Constructor & Destructor Documentation

utl::UnitGrammar::UnitGrammar ( double &  result,
const utl::SymbolTable symbols 
)
inline

Definition at line 53 of file UnitGrammar.h.

utl::UnitGrammar::UnitGrammar ( double &  result,
const utl::SymbolTable symbols,
utl::SymbolTable  
)
inline

Definition at line 57 of file UnitGrammar.h.

References err, ERROR(), and XMLParseException().

Member Function Documentation

utl::UnitGrammar::ERROR ( err  )

Referenced by UnitGrammar().

utl::UnitGrammar::if ( it!  = fSymbols->end())
inline

Definition at line 149 of file UnitGrammar.h.

void utl::UnitGrammar::SaveResult ( const double  val) const
inline

Definition at line 141 of file UnitGrammar.h.

References fResult.

Referenced by utl::UnitGrammar::definition< ScannerT >::definition().

throw utl::UnitGrammar::XMLParseException ( err  )

Referenced by UnitGrammar().

Member Data Documentation

double utl::UnitGrammar::const
Initial value:
{
const SymbolTable::const_iterator it = fSymbols->find(symbol)

Function which searches in the symbol table.

Definition at line 147 of file UnitGrammar.h.

std::string utl::UnitGrammar::err
Initial value:
=
"The symbol '" + symbol + "' "
"is not defined during the evaluaion with the UnitGrammer\n"

Definition at line 153 of file UnitGrammar.h.

Referenced by UnitGrammar().

double* utl::UnitGrammar::fResult
mutableprivate

Definition at line 163 of file UnitGrammar.h.

Referenced by SaveResult().

const SymbolTable* utl::UnitGrammar::fSymbols
private

Definition at line 162 of file UnitGrammar.h.

utl::UnitGrammar::return

Definition at line 158 of file UnitGrammar.h.


The documentation for this struct was generated from the following file:

, generated on Tue Sep 26 2023.