Flow123d  last_with_con_2.0.0-663-gd0e2296
Public Member Functions | Public Attributes | List of all members
MeshData< T > Class Template Reference

#include <output_mesh.hh>

Inheritance diagram for MeshData< T >:
Inheritance graph
[legend]
Collaboration diagram for MeshData< T >:
Collaboration graph
[legend]

Public Member Functions

 MeshData (std::string name, NumCompValueType n_elem=N_SCALAR)
 Constructor. name is the possible name of the output vector. More...
 
 ~MeshData () override
 
void print_ascii (std::ostream &out_stream, unsigned int idx) override
 Prints idx element of data vector into stream. More...
 
void print_ascii_all (std::ostream &out_stream) override
 Prints the whole data vector into stream. More...
 
void print_binary_all (ostream &out_stream) override
 Prints the whole data vector into stream. More...
 
void print_all_yaml (std::ostream &out_stream, unsigned int precision) override
 Prints the whole data vector into stream. UNSUPPORTED. More...
 
void get_min_max_range (double &min, double &max) override
 
T & operator[] (unsigned int i)
 Access i-th element in the data vector. More...
 
- Public Member Functions inherited from OutputDataBase
virtual ~OutputDataBase ()
 

Public Attributes

std::vector< T > data_
 Data vector. More...
 
- Public Attributes inherited from OutputDataBase
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...
 

Additional Inherited Members

- Public Types inherited from OutputDataBase
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...
 
- Protected Member Functions inherited from OutputDataBase
template<class T >
void set_vtk_type ()
 

Detailed Description

template<typename T>
class MeshData< T >

Class representing data vector of geometry and topology information (especially for VTK). Filling the vector is the users responsibility.

Definition at line 35 of file output_mesh.hh.

Constructor & Destructor Documentation

template<class T >
MeshData< T >::MeshData ( std::string  name,
NumCompValueType  n_elem = N_SCALAR 
)

Constructor. name is the possible name of the output vector.

Definition at line 13 of file output_mesh_data.cc.

template<class T >
MeshData< T >::~MeshData ( )
override

Definition at line 21 of file output_mesh_data.cc.

Member Function Documentation

template<class T >
void MeshData< T >::get_min_max_range ( double &  min,
double &  max 
)
overridevirtual

Find minimal and maximal range of stored data

Implements OutputDataBase.

Definition at line 63 of file output_mesh_data.cc.

template<class T >
T & MeshData< T >::operator[] ( unsigned int  i)

Access i-th element in the data vector.

Definition at line 76 of file output_mesh_data.cc.

template<class T >
void MeshData< T >::print_all_yaml ( std::ostream &  out_stream,
unsigned int  precision 
)
overridevirtual

Prints the whole data vector into stream. UNSUPPORTED.

Prints the whole data vector into stream.

Implements OutputDataBase.

Definition at line 56 of file output_mesh_data.cc.

template<class T >
void MeshData< T >::print_ascii ( std::ostream &  out_stream,
unsigned int  idx 
)
overridevirtual

Prints idx element of data vector into stream.

Implements OutputDataBase.

Definition at line 26 of file output_mesh_data.cc.

template<class T >
void MeshData< T >::print_ascii_all ( std::ostream &  out_stream)
overridevirtual

Prints the whole data vector into stream.

Implements OutputDataBase.

Definition at line 34 of file output_mesh_data.cc.

template<class T >
void MeshData< T >::print_binary_all ( ostream &  out_stream)
overridevirtual

Prints the whole data vector into stream.

Prints the whole data vector into stream in appended binary format.

Implements OutputDataBase.

Definition at line 43 of file output_mesh_data.cc.

Member Data Documentation

template<typename T >
std::vector<T> MeshData< T >::data_

Data vector.

Definition at line 50 of file output_mesh_data.hh.


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