|
Parallel Analog Ensemble
|
Enumerations | |
| enum class | Mode { Read , Write } |
Functions | |
| void | checkPath (const std::string &file_path, Mode mode, const std::string &extension=".txt") |
| bool | readLines (const std::string &file_path, std::vector< std::string > &vec) |
| template<typename T> | |
| bool | readMatrix (const std::string &file_path, boost::numeric::ublas::matrix< T > &mat) |
| template<typename T> | |
| bool | writeMatrix (const std::string &file_path, const boost::numeric::ublas::matrix< T > &mat) |
Namespace ReadTxt provides functionality for txt file I/O.
|
strong |
| void Txt::checkPath | ( | const std::string & | file_path, |
| Mode | mode, | ||
| const std::string & | extension = ".txt" ) |
| bool Txt::readLines | ( | const std::string & | file_path, |
| std::vector< std::string > & | vec ) |
| bool Txt::readMatrix | ( | const std::string & | file_path, |
| boost::numeric::ublas::matrix< T > & | mat ) |
| bool Txt::writeMatrix | ( | const std::string & | file_path, |
| const boost::numeric::ublas::matrix< T > & | mat ) |