35 #ifndef DimensionedFieldListSlicer_H
36 #define DimensionedFieldListSlicer_H
67 template<
class GeoMesh,
template<
class>
class PrimitiveField>
78 template<
class GeoMesh,
template<
class>
class PrimitiveField>
92 template<
class GeoMesh,
template<
class>
class PrimitiveField>
99 fields_.
resize(geoFields.size());
103 fields_.
set(fieldi, &geoFields[fieldi].primitiveField());
108 template<
class GeoMesh,
template<
class>
class PrimitiveField>
115 fields_.
resize(geoFields.size());
119 fields_.
set(fieldi, &geoFields[fieldi].primitiveField());
135 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField=
Field>
138 public PtrList<DimensionedField<Type, GeoMesh, PrimitiveField>>,
156 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.
void set(const UPtrList< DimensionedField< Type, GeoMesh, PrimitiveField >> &geoFields)
Set the field pointers.
DimensionedFieldListSlicer()
Construct null. Set later.
FieldListSlice< Type > slice(const label elementi) const
Return a slice for an internal element.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Class to provide a list-like interface to a slice through a UPtrList of fields.
Pre-declare SubField and related Field type.
Generic GeometricField class.
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)