29#ifndef Foam_FieldReuseFunctions_H
30#define Foam_FieldReuseFunctions_H
40template<
class TypeR,
class Type1>
65 const bool initCopy =
false
86template<
class TypeR> tmp<Field<TypeR>>
New
89 const bool initCopy =
false
99template<
class TypeR,
class Type1,
class Type12,
class Type2>
114template<
class TypeR,
class Type1,
class Type12>
115struct reuseTmpTmp<TypeR, Type1, Type12, TypeR>
134template<
class TypeR,
class Type2>
135struct reuseTmpTmp<TypeR, TypeR, TypeR, Type2>
138 static tmp<Field<TypeR>>
New
158 static tmp<Field<TypeR>>
New
160 const tmp<Field<TypeR>>& tf1,
161 const tmp<Field<TypeR>>& tf2
173 return tmp<Field<TypeR>>
::New(tf1().size());
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
void size(const label n)
Older name for setAddressableSize.
A class for managing temporary objects.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
static tmp< Field< TypeR > > New(const tmp< Field< Type1 > > &tf1, const tmp< Field< TypeR > > &tf2)
Second input has return type.
static tmp< Field< TypeR > > New(const tmp< Field< TypeR > > &tf1, const tmp< Field< Type2 > > &tf2)
First input has return type.
static tmp< Field< TypeR > > New(const tmp< Field< TypeR > > &tf1, const tmp< Field< TypeR > > &tf2)
Both inputs have return type.
static tmp< Field< TypeR > > New(const tmp< Field< Type1 > > &tf1, const tmp< Field< Type2 > > &tf2)
Dissimilar types: just use size.
static tmp< Field< TypeR > > New(const tmp< Field< TypeR > > &tf1, const bool initCopy=false)
Identical input and return types: allow optional copy assignment of the initial content.
static tmp< Field< TypeR > > New(const tmp< Field< Type1 > > &tf1)
Dissimilar types: just use size.
static tmp< Field< TypeR > > New(const Field< Type1 > &f1)
Pass-through to tmp New.