Reformat "template <..." to template<"

Add support for constructing VectorSpaces from forms with lower component type,
e.g. Vector<scalar> from Vector<label>
This commit is contained in:
Henry
2013-02-21 15:07:09 +00:00
parent eb3ae955e6
commit 944b8d438b
146 changed files with 869 additions and 863 deletions

View File

@ -83,7 +83,7 @@ class patchProbes
//- Sample and write all the fields of the given type
template <class Type>
template<class Type>
void sampleAndWrite(const fieldGroup<Type>&);
@ -109,7 +109,7 @@ class patchProbes
//- Sample a single field on all sample locations
template <class Type>
template<class Type>
tmp<Field<Type> > sample(const word& fieldName) const;

View File

@ -78,7 +78,7 @@ void Foam::patchProbes::sampleAndWrite
}
template <class Type>
template<class Type>
void Foam::patchProbes::sampleAndWrite
(
const fieldGroup<Type>& fields

View File

@ -269,11 +269,11 @@ public:
) const;
//- Sample a single vol field on all sample locations
template <class Type>
template<class Type>
tmp<Field<Type> > sample(const word& fieldName) const;
//- Sample a single scalar field on all sample locations
template <class Type>
template<class Type>
tmp<Field<Type> > sampleSurfaceFields(const word& fieldName) const;
//- Sample a surface field at all locations

View File

@ -111,7 +111,7 @@ void Foam::probes::sampleAndWrite
}
template <class Type>
template<class Type>
void Foam::probes::sampleAndWrite(const fieldGroup<Type>& fields)
{
forAll(fields, fieldI)

View File

@ -105,7 +105,7 @@ class sampledSets
//- Class used for sampling volFields
template <class Type>
template<class Type>
class volFieldSampler
:
public List<Field<Type> >

View File

@ -29,7 +29,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::sampledSets::volFieldSampler<Type>::volFieldSampler
(
const word& interpolationScheme,
@ -76,7 +76,7 @@ Foam::sampledSets::volFieldSampler<Type>::volFieldSampler
}
template <class Type>
template<class Type>
Foam::sampledSets::volFieldSampler<Type>::volFieldSampler
(
const GeometricField<Type, fvPatchField, volMesh>& field,
@ -109,7 +109,7 @@ Foam::sampledSets::volFieldSampler<Type>::volFieldSampler
}
template <class Type>
template<class Type>
Foam::sampledSets::volFieldSampler<Type>::volFieldSampler
(
const List<Field<Type> >& values,

View File

@ -104,14 +104,14 @@ class distanceSurface
void createGeometry();
//- sample field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvPatchField, volMesh>& vField
) const;
template <class Type>
template<class Type>
tmp<Field<Type> >
interpolateField(const interpolation<Type>&) const;

View File

@ -30,7 +30,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::distanceSurface::sampleField
(
@ -54,7 +54,7 @@ Foam::distanceSurface::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::distanceSurface::interpolateField
(

View File

@ -427,7 +427,7 @@ public:
//- Interpolates cCoords,pCoords. Uses the references to the original
// fields used to create the iso surface.
template <class Type>
template<class Type>
tmp<Field<Type> > interpolate
(
const GeometricField<Type, fvPatchField, volMesh>& cCoords,

View File

@ -357,7 +357,7 @@ public:
//- Interpolates cCoords,pCoords. Takes the original fields
// used to create the iso surface.
template <class Type>
template<class Type>
tmp<Field<Type> > interpolate
(
const scalarField& cVals,
@ -367,7 +367,7 @@ public:
) const;
//- Interpolates cCoords,pCoords.
template <class Type>
template<class Type>
tmp<Field<Type> > interpolate
(
const Field<Type>& cCoords,

View File

@ -491,7 +491,7 @@ void Foam::isoSurfaceCell::generateTriPoints
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::isoSurfaceCell::interpolate
(
@ -545,7 +545,7 @@ Foam::isoSurfaceCell::interpolate
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::isoSurfaceCell::interpolate
(

View File

@ -681,7 +681,7 @@ void Foam::isoSurface::generateTriPoints
}
//template <class Type>
//template<class Type>
//Foam::tmp<Foam::Field<Type> >
//Foam::isoSurface::sample(const Field<Type>& vField) const
//{
@ -689,7 +689,7 @@ void Foam::isoSurface::generateTriPoints
//}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::isoSurface::interpolate
(

View File

@ -122,14 +122,14 @@ class sampledIsoSurface
bool updateGeometry() const;
//- sample field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvPatchField, volMesh>& vField
) const;
template <class Type>
template<class Type>
tmp<Field<Type> >
interpolateField(const interpolation<Type>&) const;

View File

@ -91,14 +91,14 @@ class sampledIsoSurfaceCell
bool updateGeometry() const;
//- sample field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvPatchField, volMesh>& vField
) const;
template <class Type>
template<class Type>
tmp<Field<Type> >
interpolateField(const interpolation<Type>&) const;

View File

@ -31,7 +31,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledIsoSurfaceCell::sampleField
(
@ -45,7 +45,7 @@ Foam::sampledIsoSurfaceCell::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledIsoSurfaceCell::interpolateField
(

View File

@ -30,7 +30,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledIsoSurface::sampleField
(
@ -44,7 +44,7 @@ Foam::sampledIsoSurface::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledIsoSurface::interpolateField
(

View File

@ -102,14 +102,14 @@ class sampledCuttingPlane
void createGeometry();
//- sample field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvPatchField, volMesh>& vField
) const;
template <class Type>
template<class Type>
tmp<Field<Type> >
interpolateField(const interpolation<Type>&) const;

View File

@ -31,7 +31,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledCuttingPlane::sampleField
(
@ -42,7 +42,7 @@ Foam::sampledCuttingPlane::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledCuttingPlane::interpolateField
(

View File

@ -81,20 +81,20 @@ class sampledPatch
// Private Member Functions
//- sample field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvPatchField, volMesh>& vField
) const;
//- sample surface field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvsPatchField, surfaceMesh>& sField
) const;
template <class Type>
template<class Type>
tmp<Field<Type> >
interpolateField(const interpolation<Type>&) const;

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledPatch::sampleField
(
@ -48,7 +48,7 @@ Foam::sampledPatch::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledPatch::sampleField
(
@ -69,7 +69,7 @@ Foam::sampledPatch::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledPatch::interpolateField
(

View File

@ -65,13 +65,13 @@ class sampledPatchInternalField
// Private Member Functions
//- sample field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvPatchField, volMesh>& vField
) const;
template <class Type>
template<class Type>
tmp<Field<Type> > interpolateField(const interpolation<Type>&) const;
public:

View File

@ -29,7 +29,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledPatchInternalField::sampleField
(
@ -64,7 +64,7 @@ Foam::sampledPatchInternalField::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledPatchInternalField::interpolateField
(

View File

@ -66,14 +66,14 @@ class sampledPlane
// Private Member Functions
//- sample field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvPatchField, volMesh>& vField
) const;
template <class Type>
template<class Type>
tmp<Field<Type> >
interpolateField(const interpolation<Type>&) const;

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledPlane::sampleField
(
@ -38,7 +38,7 @@ Foam::sampledPlane::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledPlane::interpolateField
(

View File

@ -125,14 +125,14 @@ private:
const indexedOctree<treeDataFace>& nonCoupledboundaryTree() const;
//- sample field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvPatchField, volMesh>& vField
) const;
template <class Type>
template<class Type>
tmp<Field<Type> >
interpolateField(const interpolation<Type>&) const;

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledTriSurfaceMesh::sampleField
(
@ -83,7 +83,7 @@ Foam::sampledTriSurfaceMesh::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledTriSurfaceMesh::interpolateField
(

View File

@ -89,14 +89,14 @@ class sampledThresholdCellFaces
bool updateGeometry() const;
//- sample field on faces
template <class Type>
template<class Type>
tmp<Field<Type> > sampleField
(
const GeometricField<Type, fvPatchField, volMesh>& vField
) const;
template <class Type>
template<class Type>
tmp<Field<Type> >
interpolateField(const interpolation<Type>&) const;

View File

@ -32,7 +32,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledThresholdCellFaces::sampleField
(
@ -46,7 +46,7 @@ Foam::sampledThresholdCellFaces::sampleField
}
template <class Type>
template<class Type>
Foam::tmp<Foam::Field<Type> >
Foam::sampledThresholdCellFaces::interpolateField
(