1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Accumulate topology change statistics
33 University of Massachusetts Amherst
39 \*---------------------------------------------------------------------------*/
44 #include "objectMap.H"
45 #include "labelList.H"
46 #include "dictionary.H"
47 #include "DynamicList.H"
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 // Class forward declarations
57 // * * * * * * * * Forward declaration of friend fuctions * * * * * * * * * //
59 Ostream& operator<<(Ostream&, const changeMap&);
62 /*---------------------------------------------------------------------------*\
63 Class changeMap Declaration
64 \*---------------------------------------------------------------------------*/
73 // Coupled patch index
79 // Entities that were added during the operation.
80 DynamicList<objectMap> addedPoints_;
81 DynamicList<objectMap> addedEdges_;
82 DynamicList<objectMap> addedFaces_;
83 DynamicList<objectMap> addedCells_;
85 // Entities that were removed during the operation
86 DynamicList<label> removedPoints_;
87 DynamicList<label> removedEdges_;
88 DynamicList<label> removedFaces_;
89 DynamicList<label> removedCells_;
112 inline label& index();
113 inline label index() const;
115 // Coupled patch index
116 inline label& patchIndex();
117 inline label patchIndex() const;
120 inline label& type();
121 inline label type() const;
127 const labelList& master = labelList()
133 const labelList& master = labelList()
139 const labelList& master = labelList()
145 const labelList& master = labelList()
148 // Return the list of added entities
149 inline const List<objectMap>& addedPointList() const;
150 inline const List<objectMap>& addedEdgeList() const;
151 inline const List<objectMap>& addedFaceList() const;
152 inline const List<objectMap>& addedCellList() const;
155 inline void removePoint(const label pIndex);
156 inline void removeEdge(const label eIndex);
157 inline void removeFace(const label fIndex);
158 inline void removeCell(const label cIndex);
160 // Return the list of removed entities
161 inline const labelList& removedPointList() const;
162 inline const labelList& removedEdgeList() const;
163 inline const labelList& removedFaceList() const;
164 inline const labelList& removedCellList() const;
168 // Clear existing lists
173 inline void operator=(const changeMap& rhs);
175 //- IOstream Operators
177 inline friend Ostream& operator<<(Ostream&, const changeMap&);
181 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
183 } // End namespace Foam
185 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
187 #include "changeMapI.H"
189 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193 // ************************************************************************* //