Loading...
Searching...
No Matches
io_utilities.h File Reference
#include "opennn/core/opennn_types.h"
#include <type_traits>
#include <functional>

Go to the source code of this file.

Classes

class  opennn::FileReader
 
class  opennn::FileWriter
 
class  opennn::FileMapping
 

Namespaces

namespace  opennn
 

Concepts

concept  opennn::RawStorable
 

Functions

void opennn::download_if_missing (const filesystem::path &, const string &)
 
void opennn::download_files_if_missing (const filesystem::path &directory, string_view base_url, const vector< string_view > &filenames)
 
string opennn::read_text_file (const filesystem::path &)
 
vector< filesystem::path > opennn::list_files (const filesystem::path &directory, std::function< bool(const filesystem::path &)> predicate)
 
vector< filesystem::path > opennn::list_directories (const filesystem::path &directory, std::function< bool(const filesystem::path &)> predicate)
 
bool opennn::is_file_current (const filesystem::path &file, const vector< filesystem::path > &sources, uintmax_t expected_size=0)
 
void opennn::read_int32_batch (const FileReader &, const vector< Index > &sample_indices, Index samples_number, uint64_t record_values, Index source_offset, Index values_number, span< float > output, Index output_stride, Index output_offset, string_view context)
 
bool opennn::read_binary_value (istream &stream, RawStorable auto &value)
 
bool opennn::read_binary_values (istream &stream, RawStorable auto &... values)
 
void opennn::write_binary_value (FileWriter &writer, const RawStorable auto &value)
 
bool opennn::read_binary_string (istream &stream, string &value)
 
void opennn::write_binary_string (FileWriter &writer, const string &value)