Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Commits on Source (1)
COMP: add forward declarations for friend operators (eg, gcc-4.9)
· 7fb146a2
Mark OLESEN
authored
Dec 18, 2017
7fb146a2
Hide whitespace changes
Inline
Side-by-side
meshLibrary/utilities/anisotropicMeshing/coordinateModification/coordinateModification.H
View file @
7fb146a2
...
...
@@ -50,6 +50,8 @@ class plane;
namespace
Module
{
class
coordinateModification
;
Ostream
&
operator
<<
(
Ostream
&
,
const
coordinateModification
&
);
/*---------------------------------------------------------------------------*\
Class coordinateModification Declaration
...
...
meshLibrary/utilities/anisotropicMeshing/coordinateModification/planeScaling.H
View file @
7fb146a2
...
...
@@ -44,6 +44,8 @@ namespace Foam
{
namespace
Module
{
class
planeScaling
;
Ostream
&
operator
<<
(
Ostream
&
,
const
planeScaling
&
);
/*---------------------------------------------------------------------------*\
Class planeScaling Declaration
...
...
meshLibrary/utilities/containers/Lists/cellListPMG.H
View file @
7fb146a2
...
...
@@ -46,6 +46,9 @@ namespace Foam
{
namespace
Module
{
class
cellListPMG
;
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
cellListPMG
&
);
inline
Istream
&
operator
>>
(
Istream
&
,
cellListPMG
&
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -103,9 +106,9 @@ public:
inline
void
operator
=
(
const
cellList
&
);
friend
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
cellListPMG
&
);
inline
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
cellListPMG
&
);
friend
inline
Istream
&
operator
>>
(
Istream
&
,
cellListPMG
&
);
inline
friend
Istream
&
operator
>>
(
Istream
&
,
cellListPMG
&
);
};
...
...
meshLibrary/utilities/containers/Lists/faceListPMG.H
View file @
7fb146a2
...
...
@@ -46,6 +46,9 @@ namespace Foam
{
namespace
Module
{
class
faceListPMG
;
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
faceListPMG
&
);
inline
Istream
&
operator
>>
(
Istream
&
,
faceListPMG
&
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -118,9 +121,9 @@ public:
inline
void
operator
=
(
const
faceList
&
);
friend
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
faceListPMG
&
);
inline
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
faceListPMG
&
);
friend
inline
Istream
&
operator
>>
(
Istream
&
,
faceListPMG
&
);
inline
friend
Istream
&
operator
>>
(
Istream
&
,
faceListPMG
&
);
};
...
...
meshLibrary/utilities/containers/Lists/pointFieldPMG.H
View file @
7fb146a2
...
...
@@ -46,6 +46,9 @@ namespace Foam
{
namespace
Module
{
class
pointFieldPMG
;
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
pointFieldPMG
&
);
inline
Istream
&
operator
>>
(
Istream
&
,
pointFieldPMG
&
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -125,9 +128,9 @@ public:
inline
void
operator
=
(
const
pointField
&
);
friend
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
pointFieldPMG
&
);
inline
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
pointFieldPMG
&
);
friend
inline
Istream
&
operator
>>
(
Istream
&
,
pointFieldPMG
&
);
inline
friend
Istream
&
operator
>>
(
Istream
&
,
pointFieldPMG
&
);
};
...
...
meshLibrary/utilities/meshes/polyMeshGen/boundaryPatch/boundaryPatchBase.H
View file @
7fb146a2
...
...
@@ -47,6 +47,8 @@ namespace Foam
{
namespace
Module
{
class
boundaryPatchBase
;
Ostream
&
operator
<<
(
Ostream
&
,
const
boundaryPatchBase
&
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
meshLibrary/utilities/meshes/primitives/meshSubsets/meshSubset.H
View file @
7fb146a2
...
...
@@ -50,6 +50,9 @@ class Ostream;
namespace
Module
{
class
VRWGraph
;
class
meshSubset
;
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
meshSubset
&
);
inline
Istream
&
operator
>>
(
Istream
&
,
meshSubset
&
);
/*---------------------------------------------------------------------------*\
class meshSubset Declaration
...
...
@@ -161,8 +164,8 @@ public:
// IOstream operators
friend
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
meshSubset
&
);
friend
inline
Istream
&
operator
>>
(
Istream
&
,
meshSubset
&
);
inline
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
meshSubset
&
);
inline
friend
Istream
&
operator
>>
(
Istream
&
,
meshSubset
&
);
};
...
...
meshLibrary/utilities/meshes/primitives/partTet/partTet.H
View file @
7fb146a2
...
...
@@ -48,6 +48,8 @@ class Ostream;
namespace
Module
{
class
partTet
;
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
partTet
&
);
/*---------------------------------------------------------------------------*\
class partTet Declaration
...
...
@@ -155,7 +157,7 @@ public:
// IOstream operators
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
partTet
&
);
inline
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
partTet
&
);
};
...
...
meshLibrary/utilities/octrees/meshOctree/meshOctreeCube/meshOctreeCube.H
View file @
7fb146a2
...
...
@@ -50,7 +50,9 @@ namespace Module
{
class
triSurf
;
class
VRWGraph
;
class
meshOctreeCube
;
class
meshOctreeSlot
;
Ostream
&
operator
<<
(
Ostream
&
,
const
meshOctreeCube
&
);
/*---------------------------------------------------------------------------*\
Class meshOctreeCube Declaration
...
...
meshLibrary/utilities/octrees/meshOctree/meshOctreeCube/meshOctreeCubeBasic.H
View file @
7fb146a2
...
...
@@ -44,6 +44,9 @@ namespace Foam
{
namespace
Module
{
class
meshOctreeCubeBasic
;
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
meshOctreeCubeBasic
&
);
inline
Istream
&
operator
>>
(
Istream
&
,
meshOctreeCubeBasic
&
);
/*---------------------------------------------------------------------------*\
Class meshOctreeCubeBasic Declaration
...
...
@@ -126,13 +129,13 @@ public:
// Friend operators
friend
inline
Ostream
&
operator
<<
inline
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
meshOctreeCubeBasic
&
);
friend
inline
Istream
&
operator
>>
inline
friend
Istream
&
operator
>>
(
Istream
&
,
meshOctreeCubeBasic
&
...
...
meshLibrary/utilities/octrees/meshOctree/meshOctreeCube/meshOctreeCubeCoordinates.H
View file @
7fb146a2
...
...
@@ -50,6 +50,9 @@ class boundBox;
namespace
Module
{
class
triSurf
;
class
meshOctreeCubeCoordinates
;
inline
Istream
&
operator
>>
(
Istream
&
,
meshOctreeCubeCoordinates
&
);
inline
Ostream
&
operator
<<
(
Ostream
&
,
const
meshOctreeCubeCoordinates
&
);
/*---------------------------------------------------------------------------*\
Class meshOctreeCubeCoordinates Declaration
...
...
@@ -218,12 +221,12 @@ public:
inline
bool
operator
<
(
const
meshOctreeCubeCoordinates
&
)
const
;
inline
bool
operator
>
(
const
meshOctreeCubeCoordinates
&
)
const
;
friend
inline
Istream
&
operator
>>
inline
friend
Istream
&
operator
>>
(
Istream
&
,
meshOctreeCubeCoordinates
&
);
friend
inline
Ostream
&
operator
<<
inline
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
meshOctreeCubeCoordinates
&
...
...
meshLibrary/utilities/octrees/meshOctree/refinementControls/objectRefinement/objectRefinement.H
View file @
7fb146a2
...
...
@@ -49,6 +49,8 @@ class boundBox;
namespace
Module
{
class
objectRefinement
;
Ostream
&
operator
<<
(
Ostream
&
,
const
objectRefinement
&
);
/*---------------------------------------------------------------------------*\
Class objectRefinement Declaration
...
...
meshLibrary/utilities/octrees/meshOctree/refinementControls/patchRefinement/patchRefinement.C
View file @
7fb146a2
...
...
@@ -53,12 +53,18 @@ Foam::Module::patchRefinement::patchRefinement(Istream& is)
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam
::
word
Foam
::
Module
::
patchRefinement
::
patchName
()
const
const
Foam
::
word
&
Foam
::
Module
::
patchRefinement
::
patchName
()
const
{
return
patchName_
;
}
Foam
::
scalar
Foam
::
Module
::
patchRefinement
::
cellSize
()
const
{
return
cellSize_
;
}
Foam
::
label
Foam
::
Module
::
patchRefinement
::
patchInSurface
(
const
triSurf
&
ts
)
const
{
...
...
@@ -75,12 +81,6 @@ Foam::Module::patchRefinement::patchInSurface(const triSurf& ts) const
}
Foam
::
scalar
Foam
::
Module
::
patchRefinement
::
cellSize
()
const
{
return
cellSize_
;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
void
Foam
::
Module
::
patchRefinement
::
operator
=
(
const
patchRefinement
&
pr
)
...
...
@@ -113,26 +113,25 @@ Foam::Ostream& Foam::Module::operator<<
}
// * * * * * * * * * * * * * * * Global Operators * * * * * * * * * * * * * //
bool
Foam
::
Module
::
operator
==
(
const
Foam
::
Module
::
patchRefinement
&
p1
,
const
Foam
::
Module
::
patchRefinement
&
p2
const
Foam
::
Module
::
patchRefinement
&
lhs
,
const
Foam
::
Module
::
patchRefinement
&
rhs
)
{
if
(
p1
.
patchName
()
==
p2
.
patchName
())
return
true
;
return
false
;
return
(
lhs
.
patchName
()
==
rhs
.
patchName
());
}
bool
Foam
::
Module
::
operator
!=
(
const
Foam
::
Module
::
patchRefinement
&
p1
,
const
Foam
::
Module
::
patchRefinement
&
p2
const
Foam
::
Module
::
patchRefinement
&
lhs
,
const
Foam
::
Module
::
patchRefinement
&
rhs
)
{
return
!
(
p1
==
p2
);
return
!
(
lhs
==
rhs
);
}
...
...
meshLibrary/utilities/octrees/meshOctree/refinementControls/patchRefinement/patchRefinement.H
View file @
7fb146a2
...
...
@@ -50,6 +50,9 @@ class Ostream;
namespace
Module
{
class
triSurf
;
class
patchRefinement
;
Istream
&
operator
>>
(
Istream
&
is
,
patchRefinement
&
pr
);
Ostream
&
operator
<<
(
Ostream
&
os
,
const
patchRefinement
&
pr
);
/*---------------------------------------------------------------------------*\
Class patchRefinement Declaration
...
...
@@ -84,25 +87,29 @@ public:
// Member Functions
word
patchName
()
const
;
label
patchInSurface
(
const
triSurf
&
)
const
;
const
word
&
patchName
()
const
;
scalar
cellSize
()
const
;
label
patchInSurface
(
const
triSurf
&
ts
)
const
;
// Operators
void
operator
=
(
const
patchRefinement
&
);
friend
Istream
&
operator
>>
(
Istream
&
,
patchRefinement
&
);
friend
Ostream
&
operator
<<
(
Ostream
&
,
const
patchRefinement
&
);
friend
bool
operator
==
(
const
patchRefinement
&
,
const
patchRefinement
&
);
friend
bool
operator
!=
(
const
patchRefinement
&
,
const
patchRefinement
&
);
friend
Istream
&
operator
>>
(
Istream
&
is
,
patchRefinement
&
pr
);
friend
Ostream
&
operator
<<
(
Ostream
&
os
,
const
patchRefinement
&
pr
);
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Global Operators
bool
operator
==
(
const
patchRefinement
&
lhs
,
const
patchRefinement
&
rhs
);
bool
operator
!=
(
const
patchRefinement
&
lhs
,
const
patchRefinement
&
rhs
);
}
// End namespace Module
}
// End namespace Foam
...
...
meshLibrary/utilities/surfaceTools/meshSurfaceEngine/meshSurfaceEngine.H
View file @
7fb146a2
...
...
@@ -49,6 +49,8 @@ namespace Foam
{
namespace
Module
{
// Forward declarations
class
meshSurfaceEngineModifier
;
/*---------------------------------------------------------------------------*\
Class meshSurfaceEngine Declaration
...
...
meshLibrary/utilities/surfaceTools/meshSurfaceMapper/parMapperHelper.H
View file @
7fb146a2
...
...
@@ -44,6 +44,9 @@ namespace Foam
{
namespace
Module
{
class
parMapperHelper
;
Ostream
&
operator
<<
(
Ostream
&
os
,
const
parMapperHelper
&
h
);
Istream
&
operator
>>
(
Istream
&
is
,
parMapperHelper
&
h
);
/*---------------------------------------------------------------------------*\
Class parMapperHelper Declaration
...
...