dune-grid  2.4
common/capabilities.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_CAPABILITIES_HH
4 #define DUNE_CAPABILITIES_HH
5 
6 #include <dune/common/deprecated.hh>
7 
12 namespace Dune
13 {
14 
16  namespace Capabilities
17  {
18 
25  template<class Grid>
27  {
28  static const bool v = false;
29  // this value will be initialized with something big
30  // since it is invalid
31  static const unsigned int topologyId = ~0u;
32  };
33 
46  template<class Grid>
47  struct isCartesian
48  {
49  // default value is false
50  static const bool v = false;
51  };
52 
56  template<class Grid, int codim>
57  struct hasEntity
58  {
59  static const bool v = false;
60  };
61 
67  template<class Grid>
68  struct
69 #ifndef DUNE_AVOID_CAPABILITIES_IS_PARALLEL_DEPRECATION_WARNING
70  DUNE_DEPRECATED_MSG("Capabilities::isParallel will be removed after dune-grid-2.4.")
71 #endif
73  {
74  static const bool
75 #ifndef DUNE_AVOID_CAPABILITIES_IS_PARALLEL_DEPRECATION_WARNING
76  DUNE_DEPRECATED_MSG("Capabilities::isParallel will be removed after dune-grid-2.4.")
77 #endif
78  v = false;
79  };
80 
88  template< class Grid, int codim >
90  {
91  static const bool v = false;
92  };
93 
97  template<class Grid>
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 
134  template <class Grid>
135  struct threadSafe {
136  static const bool v = false;
137  };
138 
161  template <class Grid>
162  struct viewThreadSafe {
163  static const bool v = false;
164  };
165 
166  /*
167  forward
168  Capabilities::Something<const Grid>
169  to
170  Capabilities::Something<Grid>
171  */
172 
173  template<class Grid>
174  struct hasSingleGeometryType< const Grid >
175  {
177  static const unsigned int topologyId =
179  };
180 
181  template<class Grid>
182  struct isCartesian< const Grid >
183  {
185  };
186 
187  template<class Grid, int codim>
188  struct hasEntity<const Grid, codim>
189  {
191  };
192 
193  template<class Grid>
194  struct
195 #ifndef DUNE_AVOID_CAPABILITIES_IS_PARALLEL_DEPRECATION_WARNING
196  DUNE_DEPRECATED_MSG("Will be removed after dune-grid-2.4.")
197 #endif
199  {
201  };
202 
203  template< class Grid, int codim >
204  struct canCommunicate< const Grid, codim >
205  {
207  };
208 
209  template<class Grid>
211  {
213  };
214 
215  template<class Grid>
217  {
219  };
220 
221  template<class Grid>
223  {
225  };
226 
227  template <class Grid>
228  struct threadSafe<const Grid> {
230  };
231 
232  template <class Grid>
233  struct viewThreadSafe<const Grid> {
235  };
236 
237  }
238 
239 }
240 
241 #endif // DUNE_CAPABILITIES_HH
Specialize with 'true' if the grid implementation is thread safe, while it is not modified...
Definition: common/capabilities.hh:162
Specialize with 'true' if the grid is a Cartesian grid. Cartesian grids satisfy the following propert...
Definition: common/capabilities.hh:47
Include standard header files.
Definition: agrid.hh:59
Definition: common/capabilities.hh:194
static const bool v
Definition: common/capabilities.hh:109
Specialize with 'true' for all codims that a grid implements entities for. (default=false) ...
Definition: common/capabilities.hh:57
Grid abstract base classThis class is the base class for all grid implementations. Although no virtual functions are used we call it abstract since its methods do not contain an implementation but forward to the methods of the derived class via the Barton-Nackman trick.
Definition: common/grid.hh:388
static const bool v
Definition: common/capabilities.hh:163
static const bool v
Definition: common/capabilities.hh:136
static const bool v
Definition: common/capabilities.hh:100
static const bool v
Definition: common/capabilities.hh:50
static const bool v
Definition: common/capabilities.hh:118
Specialize with 'true' if implementation guarantees conforming level grids. (default=false) ...
Definition: common/capabilities.hh:98
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition: common/capabilities.hh:26
Specialize with 'true' if implementation provides backup and restore facilities. (default=false) ...
Definition: common/capabilities.hh:116
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false) ...
Definition: common/capabilities.hh:107
static const bool v
Definition: common/capabilities.hh:91
static const bool v
Definition: common/capabilities.hh:28
static const unsigned int topologyId
Definition: common/capabilities.hh:31
static const bool v
Definition: common/capabilities.hh:59
Specialize with 'true' if implementation supports parallelism. (default=false)
Definition: common/capabilities.hh:68
Specialize with 'true' if the grid implementation is thread safe. (default=false) ...
Definition: common/capabilities.hh:135
specialize with 'true' for all codims that a grid can communicate data on (default=false) ...
Definition: common/capabilities.hh:89