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

Row-wise 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

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

Detailed Description

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

Row-wise iterator over DataFrameRow entries.

Provides access to rows with edit support.

Definition at line 196 of file data_frame.hpp.

Member Typedef Documentation

◆ difference_type

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

Definition at line 199 of file data_frame.hpp.

◆ iterator_category

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

Definition at line 202 of file data_frame.hpp.

◆ pointer

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

Definition at line 200 of file data_frame.hpp.

◆ reference

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

Definition at line 201 of file data_frame.hpp.

◆ value_type

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

Definition at line 198 of file data_frame.hpp.

Constructor & Destructor Documentation

◆ iterator()

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

Definition at line 205 of file data_frame.hpp.

Member Function Documentation

◆ operator!=()

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

Definition at line 238 of file data_frame.hpp.

◆ operator*()

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

Definition at line 210 of file data_frame.hpp.

◆ operator+()

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

Definition at line 233 of file data_frame.hpp.

◆ operator++() [1/2]

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

Definition at line 228 of file data_frame.hpp.

◆ operator++() [2/2]

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

Definition at line 229 of file data_frame.hpp.

◆ operator-() [1/2]

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

Definition at line 235 of file data_frame.hpp.

◆ operator-() [2/2]

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

Definition at line 234 of file data_frame.hpp.

◆ operator--() [1/2]

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

Definition at line 230 of file data_frame.hpp.

◆ operator--() [2/2]

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

Definition at line 231 of file data_frame.hpp.

◆ operator->()

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

Definition at line 222 of file data_frame.hpp.

◆ operator==()

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

Definition at line 237 of file data_frame.hpp.


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