Flow123d
jenkins-Flow123d-windows32-release-multijob-51
|
This class is used for storing data that are copied from field. More...
#include <output.h>
Public Types | |
typedef Value::element_type | ElemType |
Public Types inherited from OutputDataBase | |
enum | ValueType { scalar =1, vector =3, tensor =9 } |
Public Member Functions | |
OutputData (const FieldCommon &field, unsigned int size) | |
Constructor of templated OutputData. More... | |
~OutputData () | |
Destructor of OutputData. More... | |
void | print (ostream &out_stream, unsigned int idx) override |
void | store_value (unsigned int idx, const Value &value) |
void | add (unsigned int idx, const Value &value) |
void | zero (unsigned int idx) |
void | normalize (unsigned int idx, unsigned int divisor) |
Public Member Functions inherited from OutputDataBase | |
virtual | ~OutputDataBase () |
Private Member Functions | |
template<class Func > | |
void | operate (unsigned int idx, const Value &val, const Func &func) |
Private Attributes | |
ElemType * | data_ |
Value::return_type | aux |
auxiliary value More... | |
Value | val_aux |
unsigned int | n_rows |
unsigned int | n_cols |
Additional Inherited Members | |
Public Attributes inherited from OutputDataBase | |
std::string | output_field_name |
std::string | field_name |
UnitSI | field_units |
unsigned int | n_values |
ValueType | n_elem_ |
This class is used for storing data that are copied from field.
typedef Value::element_type OutputData< Value >::ElemType |
|
inline |
Constructor of templated OutputData.
|
inline |
Destructor of OutputData.
|
inline |
|
inline |
|
inlineprivate |
|
inlineoverridevirtual |
Output data element on given index idx
. Method for writing data to output stream
TODO: should at least output whole output value at once, since storage format should be hidden. TODO: should output whole array at once, otherwise this could be performance bottleneck. TODO: indicate if the tensor data are output in column-first or raw-first order and possibly implement transposition. Set such property for individual file formats. Class OutputData stores always in raw-first order.
Implements OutputDataBase.
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |