Various utility functions to work on Lists of Lists (usually resulting from 'gather'ing and combining information from individual processors) More...
Functions | |
template<class T , class AccessOp > | |
labelList | subSizes (const UList< T > &lists, AccessOp aop=accessOp< T >()) |
Return the sizes of the sub-lists. More... | |
template<class T , class AccessOp > | |
label | sumSizes (const UList< T > &lists, AccessOp aop=accessOp< T >()) |
The total size of all sub-lists. More... | |
template<class AccessType , class T , class AccessOp > | |
AccessType | combine (const UList< T > &lists, AccessOp aop=accessOp< T >()) |
Combines sub-lists into a single list. More... | |
template<class AccessType , class T , class AccessOp , class OffsetOp > | |
AccessType | combineOffset (const UList< T > &lists, const labelUList &offsets, AccessOp aop, OffsetOp oop=offsetOp< T >()) |
Like combine but also offsets sublists based on passed sizes. More... | |
Various utility functions to work on Lists of Lists (usually resulting from 'gather'ing and combining information from individual processors)
- combine :
takes (elements of) sublists and appends them into one big list.
The access of data is through an AccessOp so that data can be 'gather'ed in one go, minimizing communication, and then picked apart and recombined.
Example:
Return the sizes of the sub-lists.
The total size of all sub-lists.
Combines sub-lists into a single list.
Definition at line 69 of file ListListOps.C.
References T.
Referenced by badQualityToCell::applyToSet(), boundaryToCell::applyToSet(), boundaryToFace::applyToSet(), badQualityToFace::applyToSet(), nbrToCell::applyToSet(), nearestToPoint::applyToSet(), haloToCell::applyToSet(), nearestToCell::applyToSet(), patchToCell::applyToSet(), zoneToFace::applyToSet(), zoneToPoint::applyToSet(), zoneToCell::applyToSet(), patchToFace::applyToSet(), shapeToCell::applyToSet(), regionToFace::applyToSet(), boxToCell::applyToSet(), boxToFace::applyToSet(), boxToPoint::applyToSet(), sphereToFace::applyToSet(), searchableSurfaceToPoint::applyToSet(), sphereToPoint::applyToSet(), searchableSurfaceToCell::applyToSet(), sphereToCell::applyToSet(), searchableSurfaceToFace::applyToSet(), cellToPoint::applyToSet(), faceToPoint::applyToSet(), cylinderToPoint::applyToSet(), cylinderToCell::applyToSet(), cylinderToFace::applyToSet(), pointToCell::applyToSet(), cylinderAnnulusToFace::applyToSet(), cylinderAnnulusToCell::applyToSet(), pointToFace::applyToSet(), targetVolumeToCell::applyToSet(), faceToCell::applyToSet(), regionsToCell::applyToSet(), cellToFace::applyToSet(), rotatedBoxToCell::applyToSet(), faceZoneToCell::applyToSet(), surfaceToPoint::applyToSet(), regionToCell::applyToSet(), surfaceToCell::applyToSet(), InflationInjection< CloudType >::parcelsToInject(), syncTools::syncEdgeMap(), and syncTools::syncPointMap().
AccessType combineOffset | ( | const UList< T > & | lists, |
const labelUList & | offsets, | ||
AccessOp | aop, | ||
OffsetOp | oop = offsetOp<T>() |
||
) |
Like combine but also offsets sublists based on passed sizes.
Definition at line 99 of file ListListOps.C.
References UList< T >::begin(), and T.