Flow123d
release_2.1.0-87-gfbc1563
|
#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 47 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 35 of file table_function.cc.
|
static |
Return record of one t stamp.
Definition at line 24 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 54 of file table_function.cc.
bool TableFunction< Value >::initialized | ( | ) |
Return true if TableFunction is initialized (method init_from_input was called).
Definition at line 77 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 83 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.