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
Classes | Public Types | Public Member Functions | List of all members
cpark::FilterView< V, Func > Class Template Reference

#include <filter_rdd.h>

Inheritance diagram for cpark::FilterView< V, Func >:

Classes

class  Iterator
 

Public Types

using OriginalIterator = std::ranges::iterator_t< V >
 
using OriginalSentinel = std::ranges::sentinel_t< V >
 

Public Member Functions

constexpr FilterView (V view, Func func)
 
constexpr auto begin () const
 
constexpr auto end () const
 

Detailed Description

template<std::ranges::view V, typename Func>
requires std::invocable<Func, std::ranges::range_value_t<V>>&& std::is_convertible_v< std::invoke_result_t<Func, std::ranges::range_value_t<V>>, bool>
class cpark::FilterView< V, Func >

A new view created from an original view (V) filtered by some predication function (Func). It has almost the same usage as std::ranges::filter_view, except that it provides begin() const and end() const.

Constructor & Destructor Documentation

◆ FilterView()

template<std::ranges::view V, typename Func >
constexpr cpark::FilterView< V, Func >::FilterView ( view,
Func  func 
)
inlineconstexpr

Creates a new view created from an original view filtered by some predication function Func.

Member Function Documentation

◆ begin()

template<std::ranges::view V, typename Func >
constexpr auto cpark::FilterView< V, Func >::begin ( ) const
inlineconstexpr

Returns the begin iterator of FilterView.

◆ end()

template<std::ranges::view V, typename Func >
constexpr auto cpark::FilterView< V, Func >::end ( ) const
inlineconstexpr

Returns the end sentinel of FilterView.


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