#include <NTUPUnitInterpreter.h>
|
| virtual const std::map< std::string, double > & | unitMap () const |
Definition at line 18 of file NTUPUnitInterpreter.h.
◆ NTUPUnitInterpreter()
| ExpressionParsing::NTUPUnitInterpreter::NTUPUnitInterpreter |
( |
| ) |
|
◆ ~NTUPUnitInterpreter()
| ExpressionParsing::NTUPUnitInterpreter::~NTUPUnitInterpreter |
( |
| ) |
|
|
virtual |
◆ isKnownUnit()
| bool ExpressionParsing::IUnitInterpreter::isKnownUnit |
( |
const std::string & | unitname | ) |
const |
|
inherited |
Definition at line 17 of file IUnitInterpreter.cxx.
18 {
20 }
virtual const std::map< std::string, double > & unitMap() const =0
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
◆ unitMap()
| const std::map< std::string, double > & ExpressionParsing::NTUPUnitInterpreter::unitMap |
( |
| ) |
const |
|
privatevirtual |
◆ unitValue()
| double ExpressionParsing::IUnitInterpreter::unitValue |
( |
const std::string & | unitname | ) |
const |
|
inherited |
Definition at line 22 of file IUnitInterpreter.cxx.
23 {
24 typedef std::map<std::string, double>::const_iterator Iterator;
25 const std::map<std::string, double> &theMap =
unitMap();
26 for (Iterator it = theMap.begin(); it != theMap.end(); ++it) {
27 if (
it->first == unitname) {
29 }
30 }
31
32 throw std::runtime_error("Trying to access unknown unit: "+unitname);
33 }
◆ m_unitStringToValue
| std::map<std::string, double> ExpressionParsing::NTUPUnitInterpreter::m_unitStringToValue |
|
private |
The documentation for this class was generated from the following files: