Flow123d  last_with_con_2.0.0-4-g42e6930
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 (std::ostream &out_stream, unsigned int idx) override
 Prints idx element of data vector into stream. More...
 
void print_all (std::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...
 
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_
 

Additional Inherited Members

- Public Types inherited from OutputDataBase
enum  NumCompValueType { N_SCALAR = 1, N_VECTOR = 3, N_TENSOR = 9 }
 

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 20 of file output_mesh_data.cc.

Member Function Documentation

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

Access i-th element in the data vector.

Definition at line 50 of file output_mesh_data.cc.

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

Prints idx element of data vector into stream.

Implements OutputDataBase.

Definition at line 25 of file output_mesh_data.cc.

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

Prints the whole data vector into stream.

Implements OutputDataBase.

Definition at line 33 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 42 of file output_mesh_data.cc.

Member Data Documentation

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

Data vector.

Definition at line 39 of file output_mesh_data.hh.


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