Typedefs | |
| using | Range = tbb::blocked_range<size_t> |
Functions | |
| template<typename IndexType> | |
| auto | blockRange (const IdRange< IndexType > &bitRange) |
| template<typename BS> | |
| auto | blockRange (const BS &bs) |
| template<typename BS> | |
| auto | bitRange (const BS &bs) |
| template<typename IndexType> | |
| auto | bitSubRange (const IdRange< IndexType > &bitRange, const tbb::blocked_range< size_t > &range, const tbb::blocked_range< size_t > &subRange) |
| void | forAllRanged (const Range &bitRange, FunctionRef< void(size_t, const Range &)> f) |
| void | forAllRanged (const Range &bitRange, FunctionRef< void(size_t, const Range &)> f, tbb::task_group_context &tgc) |
| void | forAllRanged (const Range &bitRange, FunctionRef< void(size_t, const Range &, void *)> f, FunctionRef< void *()> ctx) |
| bool | forAllRanged (const Range &bitRange, FunctionRef< void(size_t, const Range &, void *)> f, FunctionRef< void *()> ctx, const ProgressCallback &progressCb, size_t reportProgressEveryBit=1024) |
| void | forSetRanged (const BitSet &bs, FunctionRef< void(size_t, const Range &)> f) |
| calls f( bit, subBitRange ) for every set bit of bs in parallel threads, skipping the blocks without set bits | |
| void | forSetRanged (const BitSet &bs, FunctionRef< void(size_t, const Range &)> f, tbb::task_group_context &tgc) |
| bool | forSetRanged (const BitSet &bs, FunctionRef< void(size_t, const Range &, void *)> f, FunctionRef< void *()> ctx, const ProgressCallback &progressCb={}, size_t reportProgressEveryBit=1024) |
| the progress counts all bits, set or not | |
| template<typename BS, typename F, typename ... Cb> | |
| auto | ForAllRanged (const BS &bs, F &&f, Cb &&... cb) |
| template<typename BS, typename L, typename F, typename ... Cb> | |
| auto | ForAllRanged (const BS &bs, tbb::enumerable_thread_specific< L > &e, F &&f, Cb &&... cb) |
| using MR::BitSetParallel::Range = tbb::blocked_range<size_t> |
|
inline |
| auto MR::BitSetParallel::bitSubRange | ( | const IdRange< IndexType > & | bitRange, |
| const tbb::blocked_range< size_t > & | range, | ||
| const tbb::blocked_range< size_t > & | subRange ) |
|
inline |
|
inline |
| auto MR::BitSetParallel::ForAllRanged | ( | const BS & | bs, |
| F && | f, | ||
| Cb &&... | cb ) |
| auto MR::BitSetParallel::ForAllRanged | ( | const BS & | bs, |
| tbb::enumerable_thread_specific< L > & | e, | ||
| F && | f, | ||
| Cb &&... | cb ) |
| void MR::BitSetParallel::forAllRanged | ( | const Range & | bitRange, |
| FunctionRef< void(size_t, const Range &)> | f ) |
| void MR::BitSetParallel::forAllRanged | ( | const Range & | bitRange, |
| FunctionRef< void(size_t, const Range &)> | f, | ||
| tbb::task_group_context & | tgc ) |
| void MR::BitSetParallel::forAllRanged | ( | const Range & | bitRange, |
| FunctionRef< void(size_t, const Range &, void *)> | f, | ||
| FunctionRef< void *()> | ctx ) |
| bool MR::BitSetParallel::forAllRanged | ( | const Range & | bitRange, |
| FunctionRef< void(size_t, const Range &, void *)> | f, | ||
| FunctionRef< void *()> | ctx, | ||
| const ProgressCallback & | progressCb, | ||
| size_t | reportProgressEveryBit = 1024 ) |
| void MR::BitSetParallel::forSetRanged | ( | const BitSet & | bs, |
| FunctionRef< void(size_t, const Range &)> | f ) |
calls f( bit, subBitRange ) for every set bit of bs in parallel threads, skipping the blocks without set bits
| void MR::BitSetParallel::forSetRanged | ( | const BitSet & | bs, |
| FunctionRef< void(size_t, const Range &)> | f, | ||
| tbb::task_group_context & | tgc ) |
| bool MR::BitSetParallel::forSetRanged | ( | const BitSet & | bs, |
| FunctionRef< void(size_t, const Range &, void *)> | f, | ||
| FunctionRef< void *()> | ctx, | ||
| const ProgressCallback & | progressCb = {}, | ||
| size_t | reportProgressEveryBit = 1024 ) |
the progress counts all bits, set or not