stringOps: Rationalisation of expansions
Specific names have been given for expand functions. Unused functions have been removed, and functions only used locally have been removed from the namespace. Documentation has been corrected. Default and alternative value handling has been removed from code template expansion.
This commit is contained in:
@ -93,7 +93,7 @@ ${typeName}FixedValueFvPatch${FieldType}
|
||||
:
|
||||
fixedValueFvPatchField<${TemplateType}>(p, iF, dict)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum}"
|
||||
" from patch/dictionary\n";
|
||||
@ -112,7 +112,7 @@ ${typeName}FixedValueFvPatch${FieldType}
|
||||
:
|
||||
fixedValueFvPatchField<${TemplateType}>(ptf, p, iF, mapper)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum}"
|
||||
" from patch/DimensionedField/mapper\n";
|
||||
@ -129,7 +129,7 @@ ${typeName}FixedValueFvPatch${FieldType}
|
||||
:
|
||||
fixedValueFvPatchField<${TemplateType}>(ptf, iF)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum} "
|
||||
"as copy/DimensionedField\n";
|
||||
@ -142,7 +142,7 @@ ${typeName}FixedValueFvPatch${FieldType}
|
||||
${typeName}FixedValueFvPatch${FieldType}::
|
||||
~${typeName}FixedValueFvPatch${FieldType}()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"destroy ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
@ -158,7 +158,7 @@ void ${typeName}FixedValueFvPatch${FieldType}::updateCoeffs()
|
||||
return;
|
||||
}
|
||||
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"updateCoeffs ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
|
||||
@ -92,7 +92,7 @@ ${typeName}FixedValuePointPatch${FieldType}
|
||||
:
|
||||
fixedValuePointPatchField<${TemplateType}>(p, iF, dict)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum}"
|
||||
" from patch/dictionary\n";
|
||||
@ -111,7 +111,7 @@ ${typeName}FixedValuePointPatch${FieldType}
|
||||
:
|
||||
fixedValuePointPatchField<${TemplateType}>(ptf, p, iF, mapper)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum}"
|
||||
" from patch/DimensionedField/mapper\n";
|
||||
@ -128,7 +128,7 @@ ${typeName}FixedValuePointPatch${FieldType}
|
||||
:
|
||||
fixedValuePointPatchField<${TemplateType}>(ptf, iF)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum} "
|
||||
"as copy/DimensionedField\n";
|
||||
@ -141,7 +141,7 @@ ${typeName}FixedValuePointPatch${FieldType}
|
||||
${typeName}FixedValuePointPatch${FieldType}::
|
||||
~${typeName}FixedValuePointPatch${FieldType}()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"destroy ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
@ -157,7 +157,7 @@ void ${typeName}FixedValuePointPatch${FieldType}::updateCoeffs()
|
||||
return;
|
||||
}
|
||||
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"updateCoeffs ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ ${typeName}Function1${TemplateType}
|
||||
entryName
|
||||
)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<< "Construct ${typeName} sha1: ${SHA1sum} from dictionary\n";
|
||||
}
|
||||
@ -94,7 +94,7 @@ ${typeName}Function1${TemplateType}
|
||||
f1
|
||||
)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<< "Construct ${typeName} sha1: ${SHA1sum} as copy\n";
|
||||
}
|
||||
@ -106,7 +106,7 @@ ${typeName}Function1${TemplateType}
|
||||
Foam::Function1s::${typeName}Function1${TemplateType}::
|
||||
~${typeName}Function1${TemplateType}()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<< "Destroy ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ ${typeName}Function2${TemplateType}
|
||||
entryName
|
||||
)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<< "Construct ${typeName} sha1: ${SHA1sum} from dictionary\n";
|
||||
}
|
||||
@ -94,7 +94,7 @@ ${typeName}Function2${TemplateType}
|
||||
f1
|
||||
)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<< "Construct ${typeName} sha1: ${SHA1sum} as copy\n";
|
||||
}
|
||||
@ -106,7 +106,7 @@ ${typeName}Function2${TemplateType}
|
||||
Foam::Function2s::${typeName}Function2${TemplateType}::
|
||||
~${typeName}Function2${TemplateType}()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<< "Destroy ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ ${typeName}FunctionObject::~${typeName}FunctionObject()
|
||||
|
||||
bool ${typeName}FunctionObject::read(const dictionary& dict)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"read ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
@ -123,7 +123,7 @@ bool ${typeName}FunctionObject::read(const dictionary& dict)
|
||||
|
||||
Foam::wordList ${typeName}FunctionObject::fields() const
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"fields ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
@ -139,7 +139,7 @@ Foam::wordList ${typeName}FunctionObject::fields() const
|
||||
|
||||
bool ${typeName}FunctionObject::execute()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"execute ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
@ -154,7 +154,7 @@ bool ${typeName}FunctionObject::execute()
|
||||
|
||||
bool ${typeName}FunctionObject::write()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"write ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
@ -169,7 +169,7 @@ bool ${typeName}FunctionObject::write()
|
||||
|
||||
bool ${typeName}FunctionObject::end()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"end ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
|
||||
@ -103,7 +103,7 @@ ${typeName}FvModel${SourceType}
|
||||
fvModel(name, modelType, mesh, dict),
|
||||
set_(mesh, coeffs())
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum}"
|
||||
" from components\n";
|
||||
@ -116,7 +116,7 @@ ${typeName}FvModel${SourceType}
|
||||
${typeName}FvModel${SourceType}::
|
||||
~${typeName}FvModel${SourceType}()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"destroy ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
@ -131,7 +131,7 @@ void ${typeName}FvModel${SourceType}::addSup
|
||||
const word& fieldName
|
||||
) const
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"${typeName}FvModel${SourceType}::addSup()\n";
|
||||
}
|
||||
@ -149,7 +149,7 @@ void ${typeName}FvModel${SourceType}::addSup
|
||||
const word& fieldName
|
||||
) const
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"${typeName}FvModel${SourceType}::addSup()\n";
|
||||
}
|
||||
@ -168,7 +168,7 @@ void ${typeName}FvModel${SourceType}::addSup
|
||||
const word& fieldName
|
||||
) const
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"${typeName}FvModel${SourceType}::addSup()\n";
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ ${typeName}MixedValueFvPatch${FieldType}
|
||||
:
|
||||
mixedFvPatchField<${TemplateType}>(p, iF, dict)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum}"
|
||||
" from patch/dictionary\n";
|
||||
@ -112,7 +112,7 @@ ${typeName}MixedValueFvPatch${FieldType}
|
||||
:
|
||||
mixedFvPatchField<${TemplateType}>(ptf, p, iF, mapper)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum}"
|
||||
" from patch/DimensionedField/mapper\n";
|
||||
@ -129,7 +129,7 @@ ${typeName}MixedValueFvPatch${FieldType}
|
||||
:
|
||||
mixedFvPatchField<${TemplateType}>(ptf, iF)
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"construct ${typeName} sha1: ${SHA1sum} "
|
||||
"as copy/DimensionedField\n";
|
||||
@ -142,7 +142,7 @@ ${typeName}MixedValueFvPatch${FieldType}
|
||||
${typeName}MixedValueFvPatch${FieldType}::
|
||||
~${typeName}MixedValueFvPatch${FieldType}()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"destroy ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
@ -158,7 +158,7 @@ void ${typeName}MixedValueFvPatch${FieldType}::updateCoeffs()
|
||||
return;
|
||||
}
|
||||
|
||||
if (${verbose:-false})
|
||||
if (${verbose})
|
||||
{
|
||||
Info<<"updateCoeffs ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user