diff --git a/src/OSspecific/POSIX/memInfo/memInfo.H b/src/OSspecific/POSIX/memInfo/memInfo.H index 540ea9b6d1..c86c07537b 100644 --- a/src/OSspecific/POSIX/memInfo/memInfo.H +++ b/src/OSspecific/POSIX/memInfo/memInfo.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -47,6 +47,14 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class memInfo; + +Istream& operator>>(Istream&, memInfo&); +Ostream& operator<<(Ostream&, const memInfo&); + + /*---------------------------------------------------------------------------*\ Class memInfo Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/OpenFOAM/db/IOstreams/token/token.H b/src/OpenFOAM/db/IOstreams/token/token.H index 23a04d1d30..7229e58b86 100644 --- a/src/OpenFOAM/db/IOstreams/token/token.H +++ b/src/OpenFOAM/db/IOstreams/token/token.H @@ -58,9 +58,11 @@ namespace Foam // Forward declaration of friend functions and operators class token; + Istream& operator>>(Istream&, token&); Ostream& operator<<(Ostream&, const token&); + /*---------------------------------------------------------------------------*\ Class token Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/OpenFOAM/db/dictionary/dictionaryEntry/dictionaryEntry.H b/src/OpenFOAM/db/dictionary/dictionaryEntry/dictionaryEntry.H index c4271e3969..7ac7670f24 100644 --- a/src/OpenFOAM/db/dictionary/dictionaryEntry/dictionaryEntry.H +++ b/src/OpenFOAM/db/dictionary/dictionaryEntry/dictionaryEntry.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -51,6 +51,13 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class dictionaryEntry; + +Ostream& operator<<(Ostream&, const dictionaryEntry&); + + /*---------------------------------------------------------------------------*\ Class dictionaryEntry Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/OpenFOAM/dimensionSet/dimensionSet.H b/src/OpenFOAM/dimensionSet/dimensionSet.H index b4af80416b..dd596cc6ea 100644 --- a/src/OpenFOAM/dimensionSet/dimensionSet.H +++ b/src/OpenFOAM/dimensionSet/dimensionSet.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -90,6 +90,8 @@ dimensionSet inv(const dimensionSet&); // for transcendental functions dimensionSet trans(const dimensionSet&); +dimensionSet atan2(const dimensionSet&, const dimensionSet&); + // Return the argument; transformations do not change the dimensions dimensionSet transform(const dimensionSet&); diff --git a/src/OpenFOAM/matrices/LUscalarMatrix/procLduInterface.H b/src/OpenFOAM/matrices/LUscalarMatrix/procLduInterface.H index d113a6b30c..2f6035e3cf 100644 --- a/src/OpenFOAM/matrices/LUscalarMatrix/procLduInterface.H +++ b/src/OpenFOAM/matrices/LUscalarMatrix/procLduInterface.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -45,6 +45,14 @@ namespace Foam class lduInterfaceField; + +// Forward declaration of friend functions and operators + +class procLduInterface; + +Ostream& operator<<(Ostream&, const procLduInterface&); + + /*---------------------------------------------------------------------------*\ Class procLduInterface Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H b/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H index 771317ed72..575916f633 100644 --- a/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H +++ b/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrix.H @@ -68,7 +68,9 @@ namespace Foam // Forward declaration of friend functions and operators class lduMatrix; + Ostream& operator<<(Ostream&, const lduMatrix&); +Ostream& operator<<(Ostream&, const InfoProxy&); /*---------------------------------------------------------------------------*\ diff --git a/src/OpenFOAM/meshes/boundBox/boundBox.H b/src/OpenFOAM/meshes/boundBox/boundBox.H index a340a90c04..36bbcad65d 100644 --- a/src/OpenFOAM/meshes/boundBox/boundBox.H +++ b/src/OpenFOAM/meshes/boundBox/boundBox.H @@ -45,6 +45,9 @@ namespace Foam class boundBox; template class tmp; +bool operator==(const boundBox&, const boundBox&); +bool operator!=(const boundBox&, const boundBox&); + Istream& operator>>(Istream&, boundBox&); Ostream& operator<<(Ostream&, const boundBox&); diff --git a/src/OpenFOAM/meshes/lduMesh/lduMesh.H b/src/OpenFOAM/meshes/lduMesh/lduMesh.H index f42413294b..b871ee9566 100644 --- a/src/OpenFOAM/meshes/lduMesh/lduMesh.H +++ b/src/OpenFOAM/meshes/lduMesh/lduMesh.H @@ -45,6 +45,14 @@ namespace Foam class objectRegistry; + +// Forward declaration of friend functions and operators + +class lduMesh; + +Ostream& operator<<(Ostream&, const InfoProxy&); + + /*---------------------------------------------------------------------------*\ Class lduMesh Declaration \*---------------------------------------------------------------------------*/ @@ -90,6 +98,7 @@ public: const BinaryOp& bop ) const; + // Info //- Return info proxy. @@ -99,6 +108,7 @@ public: return *this; } + // Ostream operator friend Ostream& operator<<(Ostream&, const InfoProxy&); diff --git a/src/OpenFOAM/primitives/strings/keyType/keyType.H b/src/OpenFOAM/primitives/strings/keyType/keyType.H index 53ef756ee4..f79332ff5e 100644 --- a/src/OpenFOAM/primitives/strings/keyType/keyType.H +++ b/src/OpenFOAM/primitives/strings/keyType/keyType.H @@ -50,6 +50,14 @@ class Istream; class Ostream; +// Forward declaration of friend functions and operators + +class keyType; + +Istream& operator>>(Istream&, keyType&); +Ostream& operator<<(Ostream&, const keyType&); + + /*---------------------------------------------------------------------------*\ Class keyType Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChanger.H b/src/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChanger.H index 9a8d91010b..b9f4cbff2e 100644 --- a/src/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChanger.H +++ b/src/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChanger.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -50,6 +50,14 @@ class polyMesh; class mapPolyMesh; class polyBoundaryMesh; + +// Forward declaration of friend functions and operators + +class polyTopoChanger; + +Ostream& operator<<(Ostream&, const polyTopoChanger&); + + /*---------------------------------------------------------------------------*\ Class polyTopoChanger Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/meshTools/triSurface/surfaceLocation/surfaceLocation.H b/src/meshTools/triSurface/surfaceLocation/surfaceLocation.H index d9591b4d55..7bc2263f6b 100644 --- a/src/meshTools/triSurface/surfaceLocation/surfaceLocation.H +++ b/src/meshTools/triSurface/surfaceLocation/surfaceLocation.H @@ -59,6 +59,16 @@ namespace Foam // Forward declaration of classes class triSurface; + +// Forward declaration of friend functions and operators + +class surfaceLocation; + +Istream& operator>>(Istream&, surfaceLocation&); +Ostream& operator<<(Ostream&, const surfaceLocation&); +Ostream& operator<<(Ostream&, const InfoProxy&); + + /*---------------------------------------------------------------------------*\ Class surfaceLocation Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/sampling/sampledSurface/sampledSurface/sampledSurface.H b/src/sampling/sampledSurface/sampledSurface/sampledSurface.H index 0507a6887a..98db69744a 100644 --- a/src/sampling/sampledSurface/sampledSurface/sampledSurface.H +++ b/src/sampling/sampledSurface/sampledSurface/sampledSurface.H @@ -71,6 +71,13 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class sampledSurface; + +Ostream& operator<<(Ostream&, const sampledSurface&); + + /*---------------------------------------------------------------------------*\ Class sampledSurface Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/surfMesh/surfZone/surfZone/surfZoneIOList.H b/src/surfMesh/surfZone/surfZone/surfZoneIOList.H index dc291846f7..aab90ddf77 100644 --- a/src/surfMesh/surfZone/surfZone/surfZoneIOList.H +++ b/src/surfMesh/surfZone/surfZone/surfZoneIOList.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -45,7 +45,12 @@ SourceFiles namespace Foam { -// Forward declaration of classes +// Forward declaration of friend functions and operators + +class surfZoneIOList; + +Ostream& operator<<(Ostream&, const surfZoneIOList&); + /*---------------------------------------------------------------------------*\ Class surfZoneIOList Declaration diff --git a/src/surfMesh/surfaceFormats/stl/STLtriangle.H b/src/surfMesh/surfaceFormats/stl/STLtriangle.H index 348d775278..17783047f2 100644 --- a/src/surfMesh/surfaceFormats/stl/STLtriangle.H +++ b/src/surfMesh/surfaceFormats/stl/STLtriangle.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -44,6 +44,13 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class STLtriangle; + +Ostream& operator<<(Ostream&, const STLtriangle&); + + /*---------------------------------------------------------------------------*\ Class STLtriangle Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/triSurface/tools/labelledTri/labelledTri.H b/src/triSurface/tools/labelledTri/labelledTri.H index 6f0c13065d..a0fd5a90dd 100644 --- a/src/triSurface/tools/labelledTri/labelledTri.H +++ b/src/triSurface/tools/labelledTri/labelledTri.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -43,6 +43,14 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class labelledTri; + +Istream& operator>>(Istream&, labelledTri&); +Ostream& operator<<(Ostream&, const labelledTri&); + + /*---------------------------------------------------------------------------*\ Class labelledTri Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/triSurface/triSurface/surfacePatch/surfacePatch.H b/src/triSurface/triSurface/surfacePatch/surfacePatch.H index 03f8916d95..9e0b878695 100644 --- a/src/triSurface/triSurface/surfacePatch/surfacePatch.H +++ b/src/triSurface/triSurface/surfacePatch/surfacePatch.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -45,6 +45,13 @@ SourceFiles namespace Foam { +// Forward declaration of friend functions and operators + +class surfacePatch; + +Ostream& operator<<(Ostream&, const surfacePatch&); + + /*---------------------------------------------------------------------------*\ Class surfacePatch Declaration \*---------------------------------------------------------------------------*/ diff --git a/src/triSurface/triSurface/surfacePatch/surfacePatchIOList.H b/src/triSurface/triSurface/surfacePatch/surfacePatchIOList.H index d2659b01b2..085e03b0f6 100644 --- a/src/triSurface/triSurface/surfacePatch/surfacePatchIOList.H +++ b/src/triSurface/triSurface/surfacePatch/surfacePatchIOList.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -45,7 +45,12 @@ SourceFiles namespace Foam { -// Forward declaration of classes +// Forward declaration of friend functions and operators + +class surfacePatchIOList; + +Ostream& operator<<(Ostream&, const surfacePatchIOList&); + /*---------------------------------------------------------------------------*\ Class surfacePatchIOList Declaration @@ -96,12 +101,6 @@ public: bool writeData(Ostream&) const; - // Member Operators - - // Friend Functions - - // Friend Operators - // IOstream Operators friend Ostream& operator<<(Ostream&, const surfacePatchIOList&); diff --git a/src/triSurface/triSurface/triSurface.H b/src/triSurface/triSurface/triSurface.H index a66d9775d3..2e9ce52d16 100644 --- a/src/triSurface/triSurface/triSurface.H +++ b/src/triSurface/triSurface/triSurface.H @@ -51,6 +51,14 @@ namespace Foam class Time; class IFstream; + +// Forward declaration of friend functions and operators + +class triSurface; + +Ostream& operator<<(Ostream&, const triSurface&); + + /*---------------------------------------------------------------------------*\ Class triSurface Declaration \*---------------------------------------------------------------------------*/