Flow123d
release_2.2.0-914-gf1a3a4f
|
#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) |
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... | |
return_type const & | 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 30 of file table_function.hh.
typedef Value::return_type TableFunction< Value >::return_type |
Definition at line 33 of file table_function.hh.
TableFunction< Value >::TableFunction | ( | ) |
Default constructor.
Definition at line 48 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 36 of file table_function.cc.
|
static |
Return record of one t stamp.
Definition at line 25 of file table_function.cc.
void TableFunction< Value >::init_from_input | ( | const Input::Record & | rec | ) |
Initialize actual values of the field given from the given Input::Record rec
.
Definition at line 55 of file table_function.cc.
bool TableFunction< Value >::initialized | ( | ) |
Return true if TableFunction is initialized (method init_from_input was called).
Definition at line 78 of file table_function.cc.
|
private |
TableFunction< Value >::return_type const & 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 84 of file table_function.cc.
|
private |
Last t stamp of computed value_ (to prevent repetitive calculation)
Definition at line 78 of file table_function.hh.
|
private |
Definition at line 82 of file table_function.hh.
|
private |
Vector of values in all stamps.
Definition at line 75 of file table_function.hh.
|
private |
Last value, prevents passing large values (vectors) by value.
Definition at line 81 of file table_function.hh.