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::MergedTwoDiffView< V1, V2 >::Iterator Class Reference

#include <merged_view.h>

Inheritance diagram for cpark::MergedTwoDiffView< V1, V2 >::Iterator:

Public Types

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

Public Member Functions

template<typename Iter >
 Iterator (Iter iterator, V1 *view1, V2 *view2, bool if_hold1)
 
value_type operator* () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 

Detailed Description

template<std::ranges::view V1, std::ranges::view V2>
class cpark::MergedTwoDiffView< V1, V2 >::Iterator

A lazily evaluated iterator that read elements combined from two different views.

Constructor & Destructor Documentation

◆ Iterator()

template<std::ranges::view V1, std::ranges::view V2>
template<typename Iter >
cpark::MergedTwoDiffView< V1, V2 >::Iterator::Iterator ( Iter  iterator,
V1 *  view1,
V2 *  view2,
bool  if_hold1 
)
inline

Creates Iterator with:

Template Parameters
IterType of the start iterator.
Parameters
iteratorThe start iterator points to the first element.
view1The first view.
view2The second view.
if_hold1Whether the start iterator is from view1 or view2. Note that if_hold1 must be consistent with the type of Iter.

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