ENH: consistent autoPtr handling in PatchFunction1

This commit is contained in:
Mark Olesen
2020-05-20 14:47:16 +02:00
parent 2659c48f36
commit 09d9c5cc03
11 changed files with 99 additions and 115 deletions

View File

@ -81,13 +81,13 @@ public:
const bool faceValues = true
);
//- Construct as copy
//- Copy construct
${typeName}PatchFunction1${FieldType}
(
const ${typeName}PatchFunction1${FieldType}&
);
//- Construct as copy, resetting patch
//- Copy construct, resetting patch
${typeName}PatchFunction1${FieldType}
(
const ${typeName}PatchFunction1${FieldType}&,
@ -122,20 +122,20 @@ public:
// Member Functions
//- Return value as a function of (scalar) independent variable
virtual tmp<Field<${TemplateType}>> value(const scalar x) const;
//- Return value as a function of (scalar) independent variable
virtual tmp<Field<${TemplateType}>> value(const scalar x) const;
//- Is value constant (i.e. independent of x)
virtual bool constant() const
{
return false;
}
//- Is value constant (i.e. independent of x)
virtual bool constant() const
{
return false;
}
//- Is value uniform (i.e. independent of coordinate)
virtual bool uniform() const
{
return false;
}
//- Is value uniform (i.e. independent of coordinate)
virtual bool uniform() const
{
return false;
}
};