/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/csv.hh File Reference#
|
DiFfRG
Discretization Framework for functional Renormalization Group flows
|
csv.hh File Reference
#include <iosfwd>#include <string>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| struct | DiFfRG::CsvDialect |
| The CSV dialect DiFfRG reads and writes. More... | |
| struct | DiFfRG::CsvTable |
| A numeric table, stored one vector per column. More... | |
Namespaces | |
| namespace | DiFfRG |
Functions | |
| CsvTable | DiFfRG::read_csv (const std::string &path, const CsvDialect &dialect={}) |
| Read a CSV file into a numeric table. | |
| CsvTable | DiFfRG::parse_csv (std::string_view content, const CsvDialect &dialect={}, std::string_view origin={}) |
| Parse CSV held in memory into a numeric table. | |
| std::vector< std::string > | DiFfRG::split_csv_line (std::string_view line, char separator) |
| Split one CSV line into its fields, honouring quoting. | |
| double | DiFfRG::parse_csv_cell (std::string_view field) |
| Parse a single numeric cell, yielding NaN for anything that is not a number. | |
| void | DiFfRG::write_csv_header (std::ostream &stream, const std::vector< std::string > &names, const CsvDialect &dialect={}) |
| Write a header row, quoting any name that would otherwise forge a field boundary. | |
| void | DiFfRG::write_csv_row (std::ostream &stream, const std::vector< double > &values, const CsvDialect &dialect={}) |
| Write one row of values. | |
Generated by