proxygen
|
#include <Parallel-inl.h>
Public Member Functions | |
ChunkedRangeSource ()=default | |
ChunkedRangeSource (int chunkSize, Range< Iterator > range) | |
template<class Handler > | |
bool | apply (Handler &&handler) const |
Public Member Functions inherited from folly::gen::GenImpl< RangeSource< Iterator > &&, ChunkedRangeSource< Iterator > > | |
bool | apply (Handler &&handler) const |
void | foreach (Body &&body) const |
Public Member Functions inherited from folly::gen::FBounded< Self > | |
const Self & | self () const |
Self & | self () |
Private Attributes | |
int | chunkSize_ |
Range< Iterator > | range_ |
Additional Inherited Members | |
Public Types inherited from folly::gen::GenImpl< RangeSource< Iterator > &&, ChunkedRangeSource< Iterator > > | |
typedef RangeSource< Iterator > && | ValueType |
typedef std::decay< RangeSource< Iterator > && >::type | StorageType |
Static Public Attributes inherited from folly::gen::GenImpl< RangeSource< Iterator > &&, ChunkedRangeSource< Iterator > > | |
static constexpr bool | infinite |
Protected Member Functions inherited from folly::gen::GenImpl< RangeSource< Iterator > &&, ChunkedRangeSource< Iterator > > | |
GenImpl ()=default | |
GenImpl (GenImpl &&)=default | |
GenImpl (const GenImpl &)=default | |
GenImpl & | operator= (GenImpl &&)=default |
GenImpl & | operator= (const GenImpl &)=default |
ChunkedRangeSource - For slicing up ranges into a sequence of chunks given a maximum chunk size.
Usually used through the 'chunked' helper, like:
int n = chunked(values) | parallel // each thread processes a chunk | concat // but can still process values one at a time | filter(isPrime) | atomic_count;
Definition at line 397 of file Parallel-inl.h.
|
default |
|
inline |
Definition at line 404 of file Parallel-inl.h.
|
inline |
Definition at line 408 of file Parallel-inl.h.
References handler(), folly::gen::move, and range_.
|
private |
Definition at line 399 of file Parallel-inl.h.
|
private |
Definition at line 400 of file Parallel-inl.h.