Flow123d  release_2.1.0-87-gfbc1563
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
OutputDataBase Class Referenceabstract

Common parent class for templated OutputData. More...

#include <output_data_base.hh>

Inheritance diagram for OutputDataBase:
Inheritance graph
[legend]
Collaboration diagram for OutputDataBase:
Collaboration graph
[legend]

Public Types

enum  NumCompValueType { N_SCALAR = 1, N_VECTOR = 3, N_TENSOR = 9 }
 
enum  VTKValueType {
  VTK_INT8, VTK_UINT8, VTK_INT16, VTK_UINT16,
  VTK_INT32, VTK_UINT32, VTK_FLOAT32, VTK_FLOAT64
}
 Types of VTK value. More...
 

Public Member Functions

virtual ~OutputDataBase ()
 
virtual void print_ascii (ostream &out_stream, unsigned int idx)=0
 
virtual void print_ascii_all (ostream &out_stream)=0
 
virtual void print_binary_all (ostream &out_stream, bool print_data_size=true)=0
 
virtual void print_all_yaml (ostream &out_stream, unsigned int precision)=0
 
virtual void get_min_max_range (double &min, double &max)=0
 

Public Attributes

std::string output_field_name
 
std::string field_name
 
UnitSI field_units
 
unsigned int n_values
 
NumCompValueType n_elem_
 
VTKValueType vtk_type_
 Type of stored data. More...
 

Protected Member Functions

template<class T >
void set_vtk_type ()
 

Detailed Description

Common parent class for templated OutputData.

Provides virtual method for output of stored data.

Definition at line 38 of file output_data_base.hh.

Member Enumeration Documentation

Number of components of element data stored in the database.

Enumerator
N_SCALAR 
N_VECTOR 
N_TENSOR 

Definition at line 44 of file output_data_base.hh.

Types of VTK value.

Enumerator
VTK_INT8 
VTK_UINT8 
VTK_INT16 
VTK_UINT16 
VTK_INT32 
VTK_UINT32 
VTK_FLOAT32 
VTK_FLOAT64 

Definition at line 51 of file output_data_base.hh.

Constructor & Destructor Documentation

virtual OutputDataBase::~OutputDataBase ( )
inlinevirtual

Destructor of OutputDataBase

Definition at line 58 of file output_data_base.hh.

Member Function Documentation

virtual void OutputDataBase::get_min_max_range ( double &  min,
double &  max 
)
pure virtual

Find minimal and maximal range of stored data

Implemented in OutputData< Value >, DummyOutputData, and MeshData< T >.

virtual void OutputDataBase::print_all_yaml ( ostream &  out_stream,
unsigned int  precision 
)
pure virtual

Print stored values in the YAML format (using JSON like arrays). Used for output of observe values.

Implemented in OutputData< Value >, DummyOutputData, and MeshData< T >.

virtual void OutputDataBase::print_ascii ( ostream &  out_stream,
unsigned int  idx 
)
pure virtual

Print one value at given index in ascii format

Implemented in DummyOutputData, OutputData< Value >, and MeshData< T >.

virtual void OutputDataBase::print_ascii_all ( ostream &  out_stream)
pure virtual

Print all data in ascii format at once stored in database

Implemented in OutputData< Value >, DummyOutputData, and MeshData< T >.

virtual void OutputDataBase::print_binary_all ( ostream &  out_stream,
bool  print_data_size = true 
)
pure virtual

Print all data in binary format at once stored in database

Implemented in OutputData< Value >, DummyOutputData, and MeshData< T >.

template<class T >
void OutputDataBase::set_vtk_type ( )
inlineprotected

Definition at line 108 of file output_data_base.hh.

Member Data Documentation

std::string OutputDataBase::field_name

Definition at line 90 of file output_data_base.hh.

UnitSI OutputDataBase::field_units

Definition at line 91 of file output_data_base.hh.

NumCompValueType OutputDataBase::n_elem_

Number of data elements per data value.

Definition at line 101 of file output_data_base.hh.

unsigned int OutputDataBase::n_values

Number of data values.

Definition at line 96 of file output_data_base.hh.

std::string OutputDataBase::output_field_name

Data copied from Field.

Definition at line 89 of file output_data_base.hh.

VTKValueType OutputDataBase::vtk_type_

Type of stored data.

Definition at line 104 of file output_data_base.hh.


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