36 #include "AbstractLookupTableCollection.hpp" 66 unsigned num_steps = (
unsigned) ((max-min)/step+0.5);
68 if (fabs(max - min - num_steps*step) > 1e-10)
70 EXCEPTION(
"Table step size does not divide range between table limits.");
105 EXCEPTION(
"Lookup table keying variable '" + rKeyingVariableName +
"' does not exist.");
unsigned GetTableIndex(const std::string &rKeyingVariableName) const
static const char * EventName[1]
std::vector< bool > mNeedsRegeneration
std::vector< double > mTableStepInverses
#define EXCEPTION(message)
void GetTableProperties(const std::string &rKeyingVariableName, double &rMin, double &rStep, double &rMax) const
unsigned GetNumberOfTables(const std::string &rKeyingVariableName) const
virtual ~AbstractLookupTableCollection()
void SetTimestep(double dt)
std::vector< double > mTableMins
AbstractLookupTableCollection()
std::vector< double > mTableSteps
std::vector< std::string > mKeyingVariableNames
std::vector< double > mTableMaxs
std::vector< unsigned > mNumberOfTables
std::vector< std::string > GetKeyingVariableNames() const
void SetTableProperties(const std::string &rKeyingVariableName, double min, double step, double max)