35 #ifndef DimensionedFieldListSlicer_H
36 #define DimensionedFieldListSlicer_H
51 template<
class Type,
class GeoMesh>
108 &geoFields[fieldi].primitiveField()
125 template<
class Type,
class GeoMesh>
128 public PtrList<DimensionedField<Type, GeoMesh>>,
152 template<
class ... Args>
#define forAll(list, i)
Loop across all elements in list.
void set()
Set the field pointers in the slicer.
DimensionedFieldListAndSlicer()
Null Constructor.
Class to provide list slices to different parts of a dimensioned field.
DimensionedFieldListSlicer()
Construct null. Set later.
void set(const UPtrList< const geoFieldType > &geoFields)
Set the field pointers.
FieldListSlice< Type > slice(const label elementi) const
Return a slice for an internal element.
Class to provide a list-like interface to a slice through a PtrList of fields.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
label size() const
Return the number of elements in the UPtrList.
void resize(const label)
Reset size of UPtrList. This can only be used to set the size.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Foam::argList args(argc, argv)