1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
28 Accumulate topology change statistics
32 University of Massachusetts Amherst
38 \*---------------------------------------------------------------------------*/
43 #include "objectMap.H"
44 #include "labelList.H"
45 #include "dictionary.H"
46 #include "DynamicList.H"
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 // Class forward declarations
56 // * * * * * * * * Forward declaration of friend fuctions * * * * * * * * * //
58 Ostream& operator<<(Ostream&, const changeMap&);
61 /*---------------------------------------------------------------------------*\
62 Class changeMap Declaration
63 \*---------------------------------------------------------------------------*/
72 // Coupled patch index
78 // Entities that were added during the operation.
79 DynamicList<objectMap> addedPoints_;
80 DynamicList<objectMap> addedEdges_;
81 DynamicList<objectMap> addedFaces_;
82 DynamicList<objectMap> addedCells_;
84 // Entities that were removed during the operation
85 dynamicLabelList removedPoints_;
86 dynamicLabelList removedEdges_;
87 dynamicLabelList removedFaces_;
88 dynamicLabelList removedCells_;
111 inline label& index();
112 inline label index() const;
114 // Coupled patch index
115 inline label& patchIndex();
116 inline label patchIndex() const;
119 inline label& type();
120 inline label type() const;
126 const labelList& master = labelList()
132 const labelList& master = labelList()
138 const labelList& master = labelList()
144 const labelList& master = labelList()
147 // Return the list of added entities
148 inline const List<objectMap>& addedPointList() const;
149 inline const List<objectMap>& addedEdgeList() const;
150 inline const List<objectMap>& addedFaceList() const;
151 inline const List<objectMap>& addedCellList() const;
154 inline void removePoint(const label pIndex);
155 inline void removeEdge(const label eIndex);
156 inline void removeFace(const label fIndex);
157 inline void removeCell(const label cIndex);
159 // Return the list of removed entities
160 inline const labelList& removedPointList() const;
161 inline const labelList& removedEdgeList() const;
162 inline const labelList& removedFaceList() const;
163 inline const labelList& removedCellList() const;
167 // Clear existing lists
172 inline void operator=(const changeMap& rhs);
174 //- IOstream Operators
176 inline friend Ostream& operator<<(Ostream&, const changeMap&);
180 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182 } // End namespace Foam
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186 #include "changeMapI.H"
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
192 // ************************************************************************* //