Removed subset files
[foam-extend-3.0.git] / src / OpenFOAM / meshes / pointMesh / pointMeshMapper / pointMeshMapper.H
blob9ee7244452e5ebf7fa9afe3ba6d07ba6be69098e
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
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 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
19     for more details.
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
25 Class
26     Foam::pointMeshMapper
28 Description
29     Class holds all the necessary information for mapping fields associated
30     with pointMesh.
32 SourceFiles
33     pointMeshMapper.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef pointMeshMapper_H
38 #define pointMeshMapper_H
40 #include "pointMapper.H"
41 #include "pointBoundaryMeshMapper.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace Foam
48 // Forward declaration of classes
49 class pointMesh;
50 class mapPolyMesh;
52 /*---------------------------------------------------------------------------*\
53                         Class pointMeshMapper Declaration
54 \*---------------------------------------------------------------------------*/
56 class pointMeshMapper
58     // Private data
60         //- Reference to mesh
61         const pointMesh& mesh_;
63         //- Point mapper
64         pointMapper pointMap_;
66         //- Boundary mapper
67         pointBoundaryMeshMapper boundaryMap_;
70     // Private Member Functions
72         //- Disallow default bitwise copy construct
73         pointMeshMapper(const pointMeshMapper&);
75         //- Disallow default bitwise assignment
76         void operator=(const pointMeshMapper&);
79 public:
81     // Constructors
83         //- Construct from pointMesh
84         pointMeshMapper(const pointMesh& mesh, const mapPolyMesh& mpm)
85         :
86             mesh_(mesh),
87             pointMap_(mpm),
88             boundaryMap_(mesh, pointMap_, mpm)
89         {}
92     // Member Functions
95         //- Return reference to mesh fields belong to
96         const pointMesh& mesh() const
97         {
98             return mesh_;
99         }
101         //- Return reference to objectRegistry storing fields. Can be
102         //  removed once fields stored on pointMesh.
103         const objectRegistry& thisDb() const
104         {
105             return mesh_();
106         }
108         //- Return point mapper
109         const morphFieldMapper& pointMap() const
110         {
111             return pointMap_;
112         }
114         //- Return boundary mapper
115         const pointBoundaryMeshMapper& boundaryMap() const
116         {
117             return boundaryMap_;
118         }
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 } // End namespace Foam
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 #endif
130 // ************************************************************************* //