dune-grid 2.12-git
Loading...
Searching...
No Matches
common/capabilities.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4// vi: set et ts=4 sw=2 sts=2:
5#ifndef DUNE_GRID_COMMON_CAPABILITIES_HH
6#define DUNE_GRID_COMMON_CAPABILITIES_HH
7
12namespace Dune
13{
14
16 namespace Capabilities
17 {
18
26 template<class Grid>
28 {
29 static const bool v = false;
30 // this value will be initialized with something big
31 // since it is invalid
32 static const unsigned int topologyId = ~0u;
33 };
34
48 template<class Grid>
50 {
51 // default value is false
52 static const bool v = false;
53 };
54
58 template<class Grid, int codim>
59 struct hasEntity
60 {
61 static const bool v = false;
62 };
63
74 template< class Grid, int codim >
76 {
77 static const bool v = hasEntity<Grid, codim>::v;
78 };
79
84 template<class Grid, int codim>
86 {
87 static const bool v = true;
88 };
89
97 template< class Grid, int codim >
99 {
100 static const bool v = false;
101 };
102
106 template<class Grid>
108 {
109 static const bool v = false;
110 };
111
115 template<class Grid>
117 {
118 static const bool v = false;
119 };
120
124 template<class Grid>
126 {
127 static const bool v = false;
128 };
129
143 template <class Grid>
144 struct threadSafe {
145 static const bool v = false;
146 };
147
166 template <class Grid>
168 static const bool v = false;
169 };
170
171 /*
172 forward
173 Capabilities::Something<const Grid>
174 to
175 Capabilities::Something<Grid>
176 */
177
178 template<class Grid>
185
186 template<class Grid>
187 struct isCartesian< const Grid >
188 {
190 };
191
192 template<class Grid, int codim>
193 struct hasEntity<const Grid, codim>
194 {
196 };
197
198 template< class Grid, int codim >
199 struct hasEntityIterator< const Grid, codim >
200 {
202 };
203
204 template< class Grid, int codim >
205 struct canCommunicate< const Grid, codim >
206 {
208 };
209
210 template<class Grid>
215
216 template<class Grid>
221
222 template<class Grid>
227
228 template <class Grid>
229 struct threadSafe<const Grid> {
231 };
232
233 template <class Grid>
234 struct viewThreadSafe<const Grid> {
236 };
237
238 }
239
240}
241
242#endif // DUNE_GRID_COMMON_CAPABILITIES_HH
Include standard header files.
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition common/capabilities.hh:28
static const bool v
Definition common/capabilities.hh:29
static const unsigned int topologyId
Definition common/capabilities.hh:32
Specialize with 'true' if the grid is a Cartesian grid.
Definition common/capabilities.hh:50
static const bool v
Definition common/capabilities.hh:52
Specialize with 'true' for all codims that a grid implements entities for. (default=false)
Definition common/capabilities.hh:60
static const bool v
Definition common/capabilities.hh:61
Specialize with 'true' for all codims that a grid provides an iterator for (default=hasEntity<codim>:...
Definition common/capabilities.hh:76
static const bool v
Definition common/capabilities.hh:77
Specialize with 'false' for all codims that a grid does not implement geometries for....
Definition common/capabilities.hh:86
static const bool v
Definition common/capabilities.hh:87
specialize with 'true' for all codims that a grid can communicate data on (default=false)
Definition common/capabilities.hh:99
static const bool v
Definition common/capabilities.hh:100
Specialize with 'true' if implementation guarantees conforming level grids. (default=false)
Definition common/capabilities.hh:108
static const bool v
Definition common/capabilities.hh:109
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false)
Definition common/capabilities.hh:117
static const bool v
Definition common/capabilities.hh:118
Specialize with 'true' if implementation provides backup and restore facilities. (default=false)
Definition common/capabilities.hh:126
static const bool v
Definition common/capabilities.hh:127
Specialize with 'true' if the grid implementation is thread safe. (default=false)
Definition common/capabilities.hh:144
static const bool v
Definition common/capabilities.hh:145
Specialize with 'true' if the grid implementation is thread safe, while it is not modified....
Definition common/capabilities.hh:167
static const bool v
Definition common/capabilities.hh:168
Grid abstract base class.
Definition common/grid.hh:393