Flow123d  release_2.2.0-914-gf1a3a4f
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
TableFunction< Value > Class Template Reference

#include <table_function.hh>

Collaboration diagram for TableFunction< Value >:
Collaboration graph
[legend]

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::Tupleget_input_type_val ()
 
static const Input::Type::Recordget_input_type ()
 

Private Member Functions

void interpolated (double coef, unsigned int idx)
 

Private Attributes

std::vector< struct TableValuetable_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_
 

Detailed Description

template<class Value>
class TableFunction< Value >

Definition at line 30 of file table_function.hh.

Member Typedef Documentation

template<class Value>
typedef Value::return_type TableFunction< Value >::return_type

Definition at line 33 of file table_function.hh.

Constructor & Destructor Documentation

template<class Value >
TableFunction< Value >::TableFunction ( )

Default constructor.

Definition at line 48 of file table_function.cc.

Member Function Documentation

template<class Value >
const it::Record & TableFunction< Value >::get_input_type ( )
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.

template<class Value >
const it::Tuple & TableFunction< Value >::get_input_type_val ( )
static

Return record of one t stamp.

Definition at line 25 of file table_function.cc.

template<class Value >
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.

Here is the caller graph for this function:

template<class Value >
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.

Here is the caller graph for this function:

template<class Value >
void TableFunction< Value >::interpolated ( double  coef,
unsigned int  idx 
)
private

Definition at line 113 of file table_function.cc.

Here is the caller graph for this function:

template<class Value >
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.

Here is the caller graph for this function:

Member Data Documentation

template<class Value>
double TableFunction< Value >::last_t_
private

Last t stamp of computed value_ (to prevent repetitive calculation)

Definition at line 78 of file table_function.hh.

template<class Value>
return_type TableFunction< Value >::r_value_
private

Definition at line 82 of file table_function.hh.

template<class Value>
std::vector<struct TableValue> TableFunction< Value >::table_values_
private

Vector of values in all stamps.

Definition at line 75 of file table_function.hh.

template<class Value>
Value TableFunction< Value >::value_
private

Last value, prevents passing large values (vectors) by value.

Definition at line 81 of file table_function.hh.


The documentation for this class was generated from the following files: