Vince's CSV Parser
Loading...
Searching...
No Matches
csv::CSVRow::iterator Class Reference

A random access iterator over the contents of a CSV row. More...

#include <csv_row.hpp>

Public Member Functions

 iterator (const CSVRow *, int i)
 
reference operator* () const
 
pointer operator-> () const
 
iterator operator++ (int)
 
iteratoroperator++ ()
 
iterator operator-- (int)
 
iteratoroperator-- ()
 
iterator operator+ (difference_type n) const
 
iterator operator- (difference_type n) const
 
CONSTEXPR bool operator== (const iterator &other) const noexcept
 Two iterators are equal if they point to the same field.
 
CONSTEXPR bool operator!= (const iterator &other) const noexcept
 

Public Attributes

friend CSVRow
 

Detailed Description

A random access iterator over the contents of a CSV row.

Each iterator points to a CSVField.

Definition at line 335 of file csv_row.hpp.

Member Function Documentation

◆ operator!=()

CONSTEXPR bool csv::CSVRow::iterator::operator!= ( const iterator other) const
inlinenoexcept

Definition at line 361 of file csv_row.hpp.

◆ operator*()

CSVRow::iterator::reference csv::CSVRow::iterator::operator* ( ) const

Definition at line 147 of file csv_row.cpp.

◆ operator+()

CSVRow::iterator csv::CSVRow::iterator::operator+ ( difference_type  n) const

Definition at line 188 of file csv_row.cpp.

◆ operator++() [1/2]

CSVRow::iterator & csv::CSVRow::iterator::operator++ ( )

Definition at line 155 of file csv_row.cpp.

◆ operator++() [2/2]

CSVRow::iterator csv::CSVRow::iterator::operator++ ( int  )

Definition at line 166 of file csv_row.cpp.

◆ operator-()

CSVRow::iterator csv::CSVRow::iterator::operator- ( difference_type  n) const

Definition at line 193 of file csv_row.cpp.

◆ operator--() [1/2]

CSVRow::iterator & csv::CSVRow::iterator::operator-- ( )

Definition at line 173 of file csv_row.cpp.

◆ operator--() [2/2]

CSVRow::iterator csv::CSVRow::iterator::operator-- ( int  )

Definition at line 181 of file csv_row.cpp.

◆ operator->()

CSVRow::iterator::pointer csv::CSVRow::iterator::operator-> ( ) const

Definition at line 151 of file csv_row.cpp.

◆ operator==()

CONSTEXPR bool csv::CSVRow::iterator::operator== ( const iterator other) const
inlinenoexcept

Two iterators are equal if they point to the same field.

Definition at line 357 of file csv_row.hpp.

Member Data Documentation

◆ CSVRow

friend csv::CSVRow::iterator::CSVRow

Definition at line 364 of file csv_row.hpp.


The documentation for this class was generated from the following files: