8 #ifndef SRC_IO_OUTPUT_MESH_DATA_HH_ 9 #define SRC_IO_OUTPUT_MESH_DATA_HH_ 15 #include <type_traits> 28 void print_ascii(std::ostream& out_stream,
unsigned int idx)
override;
36 void print_binary_all(ostream &out_stream,
bool print_data_size =
true)
override;
39 void print_all_yaml(std::ostream& out_stream,
unsigned int precision)
override;
Common parent class for templated OutputData.
void print_ascii(std::ostream &out_stream, unsigned int idx) override
Prints idx element of data vector into stream.
void print_ascii_all(std::ostream &out_stream) override
Prints the whole data vector into stream.
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_all_yaml(std::ostream &out_stream, unsigned int precision) override
Prints the whole data vector into stream. UNSUPPORTED.
std::vector< T > data_
Data vector.
void print_binary_all(ostream &out_stream, bool print_data_size=true) override
Prints the whole data vector into stream.
void get_min_max_range(double &min, double &max) override