|
csv-parser 1.1.0
Csv::Parser (csv-parser)
|
Data inside a single cell, stored as a value of double type.
More...
#include <csv_cell.h>
Public Member Functions | |
| constexpr | CellDoubleValue ()=default |
Constructor, setting the value to std::numeric_limits<double>::quiet_NaN(). | |
| template<typename BehaviorPolicy > | |
| constexpr | CellDoubleValue (std::string_view cell, CellTypeHint hint_ignored, BehaviorPolicy policy) noexcept |
| Constructor, which stores a copy of the cell data. | |
| constexpr double | getValue () const |
| Get the cell value if cell type is Double. | |
Data inside a single cell, stored as a value of double type.
All cell contents are treated as having CellType::Double type, regardless of its original type. The data is always owned by this object. This may be useful if the CSV has numeric data in double-quotes.
|
explicitconstexprnoexcept |
Constructor, which stores a copy of the cell data.
If conversion failure occurs, NaN is assumed.
| cell | Cell data to store. |
| hint_ignored | This parameter is ignored and is present for compatibility with CellTrait::create(). |
| policy | Argument used for type inference. |
| BehaviorPolicy | Policy to use for parsing, same as BehaviorPolicy in Parser. |
|
inlineconstexpr |
Get the cell value if cell type is Double.
std::numeric_limits<double>::quiet_NaN() on error.