Various utility functions to work on Lists of Lists (usually resulting from 'gather'ing and combining information from individual processors) More...
Functions | |
| template<class ListType , class T > | |
| ListType | concat (List< T > &lists) |
| Concatenate sub-lists (moving their content) into a single list. More... | |
| template<class T > | |
| label | totalSize (const UList< T > &lists) |
| The total size of all sub-lists. More... | |
| 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... | |
| template<class IntListListType > | |
| void | inplaceRenumber (const labelUList &oldToNew, IntListListType &lists) |
| Inplace renumber the values (not the indices) of a list of lists. More... | |
| template<class IntListListType > | |
| void | inplaceRenumber (const Map< label > &oldToNew, IntListListType &lists) |
| Inplace renumber the values of a list of lists. More... | |
Various utility functions to work on Lists of Lists (usually resulting from 'gather'ing and combining information from individual processors)
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:
Concatenate sub-lists (moving their content) into a single list.
The input lists parameter is cleared on completion.
Definition at line 75 of file ListListOps.C.
Referenced by Foam::rmDir().

The total size of all sub-lists.
Referenced by GeometricField< Foam::vector, Foam::fvPatchField, Foam::volMesh >::boundaryEvaluate(), CompactListList< T >::findRow(), decomposedBlockData::gatherProcData(), and OFstreamCollator::write().

Return the sizes of the sub-lists.
The total size of all sub-lists.
Combines sub-lists into a single list.
Definition at line 102 of file ListListOps.C.
Referenced by badQualityToCell::applyToSet(), badQualityToFace::applyToSet(), regionsToCell::applyToSet(), boundaryToCell::applyToSet(), boundaryToFace::applyToSet(), nbrToCell::applyToSet(), nearestToPoint::applyToSet(), nearestToCell::applyToSet(), patchToPoint::applyToSet(), patchToCell::applyToSet(), clipPlaneToPoint::applyToSet(), clipPlaneToCell::applyToSet(), clipPlaneToFace::applyToSet(), searchableSurfaceToPoint::applyToSet(), patchToFace::applyToSet(), searchableSurfaceToCell::applyToSet(), haloToCell::applyToSet(), searchableSurfaceToFace::applyToSet(), shapeToCell::applyToSet(), sphereToFace::applyToSet(), sphereToPoint::applyToSet(), sphereToCell::applyToSet(), boxToPoint::applyToSet(), boxToFace::applyToSet(), boxToCell::applyToSet(), holeToFace::applyToSet(), regionToFace::applyToSet(), targetVolumeToCell::applyToSet(), rotatedBoxToCell::applyToSet(), patchDistanceToCell::applyToSet(), faceToPoint::applyToSet(), cylinderToPoint::applyToSet(), cylinderToFace::applyToSet(), cylinderToCell::applyToSet(), zoneToCell::applyToSet(), zoneToPoint::applyToSet(), zoneToFace::applyToSet(), planeToFaceZone::applyToSet(), cellToPoint::applyToSet(), pointToCell::applyToSet(), regionToCell::applyToSet(), pointToFace::applyToSet(), surfaceToPoint::applyToSet(), cellToFace::applyToSet(), faceToCell::applyToSet(), faceZoneToCell::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 132 of file ListListOps.C.
References UList< T >::begin().

| void inplaceRenumber | ( | const labelUList & | oldToNew, |
| IntListListType & | lists | ||
| ) |
Inplace renumber the values (not the indices) of a list of lists.
Negative elements are left untouched.
Definition at line 69 of file ListOpsTemplates.C.
| void inplaceRenumber | ( | const Map< label > & | oldToNew, |
| IntListListType & | lists | ||
| ) |
Inplace renumber the values of a list of lists.
Values that are not mapped by oldToNew are left untouched.
Definition at line 108 of file ListOpsTemplates.C.
References HashTable< T, Key, Hash >::cfind(), and HashTable< T, Key, Hash >::Iterator< Const >::good().
