From 7b64779f4273cf0e72c6d090415f6480eb949158 Mon Sep 17 00:00:00 2001 From: henry Date: Sun, 1 Mar 2009 20:25:26 +0000 Subject: [PATCH] Added forward declaration of IO operators, see: http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/10948 --- src/meshTools/cellDist/wallPoint/wallPoint.H | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/meshTools/cellDist/wallPoint/wallPoint.H b/src/meshTools/cellDist/wallPoint/wallPoint.H index a076d76..82d6b38 100644 --- a/src/meshTools/cellDist/wallPoint/wallPoint.H +++ b/src/meshTools/cellDist/wallPoint/wallPoint.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd. + \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -51,6 +51,12 @@ namespace Foam // Forward declaration of classes class polyPatch; class polyMesh; +class wallPoint; + +// Forward declaration of friend functions and operators +Ostream& operator<<(Ostream&, const wallPoint&); +Istream& operator>>(Istream&, wallPoint&); + /*---------------------------------------------------------------------------*\ Class wallPoint Declaration @@ -78,12 +84,15 @@ class wallPoint const scalar tol ); + public: + // Static data members //- initial point far away. static point greatPoint; + // Constructors //- Construct null @@ -102,6 +111,7 @@ public: const wallPoint& ); + // Member Functions // Access @@ -184,11 +194,11 @@ public: const scalar tol ); + // Member Operators // Needed for List IO inline bool operator==(const wallPoint&) const; - inline bool operator!=(const wallPoint&) const; -- 2.11.4.GIT