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) |
/}
unsigned int dgf::readData | ( | std::ifstream & | file_handle, |
int & | N, | ||
std::vector< T > & | Data ) |
Read data block from dgf file.
[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 |
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.
[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. |
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.
[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. |
unsigned int dgf::writeData | ( | std::ofstream & | file_handle, |
int & | N, | ||
std::vector< T > & | Data ) |
Write data block to dgf file.
[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 |
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.
[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 |
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.
[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 |