Loading...
Searching...
No Matches
ListListOps.H File Reference
Include dependency graph for ListListOps.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  offsetOp< T >
 Offset operator for ListListOps::combineOffset(). More...

Namespaces

namespace  Foam::ListListOps
 Various utility functions to work on Lists of Lists (usually resulting from 'gather'ing and combining information from individual processors).
namespace  Foam
 Namespace for OpenFOAM.

Functions

template<class T, class AccessOp>
labelList subSizes (const UList< T > &lists, AccessOp aop=accessOp< T >())
 Return the sizes of the sub-lists.
template<class T, class AccessOp>
label sumSizes (const UList< T > &lists, AccessOp aop=accessOp< T >())
 The total size of all sub-lists.
template<class AccessType, class T, class AccessOp>
AccessType combine (const UList< T > &lists, AccessOp aop=accessOp< T >())
 Combines sub-lists into a single list.
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.

Detailed Description

Original source file ListListOps.H

Definition in file ListListOps.H.