mimmo::inputCSVStream Namespace Reference

Utilities to read CSV data from an input stream. More...

Functions

template<typename T , size_t d>
std::fstream & ifstreamcsv (std::fstream &in, MimmoPiercedVector< std::array< T, d > > &x)
 
template<typename T >
std::fstream & ifstreamcsv (std::fstream &in, MimmoPiercedVector< T > &x)
 
template<typename T , size_t d>
std::fstream & ifstreamcsv (std::fstream &in, std::array< T, d > &x)
 
template<typename T >
std::fstream & ifstreamcsv (std::fstream &in, std::vector< T > &x)
 
template<typename T >
std::fstream & ifstreamcsv (std::fstream &in, T &x)
 
template<typename T , size_t d>
std::fstream & ifstreamcsvend (std::fstream &in, std::array< T, d > &x)
 
template<typename T >
std::fstream & ifstreamcsvend (std::fstream &in, std::vector< T > &x)
 
template<typename T >
std::fstream & ifstreamcsvend (std::fstream &in, T &x)
 

Detailed Description

Utilities to read CSV data from an input stream.

Function Documentation

◆ ifstreamcsv() [1/5]

template<typename T , size_t d>
std::fstream & mimmo::inputCSVStream::ifstreamcsv ( std::fstream &  in,
MimmoPiercedVector< std::array< T, d > > &  x 
)

Recover a data from a stream when import in csv format a MimmoPiercedVector of data.

Parameters
[in]inimport stream.
[out]xMimmoPiercedVector data read.
Returns
Reference to result import stream after data import.

Definition at line 167 of file GenericInput.tpp.

◆ ifstreamcsv() [2/5]

template<typename T >
std::fstream & mimmo::inputCSVStream::ifstreamcsv ( std::fstream &  in,
MimmoPiercedVector< T > &  x 
)

Recover a data from a stream when import in csv format a MimmoPiercedVector of data.

Parameters
[in]inimport stream.
[out]xMimmoPiercedVector data read.
Returns
Reference to result import stream after data import.

Definition at line 134 of file GenericInput.tpp.

◆ ifstreamcsv() [3/5]

template<typename T , size_t d>
std::fstream & mimmo::inputCSVStream::ifstreamcsv ( std::fstream &  in,
std::array< T, d > &  x 
)

Recover a data from a stream when import in csv format an array of data of dimension d.

Parameters
[in]inimport stream.
[out]xarray data read.
Returns
Reference to result import stream after data import.

Definition at line 99 of file GenericInput.tpp.

◆ ifstreamcsv() [4/5]

template<typename T >
std::fstream & mimmo::inputCSVStream::ifstreamcsv ( std::fstream &  in,
std::vector< T > &  x 
)

Recover a data from a stream when import in csv format a vector of data.

Parameters
[in]inimport stream.
[out]xvector data read.
Returns
Reference to result import stream after data import.

Definition at line 71 of file GenericInput.tpp.

◆ ifstreamcsv() [5/5]

template<typename T >
std::fstream & mimmo::inputCSVStream::ifstreamcsv ( std::fstream &  in,
T &  x 
)

Recover a data from a stream when import in csv format.

Parameters
[in]inimport stream.
[out]xdata read.
Returns
Reference to result import stream after data import.

Definition at line 38 of file GenericInput.tpp.

◆ ifstreamcsvend() [1/3]

template<typename T , size_t d>
std::fstream & mimmo::inputCSVStream::ifstreamcsvend ( std::fstream &  in,
std::array< T, d > &  x 
)

Recover a data from a stream when import in csv format an array of data of dimension d.

Parameters
[in]inimport stream.
[out]xarray data read.
Returns
Reference to result import stream after data import.

Definition at line 123 of file GenericInput.tpp.

◆ ifstreamcsvend() [2/3]

template<typename T >
std::fstream & mimmo::inputCSVStream::ifstreamcsvend ( std::fstream &  in,
std::vector< T > &  x 
)

Recover a data from a stream when import in csv format a vector of data.

Parameters
[in]inimport stream.
[out]xvector data read.
Returns
Reference to result import stream after data import.

Definition at line 88 of file GenericInput.tpp.

◆ ifstreamcsvend() [3/3]

template<typename T >
std::fstream & mimmo::inputCSVStream::ifstreamcsvend ( std::fstream &  in,
T &  x 
)

Recover a data from a stream when import in csv format when end of line is reached.

Parameters
[in]inimport stream.
[out]xdata read.
Returns
Reference to result import stream after data import.

Definition at line 55 of file GenericInput.tpp.