dune-grid  2.2.1
common/capabilities.hh
Go to the documentation of this file.
1 #ifndef DUNE_CAPABILITIES_HH
2 #define DUNE_CAPABILITIES_HH
3 
8 namespace Dune
9 {
10 
12 namespace Capabilities
13 {
14 
21 template<class Grid>
23 {
24  static const bool v = false;
25  // this value will be initialized with something big
26  // since it is invalid
27  static const unsigned int topologyId = ~0u;
28 };
29 
42 template<class Grid>
44 {
45  // default value is false
46  static const bool v = false;
47 };
48 
52 template<class Grid, int codim>
53 struct hasEntity
54 {
55  static const bool v = false;
56 };
57 
61 template<class Grid>
62 struct isParallel
63 {
64  static const bool v = false;
65 };
66 
74 template< class Grid, int codim >
76 {
77  static const bool v = false;
78 };
79 
83 template<class Grid>
85 {
86  static const bool v = false;
87 };
88 
92 template<class Grid>
94 {
95  static const bool v = false;
96 };
97 
101 template<class Grid>
103 {
104  static const bool v = false;
105 };
106 
117 template <class Grid>
118 struct threadSafe {
119  static const bool v = false;
120 };
121 
132 template <class Grid>
134  static const bool v = false;
135 };
136 
137 /*
138  forward
139  Capabilities::Something<const Grid>
140  to
141  Capabilities::Something<Grid>
142 */
143 
144 template<class Grid>
146 {
148  static const unsigned int topologyId =
150 };
151 
152 template<class Grid>
153 struct isCartesian< const Grid >
154 {
156 };
157 
158 template<class Grid, int codim>
159 struct hasEntity<const Grid, codim>
160 {
162 };
163 
164 template<class Grid>
165 struct isParallel<const Grid>
166 {
168 };
169 
170 template< class Grid, int codim >
171 struct canCommunicate< const Grid, codim >
172 {
174 };
175 
176 template<class Grid>
178 {
180 };
181 
182 template<class Grid>
184 {
186 };
187 
188 template<class Grid>
190 {
192 };
193 
194 template <class Grid>
195 struct threadSafe<const Grid> {
197 };
198 
199 template <class Grid>
200 struct viewThreadSafe<const Grid> {
202 };
203 
204 }
205 
206 }
207 
208 #endif // DUNE_CAPABILITIES_HH