Vince's CSV Parser
Loading...
Searching...
No Matches
csv::DataFrame< KeyType >::const_iterator Class Reference

Row-wise const iterator over DataFrameRow entries. More...

#include <data_frame.hpp>

Public Types

using value_type = DataFrameRow< KeyType >
 
using difference_type = std::ptrdiff_t
 
using pointer = const DataFrameRow< KeyType > *
 
using reference = const DataFrameRow< KeyType > &
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

 const_iterator (typename std::vector< row_entry >::const_iterator it, const std::unordered_map< KeyType, std::unordered_map< std::string, std::string > > *edits)
 
reference operator* () const
 
pointer operator-> () const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
const_iterator operator+ (difference_type n) const
 
const_iterator operator- (difference_type n) const
 
difference_type operator- (const const_iterator &other) const
 
bool operator== (const const_iterator &other) const
 
bool operator!= (const const_iterator &other) const
 

Detailed Description

template<typename KeyType = std::string>
class csv::DataFrame< KeyType >::const_iterator

Row-wise const iterator over DataFrameRow entries.

Provides read-only access to rows with edit support.

Definition at line 247 of file data_frame.hpp.

Member Typedef Documentation

◆ difference_type

template<typename KeyType = std::string>
using csv::DataFrame< KeyType >::const_iterator::difference_type = std::ptrdiff_t

Definition at line 250 of file data_frame.hpp.

◆ iterator_category

template<typename KeyType = std::string>
using csv::DataFrame< KeyType >::const_iterator::iterator_category = std::random_access_iterator_tag

Definition at line 253 of file data_frame.hpp.

◆ pointer

template<typename KeyType = std::string>
using csv::DataFrame< KeyType >::const_iterator::pointer = const DataFrameRow<KeyType>*

Definition at line 251 of file data_frame.hpp.

◆ reference

template<typename KeyType = std::string>
using csv::DataFrame< KeyType >::const_iterator::reference = const DataFrameRow<KeyType>&

Definition at line 252 of file data_frame.hpp.

◆ value_type

template<typename KeyType = std::string>
using csv::DataFrame< KeyType >::const_iterator::value_type = DataFrameRow<KeyType>

Definition at line 249 of file data_frame.hpp.

Constructor & Destructor Documentation

◆ const_iterator()

template<typename KeyType = std::string>
csv::DataFrame< KeyType >::const_iterator::const_iterator ( typename std::vector< row_entry >::const_iterator  it,
const std::unordered_map< KeyType, std::unordered_map< std::string, std::string > > *  edits 
)
inline

Definition at line 256 of file data_frame.hpp.

Member Function Documentation

◆ operator!=()

template<typename KeyType = std::string>
bool csv::DataFrame< KeyType >::const_iterator::operator!= ( const const_iterator other) const
inline

Definition at line 289 of file data_frame.hpp.

◆ operator*()

template<typename KeyType = std::string>
reference csv::DataFrame< KeyType >::const_iterator::operator* ( ) const
inline

Definition at line 261 of file data_frame.hpp.

◆ operator+()

template<typename KeyType = std::string>
const_iterator csv::DataFrame< KeyType >::const_iterator::operator+ ( difference_type  n) const
inline

Definition at line 284 of file data_frame.hpp.

◆ operator++() [1/2]

template<typename KeyType = std::string>
const_iterator & csv::DataFrame< KeyType >::const_iterator::operator++ ( )
inline

Definition at line 279 of file data_frame.hpp.

◆ operator++() [2/2]

template<typename KeyType = std::string>
const_iterator csv::DataFrame< KeyType >::const_iterator::operator++ ( int  )
inline

Definition at line 280 of file data_frame.hpp.

◆ operator-() [1/2]

template<typename KeyType = std::string>
difference_type csv::DataFrame< KeyType >::const_iterator::operator- ( const const_iterator other) const
inline

Definition at line 286 of file data_frame.hpp.

◆ operator-() [2/2]

template<typename KeyType = std::string>
const_iterator csv::DataFrame< KeyType >::const_iterator::operator- ( difference_type  n) const
inline

Definition at line 285 of file data_frame.hpp.

◆ operator--() [1/2]

template<typename KeyType = std::string>
const_iterator & csv::DataFrame< KeyType >::const_iterator::operator-- ( )
inline

Definition at line 281 of file data_frame.hpp.

◆ operator--() [2/2]

template<typename KeyType = std::string>
const_iterator csv::DataFrame< KeyType >::const_iterator::operator-- ( int  )
inline

Definition at line 282 of file data_frame.hpp.

◆ operator->()

template<typename KeyType = std::string>
pointer csv::DataFrame< KeyType >::const_iterator::operator-> ( ) const
inline

Definition at line 273 of file data_frame.hpp.

◆ operator==()

template<typename KeyType = std::string>
bool csv::DataFrame< KeyType >::const_iterator::operator== ( const const_iterator other) const
inline

Definition at line 288 of file data_frame.hpp.


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