33 #ifndef FieldListSlice_H
34 #define FieldListSlice_H
57 const label elementi_;
95 return fields_.
size();
104 return fields_[fieldi][elementi_];
110 #define typedefTypeFieldListSlice(Type, nullArg) \
111 typedef FieldListSlice<Type> Type##FieldListSlice;
113 #undef typedefTypeFieldListSlice
#define typedefTypeFieldListSlice(Type, nullArg)
Define scalarFieldListSlice, vectorFieldListSlice, etc...
Class to provide a list-like interface to a slice through a UPtrList of fields.
label size() const
Return the size of the slice.
const Type & operator[](const label fieldi) const
Access an element.
FieldListSlice(const UPtrList< const Field< Type >> &fields, const label elementi)
Construct from a list of fields and an element index.
Pre-declare SubField and related Field type.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
label size() const
Return the number of elements in the UPtrList.
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
FOR_ALL_FIELD_TYPES(makeDimensionedPointFieldFunctions)