guanaqo 1.0.0-alpha.25
Utilities for scientific software
Loading...
Searching...
No Matches
guanaqo::io::CSVReader< F > Struct Template Reference

Detailed Description

template<class F>
requires (std::floating_point<F> || std::integral<F>)
struct guanaqo::io::CSVReader< F >

Definition at line 19 of file csv.tpp.

Collaboration diagram for guanaqo::io::CSVReader< F >:

Public Member Functions

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 void strtod_ovl (const char *str, char **str_end, short &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()

template<class F>
F guanaqo::io::CSVReader< F >::read ( std::istream & is,
char sep )
inlinenodiscard

Definition at line 26 of file csv.tpp.

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

◆ read_chunk()

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

Definition at line 48 of file csv.tpp.

Here is the caller graph for this function:

◆ skip_comments()

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

Definition at line 67 of file csv.tpp.

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

◆ strtod_ovl() [1/7]

template<class F>
void guanaqo::io::CSVReader< F >::strtod_ovl ( const char * str,
char ** str_end,
float & v )
inlinestatic

Definition at line 98 of file csv.tpp.

Here is the caller graph for this function:

◆ strtod_ovl() [2/7]

template<class F>
void guanaqo::io::CSVReader< F >::strtod_ovl ( const char * str,
char ** str_end,
double & v )
inlinestatic

Definition at line 101 of file csv.tpp.

◆ strtod_ovl() [3/7]

template<class F>
void guanaqo::io::CSVReader< F >::strtod_ovl ( const char * str,
char ** str_end,
long double & v )
inlinestatic

Definition at line 104 of file csv.tpp.

◆ strtod_ovl() [4/7]

template<class F>
void guanaqo::io::CSVReader< F >::strtod_ovl ( const char * str,
char ** str_end,
long long & v )
inlinestatic

Definition at line 107 of file csv.tpp.

◆ strtod_ovl() [5/7]

template<class F>
void guanaqo::io::CSVReader< F >::strtod_ovl ( const char * str,
char ** str_end,
long & v )
inlinestatic

Definition at line 110 of file csv.tpp.

◆ strtod_ovl() [6/7]

template<class F>
void guanaqo::io::CSVReader< F >::strtod_ovl ( const char * str,
char ** str_end,
int & v )
inlinestatic

Definition at line 113 of file csv.tpp.

◆ strtod_ovl() [7/7]

template<class F>
void guanaqo::io::CSVReader< F >::strtod_ovl ( const char * str,
char ** str_end,
short & v )
inlinestatic

Definition at line 116 of file csv.tpp.

◆ read_single()

template<class F>
const char * guanaqo::io::CSVReader< F >::read_single ( const char * bufbegin,
char * bufend,
F & v )
inlinestatic

Definition at line 119 of file csv.tpp.

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

◆ next_line()

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

Definition at line 132 of file csv.tpp.

Here is the caller graph for this function:

◆ done()

template<class F>
bool guanaqo::io::CSVReader< F >::done ( std::istream & is) const
inlinenodiscard

Definition at line 137 of file csv.tpp.

Here is the caller graph for this function:

Member Data Documentation

◆ bufmaxsize

template<class F>
std::streamsize guanaqo::io::CSVReader< F >::bufmaxsize = 64
staticconstexpr

Definition at line 20 of file csv.tpp.

◆ s

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

Definition at line 21 of file csv.tpp.

◆ bufidx

template<class F>
std::streamsize guanaqo::io::CSVReader< F >::bufidx = 0

Definition at line 22 of file csv.tpp.

◆ keep_reading

template<class F>
bool guanaqo::io::CSVReader< F >::keep_reading = true

Definition at line 23 of file csv.tpp.

◆ end

template<class F>
char guanaqo::io::CSVReader< F >::end = '\n'
staticconstexpr

Definition at line 24 of file csv.tpp.


The documentation for this struct was generated from the following file:
  • include/guanaqo/implementation/io/csv.tpp