|
xerus
a general purpose tensor library
|
Header file for templates to store and restore objects from / to files / streams. More...
#include <iostream>#include <fstream>#include "stringUtilities.h"#include "check.h"#include "exceptions.h"#include "namedLogger.h"Go to the source code of this file.
Namespaces | |
| xerus | |
| The main namespace of xerus. | |
| xerus::misc | |
| Collection of classes and functions that provide elementary functionality that is not special to xerus as a tensor library. | |
Enumerations | |
| enum | xerus::misc::FileFormat { xerus::misc::FileFormat::BINARY, xerus::misc::FileFormat::TSV } |
| possible file formats for tensor storage More... | |
Functions | |
| template<class T > | |
| void | xerus::misc::load_from_file (T &_obj, const std::string &_filename) |
| template<class T > | |
| T | xerus::misc::load_from_file (const std::string &_filename) |
| template<class T > | |
| XERUS_force_inline void | xerus::misc::read_from_stream (std::istream &_stream, T &_obj, const FileFormat _format) |
| template<class T > | |
| XERUS_force_inline T | xerus::misc::read_from_stream (std::istream &_stream, const FileFormat _format) |
| template<class T > | |
| void | xerus::misc::save_to_file (const T &_obj, const std::string &_filename, const FileFormat _format=FileFormat::BINARY) |
| template<class T , typename std::enable_if< std::is_arithmetic< T >::value, bool >::type = true> | |
| void | xerus::misc::stream_reader (std::istream &_stream, T &_obj, const FileFormat _format) |
| template<class T > | |
| void | xerus::misc::stream_reader (std::istream &_stream, std::vector< T > &_obj, const FileFormat _format) |
| template<class T , typename std::enable_if< std::is_arithmetic< T >::value, bool >::type = true> | |
| void | xerus::misc::stream_writer (std::ostream &_stream, const T &_value, FileFormat _format) |
| template<class T > | |
| void | xerus::misc::stream_writer (std::ostream &_stream, const std::vector< T > &_value, FileFormat _format) |
| template<class T > | |
| XERUS_force_inline void | xerus::misc::write_to_stream (std::ostream &_stream, const T &_value, FileFormat _format) |
Header file for templates to store and restore objects from / to files / streams.
Definition in file fileIO.h.