|
| DataIO_Text () |
|
| ~DataIO_Text () |
|
virtual void | read_file (double *v, const size_t n, const string &f) |
|
virtual void | write_file (const double *v, const size_t n, const string &f, const bool append=true) |
|
virtual void | read_file (dcomplex *v, const size_t n, const string &f) |
|
virtual void | write_file (const dcomplex *v, const size_t n, const string &f, const bool append=true) |
|
virtual void | read_file (std::vector< double > &v, const string &f) |
|
virtual void | write_file (const std::vector< double > &v, const string &f, const bool append=true) |
|
virtual void | read_file (std::vector< dcomplex > &v, const string &f) |
|
virtual void | write_file (const std::vector< dcomplex > &v, const string &f, const bool append=true) |
|
void | set_parameter (const int precision) |
|
| DataIO () |
|
virtual | ~DataIO () |
|
|
template<typename T > |
void | read_file_base (T *v, const size_t n, const string &) |
|
template<typename T > |
void | write_file_base (const T *v, const size_t n, const string &, const bool append=true) |
|
template<typename T > |
void | fetch_data (T &v, fstream &fs) |
|
template<typename T > |
void | store_data (const T &v, fstream &fs) |
|
template<> |
void | store_data (const double &v, fstream &fs) |
|
template<> |
void | store_data (const dcomplex &v, fstream &fs) |
|
template<> |
void | fetch_data (double &v, fstream &fs) |
|
template<> |
void | fetch_data (dcomplex &v, fstream &fs) |
|
DataIO_Text class for general file I/O in plain Text format.
DataIO_Text class provides file I/O in plain Text format. output format of numerical precision can be specified through set_parameter method. default is given as enum.
Data are read from/written to file through the primary node (rank 0 usually).
The read/write methods in various data formats are all derived from template functions whose implementation given in dataIO_Text_impl.h included at the bottom.
Definition at line 44 of file dataIO_Text.h.