alpaqa 1.0.0a8
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

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 char * read_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()

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]

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]

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]

static void strtod_ovl ( const char *  str,
char **  str_end,
long double &  v 
)
inlinestatic

Definition at line 74 of file csv.tpp.

◆ read_single()

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()

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()

bool done ( std::istream &  is) const
inline

Definition at line 95 of file csv.tpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ bufmaxsize

constexpr std::streamsize bufmaxsize = 64
staticconstexpr

Definition at line 18 of file csv.tpp.

◆ s

std::array<char, bufmaxsize + 1> s

Definition at line 19 of file csv.tpp.

◆ bufidx

std::streamsize bufidx = 0

Definition at line 20 of file csv.tpp.

◆ keep_reading

bool keep_reading = true

Definition at line 21 of file csv.tpp.

◆ end

constexpr char end = '\n'
staticconstexpr

Definition at line 22 of file csv.tpp.


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