AiLibrary  v1.3.0
A single-header C++ Library from Ailurus Studio
Read Functions

Functions providing the ability to read your data. More...

Functions

template<typename T >
INLINE void ai::parseFileInMatrix (const std::string filename, const char separator, std::vector< std::vector< T > > &matrix)
 
template<typename T >
INLINE void ai::parseFileInVector (const std::string filename, const char separator, std::vector< T > &vector)
 
INLINE void ai::parseFileIntoString (const std::string filename, std::string &content)
 
template<typename T >
INLINE void ai::accumulateFileInMatrix (const std::string filename, const char separator, std::vector< std::vector< T > > &matrix)
 
template<typename T >
INLINE void ai::accumulateFileInVector (const std::string filename, const char separator, std::vector< T > &vector, const bool checkForNaN=false)
 

Detailed Description

Group of functions that reads files and writes its content into your variables

Function Documentation

◆ accumulateFileInMatrix()

template<typename T >
INLINE void ai::accumulateFileInMatrix ( const std::string  filename,
const char  separator,
std::vector< std::vector< T > > &  matrix 
)
Template Parameters
TA number type
Here is the call graph for this function:

◆ accumulateFileInVector()

template<typename T >
INLINE void ai::accumulateFileInVector ( const std::string  filename,
const char  separator,
std::vector< T > &  vector,
const bool  checkForNaN = false 
)
Template Parameters
TA number type
Here is the call graph for this function:

◆ parseFileInMatrix()

template<typename T >
INLINE void ai::parseFileInMatrix ( const std::string  filename,
const char  separator,
std::vector< std::vector< T > > &  matrix 
)
Template Parameters
TAny printable type
Exceptions
std::runtime_errorIf file could not be open
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseFileIntoString()

INLINE void ai::parseFileIntoString ( const std::string  filename,
std::string &  content 
)
Exceptions
std::runtime_errorIf file could not be open
Here is the call graph for this function:

◆ parseFileInVector()

template<typename T >
INLINE void ai::parseFileInVector ( const std::string  filename,
const char  separator,
std::vector< T > &  vector 
)
Template Parameters
TAny printable type
Exceptions
std::runtime_errorIf file could not be open
Here is the call graph for this function:
Here is the caller graph for this function: