diff --git a/applications/test/router/Gather/Gather.C b/applications/test/router/Gather/Gather.C index 24098b939e..5e713f5d5e 100644 --- a/applications/test/router/Gather/Gather.C +++ b/applications/test/router/Gather/Gather.C @@ -37,7 +37,7 @@ namespace Foam // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // Construct from component -template +template Gather::Gather(const T0& localData, const bool redistribute) : List(0), diff --git a/applications/test/router/Gather/Gather.H b/applications/test/router/Gather/Gather.H index 337f7a6908..2733a1008a 100644 --- a/applications/test/router/Gather/Gather.H +++ b/applications/test/router/Gather/Gather.H @@ -48,7 +48,7 @@ namespace Foam Class Gather Declaration \*---------------------------------------------------------------------------*/ -template +template class Gather : public GatherBase, diff --git a/applications/test/router/Gather/GatherBase.C b/applications/test/router/Gather/GatherBase.C index ecba2768b9..f40726e1a4 100644 --- a/applications/test/router/Gather/GatherBase.C +++ b/applications/test/router/Gather/GatherBase.C @@ -32,7 +32,7 @@ namespace Foam // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -template +template Type GatherBase::flatten(const List lst) { label sum = 0; @@ -60,7 +60,7 @@ Type GatherBase::flatten(const List lst) } -template +template IndexType GatherBase::offset ( const List& values, diff --git a/applications/test/router/Gather/GatherBase.H b/applications/test/router/Gather/GatherBase.H index 6a90aef845..63a03aa999 100644 --- a/applications/test/router/Gather/GatherBase.H +++ b/applications/test/router/Gather/GatherBase.H @@ -53,12 +53,12 @@ public: //- Flatten: appends all elements of list into one single list. // Used to collapse 'Gathered' data. - template + template static T flatten(const List); //- Flatten and offset 'Gathered' indices (into value) so they // remain valid with respect to values (after they have been flattened) - template + template static IndexType offset ( const List& values, @@ -68,7 +68,7 @@ public: }; -template +template class AddOp { diff --git a/applications/utilities/mesh/manipulation/createPatch/createPatch.C b/applications/utilities/mesh/manipulation/createPatch/createPatch.C index 9e89c8d4df..96d8164672 100644 --- a/applications/utilities/mesh/manipulation/createPatch/createPatch.C +++ b/applications/utilities/mesh/manipulation/createPatch/createPatch.C @@ -288,7 +288,7 @@ void separateList // Synchronise points on both sides of coupled boundaries. -template +template void syncPoints ( const polyMesh& mesh, diff --git a/applications/utilities/postProcessing/dataConversion/foamToEnsightParts/ensightOutputFunctions.C b/applications/utilities/postProcessing/dataConversion/foamToEnsightParts/ensightOutputFunctions.C index 2df564e0d0..2707e14a67 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToEnsightParts/ensightOutputFunctions.C +++ b/applications/utilities/postProcessing/dataConversion/foamToEnsightParts/ensightOutputFunctions.C @@ -207,7 +207,7 @@ void Foam::ensightLagrangianField //- write generalized field components -template +template void Foam::ensightVolField ( const ensightParts& partsList, diff --git a/applications/utilities/surface/surfaceFeatureExtract/CGALPolyhedron/CGALPolyhedronRings.H b/applications/utilities/surface/surfaceFeatureExtract/CGALPolyhedron/CGALPolyhedronRings.H index 7aa4459e89..6d54cc70d4 100644 --- a/applications/utilities/surface/surfaceFeatureExtract/CGALPolyhedron/CGALPolyhedronRings.H +++ b/applications/utilities/surface/surfaceFeatureExtract/CGALPolyhedron/CGALPolyhedronRings.H @@ -106,7 +106,7 @@ public: ////IMPLEMENTATION//////////////////////////////////////////////////// -template < class TPoly , class VertexPropertyMap> +template< class TPoly , class VertexPropertyMap> void T_PolyhedralSurf_rings :: push_neighbours_of(Vertex* start, int ith, std::vector< Vertex* >& nextRing, @@ -129,7 +129,7 @@ push_neighbours_of(Vertex* start, int ith, } -template +template void T_PolyhedralSurf_rings :: collect_ith_ring(int ith, std::vector< Vertex* >& currentRing, std::vector< Vertex* >& nextRing, @@ -146,7 +146,7 @@ collect_ith_ring(int ith, std::vector< Vertex* >& currentRing, } -template +template void T_PolyhedralSurf_rings :: reset_ring_indices(std::vector< Vertex* >& vces, VertexPropertyMap& vpm) @@ -161,7 +161,7 @@ reset_ring_indices(std::vector< Vertex* >& vces, } -template +template void T_PolyhedralSurf_rings :: collect_i_rings(Vertex* v, int ring_i, @@ -192,7 +192,7 @@ collect_i_rings(Vertex* v, } -template +template void T_PolyhedralSurf_rings :: collect_enough_rings(Vertex* v, unsigned int min_nb, diff --git a/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C b/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C index 01bd647b8a..15f28a953f 100644 --- a/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C +++ b/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C @@ -30,7 +30,7 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // -template +template Foam::scalar Foam::dynamicIndexedOctree::perturbTol_ = 10*SMALL; @@ -38,7 +38,7 @@ Foam::scalar Foam::dynamicIndexedOctree::perturbTol_ = 10*SMALL; // Does bb intersect a sphere around sample? Or is any corner point of bb // closer than nearestDistSqr to sample. -template +template bool Foam::dynamicIndexedOctree::overlaps ( const point& p0, @@ -82,7 +82,7 @@ bool Foam::dynamicIndexedOctree::overlaps // Does bb intersect a sphere around sample? Or is any corner point of bb // closer than nearestDistSqr to sample. -template +template bool Foam::dynamicIndexedOctree::overlaps ( const treeBoundBox& parentBb, @@ -145,7 +145,7 @@ bool Foam::dynamicIndexedOctree::overlaps // // Split list of indices into 8 bins -template +template void Foam::dynamicIndexedOctree::divide ( const autoPtr >& indices, @@ -187,7 +187,7 @@ void Foam::dynamicIndexedOctree::divide // Subdivide the (content) node. -template +template typename Foam::dynamicIndexedOctree::node Foam::dynamicIndexedOctree::divide ( @@ -280,7 +280,7 @@ Foam::dynamicIndexedOctree::divide } -template +template void Foam::dynamicIndexedOctree::recursiveSubDivision ( const treeBoundBox& subBb, @@ -333,7 +333,7 @@ void Foam::dynamicIndexedOctree::recursiveSubDivision // Pre-calculates wherever possible the volume status per node/subnode. // Recurses to determine status of lowest level boxes. Level above is // combination of octants below. -template +template typename Foam::dynamicIndexedOctree::volumeType Foam::dynamicIndexedOctree::calcVolumeType ( @@ -391,7 +391,7 @@ Foam::dynamicIndexedOctree::calcVolumeType } -template +template typename Foam::dynamicIndexedOctree::volumeType Foam::dynamicIndexedOctree::getVolumeType ( @@ -467,7 +467,7 @@ Foam::dynamicIndexedOctree::getVolumeType } -template +template typename Foam::dynamicIndexedOctree::volumeType Foam::dynamicIndexedOctree::getSide ( @@ -492,7 +492,7 @@ Foam::dynamicIndexedOctree::getSide // // Find nearest point starting from nodeI -template +template void Foam::dynamicIndexedOctree::findNearest ( const label nodeI, @@ -564,7 +564,7 @@ void Foam::dynamicIndexedOctree::findNearest // Find nearest point to line. -template +template void Foam::dynamicIndexedOctree::findNearest ( const label nodeI, @@ -630,7 +630,7 @@ void Foam::dynamicIndexedOctree::findNearest } -template +template Foam::treeBoundBox Foam::dynamicIndexedOctree::subBbox ( const label parentNodeI, @@ -656,7 +656,7 @@ Foam::treeBoundBox Foam::dynamicIndexedOctree::subBbox // Takes a bb and a point on/close to the edge of the bb and pushes the point // inside by a small fraction. -template +template Foam::point Foam::dynamicIndexedOctree::pushPoint ( const treeBoundBox& bb, @@ -727,7 +727,7 @@ Foam::point Foam::dynamicIndexedOctree::pushPoint // Takes a bb and a point on the edge of the bb and pushes the point // outside by a small fraction. -template +template Foam::point Foam::dynamicIndexedOctree::pushPoint ( const treeBoundBox& bb, @@ -840,7 +840,7 @@ Foam::point Foam::dynamicIndexedOctree::pushPoint // Guarantees that if pt is on a face it gets perturbed so it is away // from the face edges. // If pt is not on a face does nothing. -template +template Foam::point Foam::dynamicIndexedOctree::pushPointIntoFace ( const treeBoundBox& bb, @@ -1000,7 +1000,7 @@ Foam::point Foam::dynamicIndexedOctree::pushPointIntoFace //// Takes a bb and a point on the outside of the bb. Checks if on multiple // faces //// and if so perturbs point so it is only on one face. -//template +//template //void Foam::dynamicIndexedOctree::checkMultipleFaces //( // const treeBoundBox& bb, @@ -1196,7 +1196,7 @@ Foam::point Foam::dynamicIndexedOctree::pushPointIntoFace // Get parent node and octant. Return false if top of tree reached. -template +template bool Foam::dynamicIndexedOctree::walkToParent ( const label nodeI, @@ -1246,7 +1246,7 @@ bool Foam::dynamicIndexedOctree::walkToParent // node and octant in this node and walks in the direction given by // the facePointBits (combination of treeBoundBox::LEFTBIT, TOPBIT etc.) // Returns false if edge of tree hit. -template +template bool Foam::dynamicIndexedOctree::walkToNeighbour ( const point& facePoint, @@ -1484,7 +1484,7 @@ bool Foam::dynamicIndexedOctree::walkToNeighbour } -template +template Foam::word Foam::dynamicIndexedOctree::faceString ( const direction faceID @@ -1536,7 +1536,7 @@ Foam::word Foam::dynamicIndexedOctree::faceString // Else return a miss and the bounding box face hit: // hitInfo.point = coordinate of intersection of ray with bounding box // hitBits = posbits of point on bounding box -template +template void Foam::dynamicIndexedOctree::traverseNode ( const bool findAny, @@ -1699,7 +1699,7 @@ void Foam::dynamicIndexedOctree::traverseNode // Find first intersection -template +template Foam::pointIndexHit Foam::dynamicIndexedOctree::findLine ( const bool findAny, @@ -1887,7 +1887,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findLine // Find first intersection -template +template Foam::pointIndexHit Foam::dynamicIndexedOctree::findLine ( const bool findAny, @@ -1958,7 +1958,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findLine } -template +template void Foam::dynamicIndexedOctree::findBox ( const label nodeI, @@ -2005,7 +2005,7 @@ void Foam::dynamicIndexedOctree::findBox } -template +template void Foam::dynamicIndexedOctree::findSphere ( const label nodeI, @@ -2053,8 +2053,8 @@ void Foam::dynamicIndexedOctree::findSphere } -template -template +template +template void Foam::dynamicIndexedOctree::findNear ( const scalar nearDist, @@ -2228,7 +2228,7 @@ void Foam::dynamicIndexedOctree::findNear // Number of elements in node. -template +template Foam::label Foam::dynamicIndexedOctree::countElements ( const labelBits index @@ -2261,7 +2261,7 @@ Foam::label Foam::dynamicIndexedOctree::countElements } -template +template void Foam::dynamicIndexedOctree::writeOBJ ( const label nodeI, @@ -2310,7 +2310,7 @@ void Foam::dynamicIndexedOctree::writeOBJ // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -template +template Foam::dynamicIndexedOctree::dynamicIndexedOctree ( const Type& shapes, @@ -2347,14 +2347,14 @@ Foam::dynamicIndexedOctree::dynamicIndexedOctree // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -template +template Foam::scalar& Foam::dynamicIndexedOctree::perturbTol() { return perturbTol_; } -template +template Foam::pointIndexHit Foam::dynamicIndexedOctree::findNearest ( const point& sample, @@ -2382,7 +2382,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findNearest } -template +template Foam::pointIndexHit Foam::dynamicIndexedOctree::findNearest ( const linePointRef& ln, @@ -2416,7 +2416,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findNearest // Find nearest intersection -template +template Foam::pointIndexHit Foam::dynamicIndexedOctree::findLine ( const point& start, @@ -2428,7 +2428,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findLine // Find nearest intersection -template +template Foam::pointIndexHit Foam::dynamicIndexedOctree::findLineAny ( const point& start, @@ -2439,7 +2439,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree::findLineAny } -template +template Foam::labelList Foam::dynamicIndexedOctree::findBox ( const treeBoundBox& searchBox @@ -2457,7 +2457,7 @@ Foam::labelList Foam::dynamicIndexedOctree::findBox } -template +template Foam::labelList Foam::dynamicIndexedOctree::findSphere ( const point& centre, @@ -2477,7 +2477,7 @@ Foam::labelList Foam::dynamicIndexedOctree::findSphere // Find node (as parent+octant) containing point -template +template Foam::labelBits Foam::dynamicIndexedOctree::findNode ( const label nodeI, @@ -2524,7 +2524,7 @@ Foam::labelBits Foam::dynamicIndexedOctree::findNode } -template +template Foam::label Foam::dynamicIndexedOctree::findInside ( const point& sample @@ -2556,7 +2556,7 @@ Foam::label Foam::dynamicIndexedOctree::findInside } -template +template const Foam::labelList& Foam::dynamicIndexedOctree::findIndices ( const point& sample @@ -2581,7 +2581,7 @@ const Foam::labelList& Foam::dynamicIndexedOctree::findIndices // Determine type (inside/outside/mixed) per node. -template +template typename Foam::dynamicIndexedOctree::volumeType Foam::dynamicIndexedOctree::getVolumeType ( @@ -2651,8 +2651,8 @@ Foam::dynamicIndexedOctree::getVolumeType } -template -template +template +template void Foam::dynamicIndexedOctree::findNear ( const scalar nearDist, @@ -2675,7 +2675,7 @@ void Foam::dynamicIndexedOctree::findNear } -template +template bool Foam::dynamicIndexedOctree::insert(label startIndex, label endIndex) { if (startIndex == endIndex) @@ -2721,7 +2721,7 @@ bool Foam::dynamicIndexedOctree::insert(label startIndex, label endIndex) } -template +template bool Foam::dynamicIndexedOctree::insertIndex ( const label nodIndex, @@ -2798,7 +2798,7 @@ bool Foam::dynamicIndexedOctree::insertIndex } -template +template bool Foam::dynamicIndexedOctree::remove(const label index) { if (nodes_.empty()) @@ -2812,7 +2812,7 @@ bool Foam::dynamicIndexedOctree::remove(const label index) } -template +template Foam::label Foam::dynamicIndexedOctree::removeIndex ( const label nodIndex, @@ -2896,7 +2896,7 @@ Foam::label Foam::dynamicIndexedOctree::removeIndex // Print contents of nodeI -template +template void Foam::dynamicIndexedOctree::print ( prefixOSstream& os, @@ -2969,7 +2969,7 @@ void Foam::dynamicIndexedOctree::print } -template +template void Foam::dynamicIndexedOctree::writeTreeInfo() const { label nEntries = 0; @@ -2996,7 +2996,7 @@ void Foam::dynamicIndexedOctree::writeTreeInfo() const // Print contents of nodeI -template +template bool Foam::dynamicIndexedOctree::write(Ostream& os) const { os << *this; @@ -3005,7 +3005,7 @@ bool Foam::dynamicIndexedOctree::write(Ostream& os) const } -template +template Foam::Ostream& Foam::operator<<(Ostream& os, const dynamicIndexedOctree& t) { diff --git a/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.H b/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.H index 7309af83e1..71d2ec6b4d 100644 --- a/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.H +++ b/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.H @@ -74,7 +74,7 @@ TemplateName(dynamicIndexedOctree); Class dynamicIndexedOctree Declaration \*---------------------------------------------------------------------------*/ -template +template class dynamicIndexedOctree : public dynamicIndexedOctreeName @@ -372,7 +372,7 @@ private: ) const; - template + template static void findNear ( const scalar nearDist, @@ -632,7 +632,7 @@ public: //- Find near pairs and apply CompareOp to them. // tree2 can be *this or different tree. - template + template void findNear ( const scalar nearDist, diff --git a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C index df8fc2aec1..b9b55576f8 100644 --- a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C +++ b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C @@ -30,7 +30,7 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // -template +template Foam::scalar Foam::indexedOctree::perturbTol_ = 10*SMALL; @@ -38,7 +38,7 @@ Foam::scalar Foam::indexedOctree::perturbTol_ = 10*SMALL; // Does bb intersect a sphere around sample? Or is any corner point of bb // closer than nearestDistSqr to sample. -template +template bool Foam::indexedOctree::overlaps ( const point& p0, @@ -55,7 +55,7 @@ bool Foam::indexedOctree::overlaps // Does bb intersect a sphere around sample? Or is any corner point of bb // closer than nearestDistSqr to sample. -template +template bool Foam::indexedOctree::overlaps ( const treeBoundBox& parentBb, @@ -118,7 +118,7 @@ bool Foam::indexedOctree::overlaps // // Split list of indices into 8 bins -template +template void Foam::indexedOctree::divide ( const labelList& indices, @@ -161,7 +161,7 @@ void Foam::indexedOctree::divide // Subdivide the (content) node. -template +template typename Foam::indexedOctree::node Foam::indexedOctree::divide ( @@ -231,7 +231,7 @@ Foam::indexedOctree::divide // Split any contents node with more than minSize elements. -template +template void Foam::indexedOctree::splitNodes ( const label minSize, @@ -285,7 +285,7 @@ void Foam::indexedOctree::splitNodes // Reorder contents to be in same order as nodes. Returns number of nodes on // the compactLevel. -template +template Foam::label Foam::indexedOctree::compactContents ( DynamicList& nodes, @@ -355,7 +355,7 @@ Foam::label Foam::indexedOctree::compactContents // Pre-calculates wherever possible the volume status per node/subnode. // Recurses to determine status of lowest level boxes. Level above is // combination of octants below. -template +template typename Foam::indexedOctree::volumeType Foam::indexedOctree::calcVolumeType ( @@ -413,7 +413,7 @@ Foam::indexedOctree::calcVolumeType } -template +template typename Foam::indexedOctree::volumeType Foam::indexedOctree::getVolumeType ( @@ -489,7 +489,7 @@ Foam::indexedOctree::getVolumeType } -template +template typename Foam::indexedOctree::volumeType Foam::indexedOctree::getSide ( @@ -514,7 +514,7 @@ Foam::indexedOctree::getSide // -//template +//template //bool Foam::indexedOctree::findAnyOverlap //( // const label nodeI, @@ -575,7 +575,7 @@ Foam::indexedOctree::getSide // Find nearest point starting from nodeI -template +template void Foam::indexedOctree::findNearest ( const label nodeI, @@ -647,7 +647,7 @@ void Foam::indexedOctree::findNearest // Find nearest point to line. -template +template void Foam::indexedOctree::findNearest ( const label nodeI, @@ -713,7 +713,7 @@ void Foam::indexedOctree::findNearest } -template +template Foam::treeBoundBox Foam::indexedOctree::subBbox ( const label parentNodeI, @@ -739,7 +739,7 @@ Foam::treeBoundBox Foam::indexedOctree::subBbox // Takes a bb and a point on/close to the edge of the bb and pushes the point // inside by a small fraction. -template +template Foam::point Foam::indexedOctree::pushPoint ( const treeBoundBox& bb, @@ -810,7 +810,7 @@ Foam::point Foam::indexedOctree::pushPoint // Takes a bb and a point on the edge of the bb and pushes the point // outside by a small fraction. -template +template Foam::point Foam::indexedOctree::pushPoint ( const treeBoundBox& bb, @@ -923,7 +923,7 @@ Foam::point Foam::indexedOctree::pushPoint // Guarantees that if pt is on a face it gets perturbed so it is away // from the face edges. // If pt is not on a face does nothing. -template +template Foam::point Foam::indexedOctree::pushPointIntoFace ( const treeBoundBox& bb, @@ -1083,7 +1083,7 @@ Foam::point Foam::indexedOctree::pushPointIntoFace //// Takes a bb and a point on the outside of the bb. Checks if on multiple // faces //// and if so perturbs point so it is only on one face. -//template +//template //void Foam::indexedOctree::checkMultipleFaces //( // const treeBoundBox& bb, @@ -1279,7 +1279,7 @@ Foam::point Foam::indexedOctree::pushPointIntoFace // Get parent node and octant. Return false if top of tree reached. -template +template bool Foam::indexedOctree::walkToParent ( const label nodeI, @@ -1329,7 +1329,7 @@ bool Foam::indexedOctree::walkToParent // node and octant in this node and walks in the direction given by // the facePointBits (combination of treeBoundBox::LEFTBIT, TOPBIT etc.) // Returns false if edge of tree hit. -template +template bool Foam::indexedOctree::walkToNeighbour ( const point& facePoint, @@ -1567,7 +1567,7 @@ bool Foam::indexedOctree::walkToNeighbour } -template +template Foam::word Foam::indexedOctree::faceString ( const direction faceID @@ -1619,7 +1619,7 @@ Foam::word Foam::indexedOctree::faceString // Else return a miss and the bounding box face hit: // hitInfo.point = coordinate of intersection of ray with bounding box // hitBits = posbits of point on bounding box -template +template void Foam::indexedOctree::traverseNode ( const bool findAny, @@ -1781,7 +1781,7 @@ void Foam::indexedOctree::traverseNode // Find first intersection -template +template Foam::pointIndexHit Foam::indexedOctree::findLine ( const bool findAny, @@ -1973,7 +1973,7 @@ Foam::pointIndexHit Foam::indexedOctree::findLine } -//template +//template //bool Foam::indexedOctree::isLineInsideOrOutside //( // const label nodeI, @@ -2006,7 +2006,7 @@ Foam::pointIndexHit Foam::indexedOctree::findLine // Find first intersection -template +template Foam::pointIndexHit Foam::indexedOctree::findLine ( const bool findAny, @@ -2077,7 +2077,7 @@ Foam::pointIndexHit Foam::indexedOctree::findLine } -template +template void Foam::indexedOctree::findBox ( const label nodeI, @@ -2124,7 +2124,7 @@ void Foam::indexedOctree::findBox } -template +template void Foam::indexedOctree::findSphere ( const label nodeI, @@ -2172,8 +2172,8 @@ void Foam::indexedOctree::findSphere } -template -template +template +template void Foam::indexedOctree::findNear ( const scalar nearDist, @@ -2347,7 +2347,7 @@ void Foam::indexedOctree::findNear // Number of elements in node. -template +template Foam::label Foam::indexedOctree::countElements ( const labelBits index @@ -2380,7 +2380,7 @@ Foam::label Foam::indexedOctree::countElements } -template +template void Foam::indexedOctree::writeOBJ ( const label nodeI, @@ -2429,7 +2429,7 @@ void Foam::indexedOctree::writeOBJ // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -template +template Foam::indexedOctree::indexedOctree(const Type& shapes) : shapes_(shapes), @@ -2439,7 +2439,7 @@ Foam::indexedOctree::indexedOctree(const Type& shapes) {} -template +template Foam::indexedOctree::indexedOctree ( const Type& shapes, @@ -2454,7 +2454,7 @@ Foam::indexedOctree::indexedOctree {} -template +template Foam::indexedOctree::indexedOctree ( const Type& shapes, @@ -2606,7 +2606,7 @@ Foam::indexedOctree::indexedOctree } -template +template Foam::indexedOctree::indexedOctree ( const Type& shapes, @@ -2622,14 +2622,14 @@ Foam::indexedOctree::indexedOctree // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -template +template Foam::scalar& Foam::indexedOctree::perturbTol() { return perturbTol_; } -//template +//template //bool Foam::indexedOctree::findAnyOverlap //( // const point& sample, @@ -2650,7 +2650,7 @@ Foam::scalar& Foam::indexedOctree::perturbTol() //} -template +template Foam::pointIndexHit Foam::indexedOctree::findNearest ( const point& sample, @@ -2678,7 +2678,7 @@ Foam::pointIndexHit Foam::indexedOctree::findNearest } -template +template Foam::pointIndexHit Foam::indexedOctree::findNearest ( const linePointRef& ln, @@ -2708,7 +2708,7 @@ Foam::pointIndexHit Foam::indexedOctree::findNearest // Find nearest intersection -template +template Foam::pointIndexHit Foam::indexedOctree::findLine ( const point& start, @@ -2720,7 +2720,7 @@ Foam::pointIndexHit Foam::indexedOctree::findLine // Find nearest intersection -template +template Foam::pointIndexHit Foam::indexedOctree::findLineAny ( const point& start, @@ -2731,7 +2731,7 @@ Foam::pointIndexHit Foam::indexedOctree::findLineAny } -template +template Foam::labelList Foam::indexedOctree::findBox ( const treeBoundBox& searchBox @@ -2749,7 +2749,7 @@ Foam::labelList Foam::indexedOctree::findBox } -template +template Foam::labelList Foam::indexedOctree::findSphere ( const point& centre, @@ -2769,7 +2769,7 @@ Foam::labelList Foam::indexedOctree::findSphere // Find node (as parent+octant) containing point -template +template Foam::labelBits Foam::indexedOctree::findNode ( const label nodeI, @@ -2816,7 +2816,7 @@ Foam::labelBits Foam::indexedOctree::findNode } -template +template Foam::label Foam::indexedOctree::findInside(const point& sample) const { labelBits index = findNode(0, sample); @@ -2845,7 +2845,7 @@ Foam::label Foam::indexedOctree::findInside(const point& sample) const } -template +template const Foam::labelList& Foam::indexedOctree::findIndices ( const point& sample @@ -2870,7 +2870,7 @@ const Foam::labelList& Foam::indexedOctree::findIndices // Determine type (inside/outside/mixed) per node. -template +template typename Foam::indexedOctree::volumeType Foam::indexedOctree::getVolumeType ( @@ -2940,8 +2940,8 @@ Foam::indexedOctree::getVolumeType } -template -template +template +template void Foam::indexedOctree::findNear ( const scalar nearDist, @@ -2965,7 +2965,7 @@ void Foam::indexedOctree::findNear // Print contents of nodeI -template +template void Foam::indexedOctree::print ( prefixOSstream& os, @@ -3039,7 +3039,7 @@ void Foam::indexedOctree::print // Print contents of nodeI -template +template bool Foam::indexedOctree::write(Ostream& os) const { os << *this; @@ -3048,7 +3048,7 @@ bool Foam::indexedOctree::write(Ostream& os) const } -template +template Foam::Ostream& Foam::operator<<(Ostream& os, const indexedOctree& t) { return diff --git a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.H b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.H index e945d5d766..40b4f40a7d 100644 --- a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.H +++ b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.H @@ -65,7 +65,7 @@ TemplateName(indexedOctree); Class indexedOctree Declaration \*---------------------------------------------------------------------------*/ -template +template class indexedOctree : public indexedOctreeName @@ -354,7 +354,7 @@ private: ) const; - template + template static void findNear ( const scalar nearDist, @@ -640,7 +640,7 @@ public: //- Find near pairs and apply CompareOp to them. // tree2 can be *this or different tree. - template + template void findNear ( const scalar nearDist, diff --git a/src/OpenFOAM/containers/Lists/Distribution/Distribution.C b/src/OpenFOAM/containers/Lists/Distribution/Distribution.C index 5afae8895f..38fd89f7c5 100644 --- a/src/OpenFOAM/containers/Lists/Distribution/Distribution.C +++ b/src/OpenFOAM/containers/Lists/Distribution/Distribution.C @@ -583,7 +583,7 @@ void Foam::Distribution::operator= // * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * * // -template +template Foam::Istream& Foam::operator>> ( Istream& is, @@ -621,7 +621,7 @@ Foam::Ostream& Foam::operator<< // * * * * * * * * * * * * * * * Global Operators * * * * * * * * * * * * * // -template +template Foam::Distribution Foam::operator+ ( const Distribution& d1, diff --git a/src/OpenFOAM/containers/Lists/ListListOps/ListListOps.C b/src/OpenFOAM/containers/Lists/ListListOps/ListListOps.C index d83b4a9f3a..8a20fac5d0 100644 --- a/src/OpenFOAM/containers/Lists/ListListOps/ListListOps.C +++ b/src/OpenFOAM/containers/Lists/ListListOps/ListListOps.C @@ -30,7 +30,7 @@ namespace Foam // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -template +template AccessType ListListOps::combine(const List& lst, AccessOp aop) { label sum = 0; @@ -57,7 +57,7 @@ AccessType ListListOps::combine(const List& lst, AccessOp aop) } -template +template labelList ListListOps::subSizes(const List& lst, AccessOp aop) { labelList sizes(lst.size()); @@ -70,7 +70,7 @@ labelList ListListOps::subSizes(const List& lst, AccessOp aop) } -template +template AccessType ListListOps::combineOffset ( const List& lst, diff --git a/src/OpenFOAM/containers/Lists/ListListOps/ListListOps.H b/src/OpenFOAM/containers/Lists/ListListOps/ListListOps.H index 05cef4a723..b7bdde763c 100644 --- a/src/OpenFOAM/containers/Lists/ListListOps/ListListOps.H +++ b/src/OpenFOAM/containers/Lists/ListListOps/ListListOps.H @@ -94,7 +94,7 @@ namespace Foam { // Dummy access operator for ListListOps::combine() -template +template class accessOp { public: @@ -107,7 +107,7 @@ public: // Offset operator for ListListOps::combineOffset() -template +template class offsetOp { public: @@ -126,15 +126,15 @@ namespace ListListOps { //- Combines sublists into one big list - template + template AccessType combine(const List&, AccessOp aop = accessOp()); //- Gets sizes of sublists - template + template labelList subSizes(const List&, AccessOp aop = accessOp()); //- Like combine but also offsets sublists based on passed sizes - template + template AccessType combineOffset ( const List&, diff --git a/src/OpenFOAM/containers/Lists/ListOps/ListOps.H b/src/OpenFOAM/containers/Lists/ListOps/ListOps.H index 8da376020d..b05c0ff6f5 100644 --- a/src/OpenFOAM/containers/Lists/ListOps/ListOps.H +++ b/src/OpenFOAM/containers/Lists/ListOps/ListOps.H @@ -255,23 +255,23 @@ public: //- Reverse a list. First element becomes last element etc. -template +template ListType reverseList(const ListType& list); //- Inplace reversal of a list using Swap. -template +template void inplaceReverseList(ListType& list); //- Rotate a list by n places. If n is positive rotate clockwise/right/down. // If n is negative rotate anti-clockwise/left/up. -template +template ListType rotateList(const ListType& list, const label n); //- Inplace reversal of a list using the Reversal Block Swapping algorithm. -template