AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::csv::Records< T >::iterator Class Reference

Records iterator (input iterator). More...

#include <csv.hpp>

Collaboration diagram for anch::csv::Records< T >::iterator:

Public Types

using value_type = T
using difference_type = std::ptrdiff_t

Public Member Functions

 iterator () noexcept
 iterator (Records< T > *records) noexcept
const T & operator* () const noexcept
iterator & operator++ ()
void operator++ (int)
bool operator== (std::default_sentinel_t) const noexcept

Detailed Description

template<typename T>
class anch::csv::Records< T >::iterator

Records iterator (input iterator).

Member Typedef Documentation

◆ difference_type

template<typename T>
using anch::csv::Records< T >::iterator::difference_type = std::ptrdiff_t

Difference type

◆ value_type

template<typename T>
using anch::csv::Records< T >::iterator::value_type = T

Value type

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<typename T>
anch::csv::Records< T >::iterator::iterator ( )
noexcept

Default constructor (end of range)

◆ iterator() [2/2]

template<typename T>
anch::csv::Records< T >::iterator::iterator ( Records< T > * records)
explicitnoexcept

Iterator constructor

Parameters
recordsthe records
Here is the call graph for this function:

Member Function Documentation

◆ operator*()

template<typename T>
const T & anch::csv::Records< T >::iterator::operator* ( ) const
noexcept

Current object

Returns
the object

◆ operator++() [1/2]

template<typename T>
iterator & anch::csv::Records< T >::iterator::operator++ ( )

Read next object

Returns
this
Exceptions
CsvErrorinvalid record
Here is the call graph for this function:

◆ operator++() [2/2]

template<typename T>
void anch::csv::Records< T >::iterator::operator++ ( int )

Read next object

Exceptions
CsvErrorinvalid record

◆ operator==()

template<typename T>
bool anch::csv::Records< T >::iterator::operator== ( std::default_sentinel_t ) const
noexcept

Check end of range

Returns
true at the end of the input

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