89 #ifndef Foam_ListListOps_H 90 #define Foam_ListListOps_H 114 namespace ListListOps
117 template<
class T,
class AccessOp>
121 template<
class T,
class AccessOp>
125 template<
class AccessType,
class T,
class AccessOp>
129 template<
class AccessType,
class T,
class AccessOp,
class OffsetOp>
Object access operator or list access operator (default is pass-through)
T operator()(const T &x, const label offset) const
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
labelList subSizes(const IndirectListBase< T, Addr > &lists, AccessOp aop)
Return the sizes of the sub-lists.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label sumSizes(const UList< T > &lists, AccessOp aop=accessOp< T >())
The total size of all sub-lists.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Offset operator for ListListOps::combineOffset()
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.