meshSearchBoundBox.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2025 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::meshSearchBoundBox
26 
27 Description
28  Mesh object to hold a bound box for use by mesh search engines
29 
30 SourceFiles
31  meshSearchBoundBox.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef meshSearchBoundBox_H
36 #define meshSearchBoundBox_H
37 
38 #include "DemandDrivenMeshObject.H"
39 #include "polyMesh.H"
40 #include "treeBoundBox.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 // Forward declaration of classes
48 class treeBoundBox;
49 
50 /*---------------------------------------------------------------------------*\
51  Class meshSearchBoundBox Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
57  <
58  polyMesh,
59  DeletableMeshObject,
60  meshSearchBoundBox
61  >
62 {
63  // Private Data
64 
65  //- Bound box
66  const treeBoundBox bb_;
67 
68 
69 public:
70 
71  //- Run-time type information
72  TypeName("meshSearchBoundBox");
73 
74 
75  // Constructors
76 
77  //- Construct from mesh
79 
80  //- Disallow default bitwise copy construction
81  meshSearchBoundBox(const meshSearchBoundBox&) = delete;
82 
83 
84  //- Destructor
85  virtual ~meshSearchBoundBox();
86 
87 
88  // Member Functions
89 
90  // Access
91 
92  //- Access the bound box
93  inline const treeBoundBox& bb() const
94  {
95  return bb_;
96  }
97 
98 
99  // Member Operators
100 
101  //- Disallow default bitwise assignment
102  void operator=(const meshSearchBoundBox&) = delete;
103 };
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #endif
113 
114 // ************************************************************************* //
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
Mesh object to hold a bound box for use by mesh search engines.
meshSearchBoundBox(const polyMesh &mesh)
Construct from mesh.
void operator=(const meshSearchBoundBox &)=delete
Disallow default bitwise assignment.
const treeBoundBox & bb() const
Access the bound box.
TypeName("meshSearchBoundBox")
Run-time type information.
virtual ~meshSearchBoundBox()
Destructor.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:78
Standard boundBox + extra functionality for use in octree.
Definition: treeBoundBox.H:90
Namespace for OpenFOAM.