Loading...
Searching...
No Matches
Functions
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_handleinput stream from dgf file
[in,out]Nnumber data entries loaded from the data set
[in,out]Dataon 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

Definition at line 248 of file DGF.tpp.

◆ 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_handleinput stream from dgf file
[in,out]nnumber data entries loaded from the data set
[in,out]dataon output stores the data loaded from the data block
[in]data_namename 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

Definition at line 436 of file DGF.tpp.

◆ 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_handleinput stream from dgf file
[in,out]nnumber data entries loaded from the data set
[in,out]dataon output stores the data loaded from the data block
[in]data_namename 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

Definition at line 341 of file DGF.tpp.

◆ 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_handleoutput stream to dgf file
[in,out]Nnumber data entries to be written to file
[in,out]Datacontainer 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

Definition at line 529 of file DGF.tpp.

◆ 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_handleoutput stream to dgf file
[in,out]Nnumber data entries to be written
[in,out]Datacontainer storing the data
[in]Data_namename 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

Definition at line 630 of file DGF.tpp.

◆ 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_handleoutput stream to dgf file
[in,out]Nnumber data entries to be written
[in,out]Datacontainer storing the data
[in]Data_namename 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

Definition at line 574 of file DGF.tpp.

--- layout: doxygen_footer ---