Flow123d  last_with_con_2.0.0-4-g42e6930
Public Types | Public Member Functions | Public Attributes | 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 }
 

Public Member Functions

virtual ~OutputDataBase ()
 
virtual void print (ostream &out_stream, unsigned int idx)=0
 
virtual void print_all (ostream &out_stream)=0
 
virtual void print_all_yaml (ostream &out_stream, unsigned int precision)=0
 

Public Attributes

std::string output_field_name
 
std::string field_name
 
UnitSI field_units
 
unsigned int n_values
 
NumCompValueType n_elem_
 

Detailed Description

Common parent class for templated OutputData.

Provides virtual method for output of stored data.

Definition at line 36 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 42 of file output_data_base.hh.

Constructor & Destructor Documentation

virtual OutputDataBase::~OutputDataBase ( )
inlinevirtual

Destructor of OutputDataBase

Definition at line 51 of file output_data_base.hh.

Member Function Documentation

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

Print one value at given index

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

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

Print all data at once stored in database

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 DummyOutputData, OutputData< Value >, and MeshData< T >.

Member Data Documentation

std::string OutputDataBase::field_name

Definition at line 73 of file output_data_base.hh.

UnitSI OutputDataBase::field_units

Definition at line 74 of file output_data_base.hh.

NumCompValueType OutputDataBase::n_elem_

Number of data elements per data value.

Definition at line 84 of file output_data_base.hh.

unsigned int OutputDataBase::n_values

Number of data values.

Definition at line 79 of file output_data_base.hh.

std::string OutputDataBase::output_field_name

Data copied from Field.

Definition at line 72 of file output_data_base.hh.


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