ampsci
c++ program for high-precision atomic structure calculations of single-valence systems
|
Enumerations | |
enum | RoW { read , write } |
Functions | |
template<std::size_t I = 0, typename... Tp> | |
std::enable_if< I==sizeof...(Tp), void >::type | stringstreamVectorIntoTuple (const std::vector< std::string > &, std::tuple< Tp... > &) |
stringstreamVectorIntoTuple< I+1, Tp... > (lst, t) | |
std::vector< std::string > | readInputFile_byEntry (const std::string &fname) |
std::vector< std::string > | readInputFile_byLine (const std::string &fname) |
std::vector< std::pair< double, double > > | readFile_xy_VoP (const std::string &fname) |
std::pair< std::vector< double >, std::vector< double > > | readFile_xy_PoV (const std::string &fname) |
void | writeFile_xy (const std::vector< double > &x, const std::vector< double > &y, const std::string &fname) |
std::string | readInputFile (const std::string &fname) |
reads entire text file into a string | |
void | removeBlockComments (std::string &input) |
std::string | removeCommentsAndSpaces (const std::string &input) |
std::vector< std::pair< std::string, std::string > > | splitInput_byBraces (const std::string &input) |
std::vector< std::string > | splitInput_bySemiColon (const std::string &input) |
template<typename... Tp> | |
void | setInputParameters (const std::string &infile, std::tuple< Tp... > &tp) |
void | open_binary (std::fstream &stream, const std::string &fname, RoW row) |
bool | file_exists (const std::string &fileName) |
template<typename T , typename... Types> | |
void | rw_binary (std::fstream &stream, RoW row, std::vector< T > &value, Types &...values) |
Function (variadic): reads/writes data from/to binary file. Works for trivial (PoD) types, and std::string only (but not checked) Overload for vectors. | |
template<typename T , typename... Types> | |
void | rw_binary (std::fstream &stream, RoW row, T &value, Types &...values) |
Function (variadic): reads/writes data from/to binary file. Works for trivial (PoD) types, and std::string only (but not checked) | |
template<typename T > | |
void | binary_rw (std::fstream &stream, T &value, RoW row) |
template<typename T > | |
void | binary_rw_vec (std::fstream &stream, std::vector< T > &value, RoW row) |
void | binary_str_rw (std::fstream &stream, std::string &value, RoW row) |
Functions to help read-write data to files, including binary files.