1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Foam::referredWallFace
28 Storage for referred wall faces. Stores patch index, face and
35 \*---------------------------------------------------------------------------*/
37 #ifndef referredWallFace_H
38 #define referredWallFace_H
41 #include "pointField.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward declaration of classes
52 // Forward declaration of friend functions and operators
53 class referredWallFace;
54 Istream& operator>>(Istream&, referredWallFace&);
55 Ostream& operator<<(Ostream&, const referredWallFace&);
58 /*---------------------------------------------------------------------------*\
59 Class referredWallFace Declaration
60 \*---------------------------------------------------------------------------*/
62 class referredWallFace
71 //- Index of originating patch
82 //- Construct from components
86 const pointField& pts,
91 referredWallFace(const referredWallFace&);
102 //- Return access to the stored points
103 inline const pointField& points() const;
105 //- Return non-const access to the stored points
106 inline pointField& points();
108 //- Return access to the patch index
109 inline label patchIndex() const;
111 //- Return non-const access to the patch index
112 inline label& patchIndex();
117 bool operator==(const referredWallFace&) const;
118 bool operator!=(const referredWallFace&) const;
120 // IOstream Operators
122 friend Istream& operator>>(Istream&, referredWallFace&);
123 friend Ostream& operator<<(Ostream&, const referredWallFace&);
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 } // End namespace Foam
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 #include "referredWallFaceI.H"
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 // ************************************************************************* //