dune-grid  2.3.0
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 
10 namespace Dune
11 {
12 
14  namespace Capabilities
15  {
16 
23  template<class Grid>
25  {
26  static const bool v = false;
27  // this value will be initialized with something big
28  // since it is invalid
29  static const unsigned int topologyId = ~0u;
30  };
31 
44  template<class Grid>
45  struct isCartesian
46  {
47  // default value is false
48  static const bool v = false;
49  };
50 
54  template<class Grid, int codim>
55  struct hasEntity
56  {
57  static const bool v = false;
58  };
59 
63  template<class Grid>
64  struct isParallel
65  {
66  static const bool v = false;
67  };
68 
76  template< class Grid, int codim >
78  {
79  static const bool v = false;
80  };
81 
85  template<class Grid>
87  {
88  static const bool v = false;
89  };
90 
94  template<class Grid>
96  {
97  static const bool v = false;
98  };
99 
103  template<class Grid>
105  {
106  static const bool v = false;
107  };
108 
122  template <class Grid>
123  struct threadSafe {
124  static const bool v = false;
125  };
126 
149  template <class Grid>
150  struct viewThreadSafe {
151  static const bool v = false;
152  };
153 
154  /*
155  forward
156  Capabilities::Something<const Grid>
157  to
158  Capabilities::Something<Grid>
159  */
160 
161  template<class Grid>
162  struct hasSingleGeometryType< const Grid >
163  {
165  static const unsigned int topologyId =
167  };
168 
169  template<class Grid>
170  struct isCartesian< const Grid >
171  {
173  };
174 
175  template<class Grid, int codim>
176  struct hasEntity<const Grid, codim>
177  {
179  };
180 
181  template<class Grid>
182  struct isParallel<const Grid>
183  {
185  };
186 
187  template< class Grid, int codim >
188  struct canCommunicate< const Grid, codim >
189  {
191  };
192 
193  template<class Grid>
195  {
197  };
198 
199  template<class Grid>
201  {
203  };
204 
205  template<class Grid>
207  {
209  };
210 
211  template <class Grid>
212  struct threadSafe<const Grid> {
214  };
215 
216  template <class Grid>
217  struct viewThreadSafe<const Grid> {
219  };
220 
221  }
222 
223 }
224 
225 #endif // DUNE_CAPABILITIES_HH
Specialize with 'true' if the grid is a Cartesian grid. Cartesian grids satisfy the following propert...
Definition: common/capabilities.hh:45
static const bool v
Definition: common/capabilities.hh:57
static const bool v
Definition: common/capabilities.hh:79
static const bool v
Definition: common/capabilities.hh:66
static const bool v
Definition: common/capabilities.hh:48
Specialize with 'true' if implementation guarantees conforming level grids. (default=false) ...
Definition: common/capabilities.hh:86
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false) ...
Definition: common/capabilities.hh:95
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:386
static const bool v
Definition: common/capabilities.hh:124
Specialize with 'true' if implementation supports parallelism. (default=false)
Definition: common/capabilities.hh:64
static const bool v
Definition: common/capabilities.hh:26
static const bool v
Definition: common/capabilities.hh:151
static const bool v
Definition: common/capabilities.hh:88
static const unsigned int topologyId
Definition: common/capabilities.hh:29
Specialize with 'true' for all codims that a grid implements entities for. (default=false) ...
Definition: common/capabilities.hh:55
static const bool v
Definition: common/capabilities.hh:106
static const bool v
Definition: common/capabilities.hh:97
Specialize with 'true' if the grid implementation is thread safe. (default=false) ...
Definition: common/capabilities.hh:123
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition: common/capabilities.hh:24
Specialize with 'true' if implementation provides backup and restore facilities. (default=false) ...
Definition: common/capabilities.hh:104
Specialize with 'true' if the grid implementation is thread safe, while it is not modified...
Definition: common/capabilities.hh:150
specialize with 'true' for all codims that a grid can communicate data on (default=false) ...
Definition: common/capabilities.hh:77