Flow123d
JS_before_hm-2087-gb06a8f5d8
|
#include <table_function.hh>
Classes | |
struct | TableValue |
Store value in one t stamp. More... | |
Public Types | |
typedef Value::return_type | return_type |
Public Member Functions | |
TableFunction () | |
Default constructor. More... | |
void | init_from_input (const Input::Record &rec, const TimeStep &time) |
Initialize actual values of the field given from the given Input::Record rec . More... | |
bool | initialized () |
Return true if TableFunction is initialized (method init_from_input was called). More... | |
const return_type & | value (double t) |
Static Public Member Functions | |
static const Input::Type::Tuple & | get_input_type_val () |
static const Input::Type::Record & | get_input_type () |
Private Member Functions | |
void | interpolated (double coef, unsigned int idx) |
Private Attributes | |
std::vector< struct TableValue > | table_values_ |
Vector of values in all stamps. More... | |
double | last_t_ |
Last t stamp of computed value_ (to prevent repetitive calculation) More... | |
Value | value_ |
Last value, prevents passing large values (vectors) by value. More... | |
return_type | r_value_ |
Definition at line 38 of file table_function.hh.
typedef Value::return_type TableFunction< Value >::return_type |
Definition at line 41 of file table_function.hh.
TableFunction< Value >::TableFunction |
Default constructor.
Definition at line 56 of file table_function.cc.
|
static |
Return Record for one t stamp series initialization of Fields. Allow to use interpolation of Field values defined in one field descriptor.
Definition at line 44 of file table_function.cc.
|
static |
Return record of one t stamp.
Definition at line 26 of file table_function.cc.
void TableFunction< Value >::init_from_input | ( | const Input::Record & | rec, |
const TimeStep & | time | ||
) |
Initialize actual values of the field given from the given Input::Record rec
.
Definition at line 63 of file table_function.cc.
bool TableFunction< Value >::initialized |
Return true if TableFunction is initialized (method init_from_input was called).
Definition at line 86 of file table_function.cc.
|
private |
Definition at line 121 of file table_function.cc.
const TableFunction< Value >::return_type & TableFunction< Value >::value | ( | double | t | ) |
Returns one value in one given point. ResultType can be used to avoid some costly calculation if the result is trivial.
Definition at line 92 of file table_function.cc.
|
private |
Last t stamp of computed value_ (to prevent repetitive calculation)
Definition at line 86 of file table_function.hh.
|
private |
Definition at line 90 of file table_function.hh.
|
private |
Vector of values in all stamps.
Definition at line 83 of file table_function.hh.
|
private |
Last value, prevents passing large values (vectors) by value.
Definition at line 89 of file table_function.hh.