Loading...
Searching...
No Matches
dgf Namespace Reference
Functions | |
template<typename T> | |
unsigned int | readData (std::ifstream &file_handle, int &N, std::vector< T > &Data) |
template<typename T> | |
unsigned int | readSimplexData (std::ifstream &file_handle, int &n, std::vector< T > &data, const std::string &data_name) |
template<typename T> | |
unsigned int | readVertexData (std::ifstream &file_handle, int &n, std::vector< T > &data, const std::string &data_name) |
template<typename T> | |
unsigned int | writeData (std::ofstream &file_handle, int &N, std::vector< T > &Data) |
template<typename T> | |
unsigned int | writeSimplexData (std::ofstream &file_handle, int &N, std::vector< T > &Data, const std::string &Data_name) |
template<typename T> | |
unsigned int | writeVertexData (std::ofstream &file_handle, int &N, std::vector< T > &Data, const std::string &Data_name) |
Detailed Description
/}
Function Documentation
◆ readData()
template<typename T>
unsigned int dgf::readData | ( | std::ifstream & | file_handle, |
int & | N, | ||
std::vector< T > & | Data ) |
Read data block from dgf file.
- Parameters
-
[in,out] file_handle input stream from dgf file [in,out] N number data entries loaded from the data set [in,out] Data on output stores the data loaded from the data block
- Returns
- error flag tor I/O errors err = 0: no error(s) encountered err = 1: failed to load data from dgf file
◆ readSimplexData()
template<typename T>
unsigned int dgf::readSimplexData | ( | std::ifstream & | file_handle, |
int & | n, | ||
std::vector< T > & | data, | ||
const std::string & | data_name ) |
Read cell data from dgf file.
- Parameters
-
[in,out] file_handle input stream from dgf file [in,out] n number data entries loaded from the data set [in,out] data on output stores the data loaded from the data block [in] data_name name of the cell data set to be loaded. If no name is specified (i.e. data_name = "") the first cell data set encountered in the dgf file is returned. If no cell data set matching the input name is found, no data is loaded from the dgf file.
- Returns
- error flag tor I/O errors err = 0: no error(s) encountered err = 1: failed to load data from dgf file
◆ readVertexData()
template<typename T>
unsigned int dgf::readVertexData | ( | std::ifstream & | file_handle, |
int & | n, | ||
std::vector< T > & | data, | ||
const std::string & | data_name ) |
Read vertex data from dgf file.
- Parameters
-
[in,out] file_handle input stream from dgf file [in,out] n number data entries loaded from the data set [in,out] data on output stores the data loaded from the data block [in] data_name name of the vertex data set to be loaded. If no name is specified (i.e. data_name = "") the first vertex data set encountered in the dgf file is returned. If no vertex data set matching the input name is found, no data is loaded from the dgf file.
- Returns
- error flag tor I/O errors err = 0: no error(s) encountered err = 1: failed to load data from dgf file
◆ writeData()
template<typename T>
unsigned int dgf::writeData | ( | std::ofstream & | file_handle, |
int & | N, | ||
std::vector< T > & | Data ) |
Write data block to dgf file.
- Parameters
-
[in,out] file_handle output stream to dgf file [in,out] N number data entries to be written to file [in,out] Data container storing the data
- Returns
- error flag tor I/O errors err = 0: no error(s) encountered err = 1: failed to write data to dgf file
◆ writeSimplexData()
template<typename T>
unsigned int dgf::writeSimplexData | ( | std::ofstream & | file_handle, |
int & | N, | ||
std::vector< T > & | Data, | ||
const std::string & | Data_name ) |
Write cell data to dgf file.
- Parameters
-
[in,out] file_handle output stream to dgf file [in,out] N number data entries to be written [in,out] Data container storing the data [in] Data_name name of the cell data set
- Returns
- error flag tor I/O errors err = 0: no error(s) encountered err = 1: failed to load data from dgf file
◆ writeVertexData()
template<typename T>
unsigned int dgf::writeVertexData | ( | std::ofstream & | file_handle, |
int & | N, | ||
std::vector< T > & | Data, | ||
const std::string & | Data_name ) |
Write vertex data to dgf file.
- Parameters
-
[in,out] file_handle output stream to dgf file [in,out] N number data entries to be written [in,out] Data container storing the data [in] Data_name name of the vertex data set
- Returns
- error flag tor I/O errors err = 0: no error(s) encountered err = 1: failed to load data from dgf file
