BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / OpenFOAM / meshes / polyMesh / polyPatches / constraint / empty / emptyPolyPatch.H
blob23694fc79b82af08f622e79d2eb92d6567bea037
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Class
25     Foam::emptyPolyPatch
27 Description
28     Empty front and back plane patch.  Used for 2-D geometries.
30 SourceFiles
31     emptyPolyPatch.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef emptyPolyPatch_H
36 #define emptyPolyPatch_H
38 #include "polyPatch.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46                       Class emptyPolyPatch Declaration
47 \*---------------------------------------------------------------------------*/
49 class emptyPolyPatch
51     public polyPatch
53 public:
55     //- Runtime type information
56     TypeName("empty");
59     // Constructors
61         //- Construct from components
62         emptyPolyPatch
63         (
64             const word& name,
65             const label size,
66             const label start,
67             const label index,
68             const polyBoundaryMesh& bm
69         );
71         //- Construct from dictionary
72         emptyPolyPatch
73         (
74             const word& name,
75             const dictionary& dict,
76             const label index,
77             const polyBoundaryMesh& bm
78         );
80         //- Construct as copy, resetting the boundary mesh
81         emptyPolyPatch(const emptyPolyPatch&, const polyBoundaryMesh&);
83         //- Construct given the original patch and resetting the
84         //  face list and boundary mesh information
85         emptyPolyPatch
86         (
87             const emptyPolyPatch& pp,
88             const polyBoundaryMesh& bm,
89             const label index,
90             const label newSize,
91             const label newStart
92         );
94         //- Construct given the original patch and a map
95         emptyPolyPatch
96         (
97             const emptyPolyPatch& pp,
98             const polyBoundaryMesh& bm,
99             const label index,
100             const labelUList& mapAddressing,
101             const label newStart
102         );
104         //- Construct and return a clone, resetting the boundary mesh
105         virtual autoPtr<polyPatch> clone(const polyBoundaryMesh& bm) const
106         {
107             return autoPtr<polyPatch>(new emptyPolyPatch(*this, bm));
108         }
110         //- Construct and return a clone, resetting the face list
111         //  and boundary mesh
112         virtual autoPtr<polyPatch> clone
113         (
114             const polyBoundaryMesh& bm,
115             const label index,
116             const label newSize,
117             const label newStart
118         ) const
119         {
120             return autoPtr<polyPatch>
121             (
122                 new emptyPolyPatch(*this, bm, index, newSize, newStart)
123             );
124         }
126         //- Construct and return a clone, resetting the face list
127         //  and boundary mesh
128         virtual autoPtr<polyPatch> clone
129         (
130             const polyBoundaryMesh& bm,
131             const label index,
132             const labelUList& mapAddressing,
133             const label newStart
134         ) const
135         {
136             return autoPtr<polyPatch>
137             (
138                 new emptyPolyPatch(*this, bm, index, mapAddressing, newStart)
139             );
140         }
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 } // End namespace Foam
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 #endif
152 // ************************************************************************* //