1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | cfMesh: A library for mesh generation
5 \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6 \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of cfMesh.
11 cfMesh is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 3 of the License, or (at your
14 option) any later version.
16 cfMesh 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 cfMesh. If not, see <http://www.gnu.org/licenses/>.
28 This is a container with additional size to prevent re-allocation
29 every time it is resized
34 \*---------------------------------------------------------------------------*/
39 #include "regIOobject.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 //- number of used elements
59 // Disallow bitwise assignment
60 void operator=(const faceListPMG&);
62 faceListPMG(const faceListPMG&);
64 // Disallow transfer from faceList
65 void transfer(faceList&);
72 //- construct from IOobject
73 inline faceListPMG(const IOobject&);
75 //- construct from IOobject and size
76 inline faceListPMG(const IOobject&, const label);
78 //- construct from IOobject and faceList
79 inline faceListPMG(const IOobject&, const faceList&);
82 inline ~faceListPMG();
85 //- return the number of used elements
86 inline label size() const;
88 //- set the number of used elements
89 inline void setSize(const label nElmts);
91 //- set the size to zero
94 //- add a face at the end of the list
95 inline void append(const face&);
97 //- return an element with bound checking
98 inline face& newElmt(const label);
100 //- read/write the list onto disk
101 inline bool writeData(Ostream&) const;
104 inline void operator=(const faceList&);
106 friend inline Ostream& operator<<(Ostream&, const faceListPMG&);
108 friend inline Istream& operator>>(Istream&, faceListPMG&);
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 #include "faceListPMGI.H"
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 // ************************************************************************* //