33 #ifndef FieldListSlice_H
34 #define FieldListSlice_H
58 const label elementi_;
96 return fields_.
size();
105 return fields_[fieldi][elementi_];
111 #define typedefTypeFieldListSlice(Type, nullArg) \
112 typedef FieldListSlice<Type> Type##FieldListSlice;
114 #undef typedefTypeFieldListSlice
#define typedefTypeFieldListSlice(Type, nullArg)
Define scalarFieldListSlice, vectorFieldListSlice, etc...
Class to provide a list-like interface to a slice through a PtrList 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.
Include the header files for all the primitive types that Fields are instantiated for.
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(makeFieldSourceTypedef)