CPARK 1.0
A light-weighted, distributed computing framework for C++ that offers a fast and general-purpose large data processing solution.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
cpark::MergedSameView< R >::Iterator Class Reference

#include <merged_view.h>

Inheritance diagram for cpark::MergedSameView< R >::Iterator:

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = std::ranges::range_value_t< ViewType >
 

Public Member Functions

 Iterator (std::ranges::iterator_t< const ViewType > start_iterator, std::vector< ViewType > *views, std::vector< ViewType >::size_type start_index)
 
value_type operator* () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 
Iteratoroperator-- ()
 

Detailed Description

template<concepts::RangeOfView R>
class cpark::MergedSameView< R >::Iterator

An lazily evaluated iterator that sequentially reads the elements in a sequence of views.

Constructor & Destructor Documentation

◆ Iterator()

template<concepts::RangeOfView R>
cpark::MergedSameView< R >::Iterator::Iterator ( std::ranges::iterator_t< const ViewType >  start_iterator,
std::vector< ViewType > *  views,
std::vector< ViewType >::size_type  start_index 
)
inline

Initialize the Iterator with:

Parameters
start_iteratorThe iterator to the first element.
viewsA pointer to a vector of of views to be combined.
start_indexThe index of the first view.

Member Function Documentation

◆ operator==()

template<concepts::RangeOfView R>
bool cpark::MergedSameView< R >::Iterator::operator== ( const Iterator other) const
inline

Two Iterator-s are equal iff: They are both 'end' iterators, or if they have the same view sequence and point to the same element.


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