Flow123d
last_with_con_2.0.0-4-g42e6930
|
#include <output_mesh.hh>
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 } |
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.
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.
Definition at line 20 of file output_mesh_data.cc.
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.
|
overridevirtual |
Prints idx
element of data vector into stream.
Implements OutputDataBase.
Definition at line 25 of file output_mesh_data.cc.
|
overridevirtual |
Prints the whole data vector into stream.
Implements OutputDataBase.
Definition at line 33 of file output_mesh_data.cc.
|
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.
std::vector<T> MeshData< T >::data_ |
Data vector.
Definition at line 39 of file output_mesh_data.hh.