aimstil  5.0.5
til::io::SimpleLoader< TIterator, TProgressIndicator > Class Template Reference

#include <cathier/io.h>

Classes

class  CannotOpenFile
 

Public Member Functions

 SimpleLoader (std::size_t maxlinelength)
 Construct object, giving maximum length, in characters, of a line on file. More...
 
TProgressIndicator & progress_indicator ()
 
void operator() (const char *filename, TIterator begin)
 Load array from file, and store it from begin onwards. More...
 
void operator() (const std::string &filename, TIterator begin)
 Load array from file, and store it from begin onwards. More...
 

Detailed Description

template<typename TIterator, typename TProgressIndicator = NoIndicator>
class til::io::SimpleLoader< TIterator, TProgressIndicator >

Definition at line 71 of file io.h.

Constructor & Destructor Documentation

◆ SimpleLoader()

template<typename TIterator, typename TProgressIndicator = NoIndicator>
til::io::SimpleLoader< TIterator, TProgressIndicator >::SimpleLoader ( std::size_t  maxlinelength)
inlineexplicit

Construct object, giving maximum length, in characters, of a line on file.

Definition at line 81 of file io.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename TIterator, typename TProgressIndicator = NoIndicator>
void til::io::SimpleLoader< TIterator, TProgressIndicator >::operator() ( const char *  filename,
TIterator  begin 
)

Load array from file, and store it from begin onwards.

Throws CannotOpenFile if file cannot be opened.

◆ operator()() [2/2]

template<typename TIterator, typename TProgressIndicator = NoIndicator>
void til::io::SimpleLoader< TIterator, TProgressIndicator >::operator() ( const std::string &  filename,
TIterator  begin 
)

Load array from file, and store it from begin onwards.

Throws CannotOpenFile if file cannot be opened.

◆ progress_indicator()

template<typename TIterator, typename TProgressIndicator = NoIndicator>
TProgressIndicator& til::io::SimpleLoader< TIterator, TProgressIndicator >::progress_indicator ( )
inline

Definition at line 88 of file io.h.

References til::io::GetArraySize::operator()().


The documentation for this class was generated from the following file: