alpaqa sparse
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<std::floating_point F>
struct alpaqa::csv::CSVReader< F >

Definition at line 17 of file csv.tpp.

+ Collaboration diagram for CSVReader< F >:

Public Member Functions

F read (std::istream &is, char sep)
 
void check_end (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 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<std::floating_point F>
F read ( std::istream &  is,
char  sep 
)
inline

Definition at line 24 of file csv.tpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ strtod_ovl() [1/3]

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

Definition at line 68 of file csv.tpp.

+ Here is the caller graph for this function:

◆ strtod_ovl() [2/3]

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

Definition at line 71 of file csv.tpp.

◆ strtod_ovl() [3/3]

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

Definition at line 74 of file csv.tpp.

◆ read_single()

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

Definition at line 77 of file csv.tpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_end()

template<std::floating_point F>
void check_end ( std::istream &  is) const
inline

Definition at line 90 of file csv.tpp.

+ Here is the caller graph for this function:

◆ done()

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

Definition at line 95 of file csv.tpp.

Member Data Documentation

◆ bufmaxsize

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

Definition at line 18 of file csv.tpp.

◆ s

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

Definition at line 19 of file csv.tpp.

◆ bufidx

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

Definition at line 20 of file csv.tpp.

◆ keep_reading

template<std::floating_point F>
bool keep_reading = true

Definition at line 21 of file csv.tpp.

◆ end

template<std::floating_point F>
constexpr char end = '\n'
staticconstexpr

Definition at line 22 of file csv.tpp.


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