From 3f608e95e6f88c11550aa515ce0303534fcdb7e6 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 30 May 2016 08:28:35 +0100 Subject: [PATCH] Added forward declaration of friend functions --- .../mesh/conversion/star3ToFoam/coupledFacePair.H | 7 +++++++ .../conformalVoronoi2DMesh/cv2DControls/cv2DControls.H | 7 +++++++ .../featurePointConformer/pointFeatureEdgesTypes.H | 7 +++++++ .../indexedVertex/indexedVertexEnum.H | 8 ++++++++ src/dynamicMesh/boundaryPatch/boundaryPatch.H | 7 +++++++ src/mesh/blockMesh/curvedEdges/curvedEdge.H | 7 +++++++ .../algorithms/PatchEdgeFaceWave/patchEdgeFaceInfo.H | 10 ++++++++++ .../algorithms/PatchEdgeFaceWave/patchEdgeFaceRegion.H | 9 +++++++++ .../PatchEdgeFaceWave/patchEdgeFaceRegions.H | 9 +++++++++ .../algorithms/PointEdgeWave/pointEdgePoint.H | 9 +++++++++ src/meshTools/cellClassification/cellInfo.H | 9 +++++++++ src/meshTools/coordinateSystems/coordinateSystem.H | 8 ++++++++ 12 files changed, 97 insertions(+) diff --git a/applications/utilities/mesh/conversion/star3ToFoam/coupledFacePair.H b/applications/utilities/mesh/conversion/star3ToFoam/coupledFacePair.H index f3a416d50e..28fbc2f448 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/coupledFacePair.H +++ b/applications/utilities/mesh/conversion/star3ToFoam/coupledFacePair.H @@ -42,6 +42,13 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class coupledFacePair; + +Ostream& operator<<(Ostream&, const coupledFacePair&); + + /*---------------------------------------------------------------------------*\ Class coupledFacePair Declaration \*---------------------------------------------------------------------------*/ diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoi2DMesh/cv2DControls/cv2DControls.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoi2DMesh/cv2DControls/cv2DControls.H index be9910347e..6b73735cac 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoi2DMesh/cv2DControls/cv2DControls.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoi2DMesh/cv2DControls/cv2DControls.H @@ -45,6 +45,13 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class cv2DControls; + +Ostream& operator<<(Ostream&, const cv2DControls&); + + /*---------------------------------------------------------------------------*\ Class cv2DControls Declaration \*---------------------------------------------------------------------------*/ diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/featurePointConformer/pointFeatureEdgesTypes.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/featurePointConformer/pointFeatureEdgesTypes.H index c3c3d823f0..f0acbe6c06 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/featurePointConformer/pointFeatureEdgesTypes.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/featurePointConformer/pointFeatureEdgesTypes.H @@ -44,6 +44,13 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class pointFeatureEdgesTypes; + +Ostream& operator<<(Ostream&, const pointFeatureEdgesTypes&); + + /*---------------------------------------------------------------------------*\ Class pointFeatureEdgesTypes Declaration \*---------------------------------------------------------------------------*/ diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexEnum.H b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexEnum.H index cc3e2d85ac..48dde412fd 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexEnum.H +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedVertex/indexedVertexEnum.H @@ -41,6 +41,14 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class indexedVertexEnum; + +Istream& operator>>(Istream&, indexedVertexEnum&); +Ostream& operator<<(Ostream&, const indexedVertexEnum&); + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // class indexedVertexEnum diff --git a/src/dynamicMesh/boundaryPatch/boundaryPatch.H b/src/dynamicMesh/boundaryPatch/boundaryPatch.H index 5dfb0e5b45..1366904cc0 100644 --- a/src/dynamicMesh/boundaryPatch/boundaryPatch.H +++ b/src/dynamicMesh/boundaryPatch/boundaryPatch.H @@ -44,6 +44,13 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class boundaryPatch; + +Ostream& operator<<(Ostream&, const boundaryPatch&); + + /*---------------------------------------------------------------------------*\ Class boundaryPatch Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/mesh/blockMesh/curvedEdges/curvedEdge.H b/src/mesh/blockMesh/curvedEdges/curvedEdge.H index 7c3e37a295..298c200b3a 100644 --- a/src/mesh/blockMesh/curvedEdges/curvedEdge.H +++ b/src/mesh/blockMesh/curvedEdges/curvedEdge.H @@ -47,6 +47,13 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class curvedEdge; + +Ostream& operator<<(Ostream&, const curvedEdge&); + + /*---------------------------------------------------------------------------*\ Class curvedEdge Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceInfo.H b/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceInfo.H index ab17ddc635..7e142c02a0 100644 --- a/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceInfo.H +++ b/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceInfo.H @@ -48,9 +48,19 @@ namespace Foam { // Forward declaration of classes + class polyPatch; class polyMesh; + +// Forward declaration of friend functions and operators + +class patchEdgeFaceInfo; + +Istream& operator>>(Istream&, patchEdgeFaceInfo&); +Ostream& operator<<(Ostream&, const patchEdgeFaceInfo&); + + /*---------------------------------------------------------------------------*\ Class patchEdgeFaceInfo Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceRegion.H b/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceRegion.H index 65f6760cae..056e8be039 100644 --- a/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceRegion.H +++ b/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceRegion.H @@ -53,6 +53,15 @@ namespace Foam class polyPatch; class polyMesh; + +// Forward declaration of friend functions and operators + +class patchEdgeFaceRegion; + +Istream& operator>>(Istream&, patchEdgeFaceRegion&); +Ostream& operator<<(Ostream&, const patchEdgeFaceRegion&); + + /*---------------------------------------------------------------------------*\ Class patchEdgeFaceRegion Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceRegions.H b/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceRegions.H index 5d4ec16283..57115d2dba 100644 --- a/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceRegions.H +++ b/src/meshTools/algorithms/PatchEdgeFaceWave/patchEdgeFaceRegions.H @@ -51,6 +51,15 @@ namespace Foam // Forward declaration of classes class polyMesh; + +// Forward declaration of friend functions and operators + +class patchEdgeFaceRegions; + +Istream& operator>>(Istream&, patchEdgeFaceRegions&); +Ostream& operator<<(Ostream&, const patchEdgeFaceRegions&); + + /*---------------------------------------------------------------------------*\ Class patchEdgeFaceRegions Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/meshTools/algorithms/PointEdgeWave/pointEdgePoint.H b/src/meshTools/algorithms/PointEdgeWave/pointEdgePoint.H index ee9c4438ba..e7ff086dfd 100644 --- a/src/meshTools/algorithms/PointEdgeWave/pointEdgePoint.H +++ b/src/meshTools/algorithms/PointEdgeWave/pointEdgePoint.H @@ -53,6 +53,15 @@ namespace Foam class polyPatch; class polyMesh; + +// Forward declaration of friend functions and operators + +class pointEdgePoint; + +Istream& operator>>(Istream&, pointEdgePoint&); +Ostream& operator<<(Ostream&, const pointEdgePoint&); + + /*---------------------------------------------------------------------------*\ Class pointEdgePoint Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/meshTools/cellClassification/cellInfo.H b/src/meshTools/cellClassification/cellInfo.H index 8a43eb43bf..1912c20bbe 100644 --- a/src/meshTools/cellClassification/cellInfo.H +++ b/src/meshTools/cellClassification/cellInfo.H @@ -48,6 +48,15 @@ namespace Foam class polyPatch; class polyMesh; + +// Forward declaration of friend functions and operators + +class cellInfo; + +Istream& operator>>(Istream&, cellInfo&); +Ostream& operator<<(Ostream&, const cellInfo&); + + /*---------------------------------------------------------------------------*\ Class cellInfo Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/meshTools/coordinateSystems/coordinateSystem.H b/src/meshTools/coordinateSystems/coordinateSystem.H index ab040f77dc..be719150b7 100644 --- a/src/meshTools/coordinateSystems/coordinateSystem.H +++ b/src/meshTools/coordinateSystems/coordinateSystem.H @@ -78,6 +78,14 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class coordinateSystem; + +bool operator!=(const coordinateSystem&, const coordinateSystem&); +Ostream& operator<<(Ostream&, const coordinateSystem&); + + /*---------------------------------------------------------------------------*\ Class coordinateSystem Declaration \*---------------------------------------------------------------------------*/