18 #ifndef TABLE_FUNCTION_HH_ 19 #define TABLE_FUNCTION_HH_ 29 template <
class Value>
68 return_type
const &
value(
double t);
bool initialized()
Return true if TableFunction is initialized (method init_from_input was called).
static const Input::Type::Record & get_input_type()
Value value_
Last value, prevents passing large values (vectors) by value.
double last_t_
Last t stamp of computed value_ (to prevent repetitive calculation)
void init_from_input(const Input::Record &rec)
Initialize actual values of the field given from the given Input::Record rec.
void interpolated(double coef, unsigned int idx)
TableFunction()
Default constructor.
TableValue(double t, Value val)
static const Input::Type::Tuple & get_input_type_val()
return_type const & value(double t)
Value::return_type return_type
std::vector< struct TableValue > table_values_
Vector of values in all stamps.
Store value in one t stamp.