18 #ifndef TABLE_FUNCTION_HH_ 19 #define TABLE_FUNCTION_HH_ 36 template <
class Value>
45 : t_(t), value_(r_value_), r_value_(val) {}
75 return_type
const &
value(
double t);
79 void interpolated(
double coef,
unsigned int idx);
Value value_
Last value, prevents passing large values (vectors) by value.
double last_t_
Last t stamp of computed value_ (to prevent repetitive calculation)
static constexpr bool value
TableValue(double t, Value val)
Value::return_type return_type
std::vector< struct TableValue > table_values_
Vector of values in all stamps.
Store value in one t stamp.