alpaqa 1.0.0a19
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CSVReader< F > Struct Template Reference

Detailed Description

template<class F>
requires (std::floating_point<F> || std::integral<F>)
struct alpaqa::csv::CSVReader< F >

Definition at line 18 of file csv.tpp.

+ Collaboration diagram for CSVReader< F >:

Public Member Functions

F read (std::istream &is, char sep)
 
void read_chunk (std::istream &is)
 
void skip_comments (std::istream &is)
 
void next_line (std::istream &is) const
 
bool done (std::istream &is) const
 

Static Public Member Functions

static void strtod_ovl (const char *str, char **str_end, float &v)
 
static void strtod_ovl (const char *str, char **str_end, double &v)
 
static void strtod_ovl (const char *str, char **str_end, long double &v)
 
static void strtod_ovl (const char *str, char **str_end, long long &v)
 
static void strtod_ovl (const char *str, char **str_end, long &v)
 
static void strtod_ovl (const char *str, char **str_end, int &v)
 
static const charread_single (const char *bufbegin, char *bufend, F &v)
 

Public Attributes

std::array< char, bufmaxsize+1 > s
 
std::streamsize bufidx = 0
 
bool keep_reading = true
 

Static Public Attributes

static constexpr std::streamsize bufmaxsize = 64
 
static constexpr char end = '\n'
 

Member Function Documentation

◆ read()

template<class F >
F read ( std::istream &  is,
char  sep 
)
inline

Definition at line 25 of file csv.tpp.

◆ read_chunk()

template<class F >
void read_chunk ( std::istream &  is)
inline

Definition at line 47 of file csv.tpp.

◆ skip_comments()

template<class F >
void skip_comments ( std::istream &  is)
inline

Definition at line 65 of file csv.tpp.

+ Here is the caller graph for this function:

◆ strtod_ovl() [1/6]

template<class F >
static void strtod_ovl ( const char str,
char **  str_end,
float v 
)
inlinestatic

Definition at line 96 of file csv.tpp.

◆ strtod_ovl() [2/6]

template<class F >
static void strtod_ovl ( const char str,
char **  str_end,
double v 
)
inlinestatic

Definition at line 99 of file csv.tpp.

◆ strtod_ovl() [3/6]

template<class F >
static void strtod_ovl ( const char str,
char **  str_end,
long double v 
)
inlinestatic

Definition at line 102 of file csv.tpp.

◆ strtod_ovl() [4/6]

template<class F >
static void strtod_ovl ( const char str,
char **  str_end,
long long v 
)
inlinestatic

Definition at line 105 of file csv.tpp.

◆ strtod_ovl() [5/6]

template<class F >
static void strtod_ovl ( const char str,
char **  str_end,
long v 
)
inlinestatic

Definition at line 108 of file csv.tpp.

◆ strtod_ovl() [6/6]

template<class F >
static void strtod_ovl ( const char str,
char **  str_end,
int v 
)
inlinestatic

Definition at line 111 of file csv.tpp.

◆ read_single()

template<class F >
static const char * read_single ( const char bufbegin,
char bufend,
F v 
)
inlinestatic

Definition at line 114 of file csv.tpp.

◆ next_line()

template<class F >
void next_line ( std::istream &  is) const
inline

Definition at line 127 of file csv.tpp.

◆ done()

template<class F >
bool done ( std::istream &  is) const
inline

Definition at line 132 of file csv.tpp.

Member Data Documentation

◆ bufmaxsize

template<class F >
constexpr std::streamsize bufmaxsize = 64
staticconstexpr

Definition at line 19 of file csv.tpp.

◆ s

template<class F >
std::array<char, bufmaxsize + 1> s

Definition at line 20 of file csv.tpp.

◆ bufidx

template<class F >
std::streamsize bufidx = 0

Definition at line 21 of file csv.tpp.

◆ keep_reading

template<class F >
bool keep_reading = true

Definition at line 22 of file csv.tpp.

◆ end

template<class F >
constexpr char end = '\n'
staticconstexpr

Definition at line 23 of file csv.tpp.


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