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::GeneratorRdd< Num, Func, T >::Iterator Class Reference

#include <generator_rdd.h>

Inheritance diagram for cpark::GeneratorRdd< Num, Func, T >::Iterator:

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = T
 

Public Member Functions

 Iterator (const Func *func, Num i)
 
value_type operator* () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 

Detailed Description

template<typename Num, typename Func, typename T = std::invoke_result_t<Func, Num>>
class cpark::GeneratorRdd< Num, Func, T >::Iterator

An iterator that can be used to compute the value of a function Func invoked by a Num.

Constructor & Destructor Documentation

◆ Iterator()

template<typename Num , typename Func , typename T = std::invoke_result_t<Func, Num>>
cpark::GeneratorRdd< Num, Func, T >::Iterator::Iterator ( const Func func,
Num  i 
)
inline

Creates the iterator with function func and starting argument value i.

Member Function Documentation

◆ operator*()

template<typename Num , typename Func , typename T = std::invoke_result_t<Func, Num>>
value_type cpark::GeneratorRdd< Num, Func, T >::Iterator::operator* ( ) const
inline

Computes the current value func_(i_).

◆ operator++() [1/2]

template<typename Num , typename Func , typename T = std::invoke_result_t<Func, Num>>
Iterator & cpark::GeneratorRdd< Num, Func, T >::Iterator::operator++ ( )
inline

Increments the function argument.

◆ operator++() [2/2]

template<typename Num , typename Func , typename T = std::invoke_result_t<Func, Num>>
Iterator cpark::GeneratorRdd< Num, Func, T >::Iterator::operator++ ( int  )
inline

Increments the function argument.

◆ operator==()

template<typename Num , typename Func , typename T = std::invoke_result_t<Func, Num>>
bool cpark::GeneratorRdd< Num, Func, T >::Iterator::operator== ( const Iterator other) const
inline

Two iterators equal each other if and only if they have the same function and argument.


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