8 #ifndef SRC_IO_OUTPUT_MESH_DATA_HH_ 9 #define SRC_IO_OUTPUT_MESH_DATA_HH_ 27 void print(std::ostream& out_stream,
unsigned int idx)
override;
30 void print_all(std::ostream& out_stream)
override;
33 void print_all_yaml(std::ostream& out_stream,
unsigned int precision)
override;
void print_all(std::ostream &out_stream) override
Prints the whole data vector into stream.
Common parent class for templated OutputData.
MeshData(std::string name, NumCompValueType n_elem=N_SCALAR)
Constructor. name is the possible name of the output vector.
T & operator[](unsigned int i)
Access i-th element in the data vector.
void print(std::ostream &out_stream, unsigned int idx) override
Prints idx element of data vector into stream.
void print_all_yaml(std::ostream &out_stream, unsigned int precision) override
Prints the whole data vector into stream. UNSUPPORTED.
std::vector< T > data_
Data vector.