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.");
#define EXCEPTION(message)
static const char * EventName[1]
std::vector< unsigned > mNumberOfTables
unsigned GetTableIndex(const std::string &rKeyingVariableName) const
std::vector< double > mTableMaxs
virtual ~AbstractLookupTableCollection()
std::vector< std::string > mKeyingVariableNames
AbstractLookupTableCollection()
std::vector< double > mTableSteps
std::vector< std::string > GetKeyingVariableNames() const
std::vector< double > mTableMins
std::vector< double > mTableStepInverses
std::vector< bool > mNeedsRegeneration
unsigned GetNumberOfTables(const std::string &rKeyingVariableName) const
void SetTableProperties(const std::string &rKeyingVariableName, double min, double step, double max)
void GetTableProperties(const std::string &rKeyingVariableName, double &rMin, double &rStep, double &rMax) const
void SetTimestep(double dt)