Added forward declaration of friend functions

This commit is contained in:
Henry Weller
2016-05-30 13:21:29 +01:00
parent fef82f935c
commit 1be96a546c
47 changed files with 395 additions and 32 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -40,6 +40,17 @@ SourceFiles
namespace Foam
{
// Forward declaration of friend functions and operators
class phasePairKey;
bool operator==(const phasePairKey&, const phasePairKey&);
bool operator!=(const phasePairKey&, const phasePairKey&);
Istream& operator>>(Istream&, phasePairKey&);
Ostream& operator<<(Ostream&, const phasePairKey&);
/*---------------------------------------------------------------------------*\
Class phasePairKey Declaration
\*---------------------------------------------------------------------------*/

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -40,6 +40,17 @@ SourceFiles
namespace Foam
{
// Forward declaration of friend functions and operators
class phasePairKey;
bool operator==(const phasePairKey&, const phasePairKey&);
bool operator!=(const phasePairKey&, const phasePairKey&);
Istream& operator>>(Istream&, phasePairKey&);
Ostream& operator<<(Ostream&, const phasePairKey&);
/*---------------------------------------------------------------------------*\
Class phasePairKey Declaration
\*---------------------------------------------------------------------------*/

View File

@ -41,14 +41,6 @@ SourceFiles
namespace Foam
{
// Forward declaration of friend functions and operators
class indexedVertexEnum;
Istream& operator>>(Istream&, indexedVertexEnum&);
Ostream& operator<<(Ostream&, const indexedVertexEnum&);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
class indexedVertexEnum
@ -90,6 +82,9 @@ public:
};
Istream& operator>>(Istream&, indexedVertexEnum::vertexType&);
Ostream& operator<<(Ostream&, const indexedVertexEnum::vertexType&);
template<>
inline bool contiguous<indexedVertexEnum>()
{