Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDActiveView.h |
Include |
#include "Chaos/PBDActiveView.h" |
template<typename TItemsType>
class TPBDActiveView
Index based view, specialized for working with several ranges within a same array such as particles.
Name | Description | |
---|---|---|
|
TPBDActiveView ( |
Name | Description | ||
---|---|---|---|
|
ActivateRange |
Activate (or deactivate) the range starting at the specified offset. |
|
|
AddRange |
Add a new active (or inactive) range at the end of the list, and return its offset. |
|
|
GetActiveRanges() |
Return a list of pair (offset, range) of all active ranges. |
|
|
TItemsType & |
GetItems() |
Return all items, including those not in the view. |
|
TConstArrayV... |
GetRanges() |
Return internal ranges. |
|
GetRangeSize ( |
Return the number of items in the range starting at the specified offset. |
|
|
HasActiveRange() |
Return whether there is any active range in the view. |
|
|
ParallelFor ( |
Execute the specified function in parallel, on all items for each active range (sequential range, parallel items). Set MinParallelSize to run sequential on the smaller ranges. |
|
|
ParallelFor ( |
Execute the specified function in nested parallel for loops, on all items for each active range (parallel range, parallel items). Set MinParallelSize to run sequential on the smaller ranges. |
|
|
RangeFor ( |
Execute the specified function in sequence for all active range. Callee responsible for inner loop. |
|
|
RangeFor ( |
Execute the specified function in parallel for all active ranges. Callee responsible for inner loop. |
|
|
Reset ( |
Remove all ranges above the current given size. |
|
|
SequentialFor ( |
Execute the specified function on all active items. |