ParallelScanBody¶
[req.parallel_scan]
A type Body satisfies the ParallelScanBody if it meets the following requirements:
ParallelScanBody Requirements: Pseudo-Signature, Semantics
-
void
Body
::
operator()
(const Range &r, pre_scan_tag)¶ Accumulate summary for range
r
. For example, if computing a running sum of an array, the summary for a ranger
is the sum of the array elements corresponding tor
.
-
void
Body
::
operator()
(const Range &r, final_scan_tag)¶ Compute scan result and summary for range
r
.
-
void
Body
::
reverse_join
(Body &b)¶ Merge summary accumulated by
b
into summary accumulated bythis
, wherethis
was created earlier fromb
by splitting constructor.
-
void
Body
::
assign
(Body &b)¶ Assign summary of
b
tothis
.