|
Vince's CSV Parser
|
An input iterator capable of handling large files. More...
#include <csv_reader.hpp>
Public Member Functions | |
| iterator (CSVReader *reader) | |
| iterator (CSVReader *, CSVRow &&) | |
| CONSTEXPR_14 reference | operator* () |
| Access the CSVRow held by the iterator. | |
| CONSTEXPR_14 reference | operator* () const |
| CONSTEXPR_14 pointer | operator-> () |
| Return a pointer to the CSVRow the iterator has stopped at. | |
| CONSTEXPR_14 pointer | operator-> () const |
| iterator & | operator++ () |
| Pre-increment iterator. | |
| iterator | operator++ (int) |
| Post-increment iterator. | |
| CONSTEXPR bool | operator== (const iterator &other) const noexcept |
| Returns true if iterators were constructed from the same CSVReader and point to the same row. | |
| CONSTEXPR bool | operator!= (const iterator &other) const noexcept |
An input iterator capable of handling large files.
<algorithm> librarystd::input_iterator_tag (single-pass) by design. Algorithms requiring ForwardIterator are not safe to use directly on it. Copy to std::vector<CSVRow> first when random-access algorithms are needed. See include/internal/ARCHITECTURE.md ยง "CSVReader::iterator is single-pass by design" for the full rationale. Definition at line 79 of file csv_reader.hpp.
|
inline |
Definition at line 90 of file csv_reader.hpp.
Definition at line 24 of file csv_reader_iterator.cpp.
Definition at line 111 of file csv_reader.hpp.
|
inline |
Access the CSVRow held by the iterator.
Definition at line 94 of file csv_reader.hpp.
|
inline |
Definition at line 95 of file csv_reader.hpp.
| CSVReader::iterator & csv::CSVReader::iterator::operator++ | ( | ) |
Pre-increment iterator.
Advance the iterator by one row.
If this CSVReader has an associated file, then the iterator will lazily pull more data from that file until the end of file is reached.
Definition at line 36 of file csv_reader_iterator.cpp.
| CSVReader::iterator csv::CSVReader::iterator::operator++ | ( | int | ) |
Post-increment iterator.
Definition at line 45 of file csv_reader_iterator.cpp.
|
inline |
Return a pointer to the CSVRow the iterator has stopped at.
Definition at line 98 of file csv_reader.hpp.
|
inline |
Definition at line 99 of file csv_reader.hpp.
Returns true if iterators were constructed from the same CSVReader and point to the same row.
Definition at line 107 of file csv_reader.hpp.