|
csvpp 1.2.0
CSV parsing / writing libraries
|
Iterates over the fields within a Row. More...
#include <csv.hpp>
Public Types | |
| using | value_type = T |
| using | difference_type = std::ptrdiff_t |
| using | pointer = const T* |
| using | reference = const T& |
| using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
| Iterator () | |
| Empty constructor. | |
| Iterator (Reader::Row &row) | |
| Creates an iterator from a Row, and parses the first field. | |
| const T & | operator* () const |
| const T * | operator-> () const |
| Iterator & | operator++ () |
| Parse and iterate to next field. | |
| bool | equals (const Iterator< T > &rhs) const |
| Compare to another Reader::Row::Iterator. | |
Iterates over the fields within a Row.
| T | Type to convert fields to. Defaults to std::string |
|
inline |
Empty constructor.
Denotes the end of iteration
|
inlineexplicit |
Creates an iterator from a Row, and parses the first field.
| row | Row to iterate over. |
row must not be destroyed or read from during iteration | Parse_error | if error parsing first field (only when not parsing in lenient mode) |
| IO_error | if error reading CSV data |
| Type_conversion_error | if error converting to type T. Caller may call this again with a different type to try again |
|
inline |
|
inline |
Parse and iterate to next field.
| Parse_error | if error parsing field (only when not parsing in lenient mode) |
| IO_error | if error reading CSV data |
| Type_conversion_error | if error converting to type T. Caller may call this again with a different type to try again |
|
inline |