dune-fem  2.6-git
gridpart/common/capabilities.hh
Go to the documentation of this file.
1 #ifndef DUNE_FEM_GRIDPART_CAPABILITIES_HH
2 #define DUNE_FEM_GRIDPART_CAPABILITIES_HH
3 
4 
5 namespace Dune
6 {
7 
8  namespace Fem
9  {
10 
11  namespace GridPartCapabilities
12  {
16  template< class GridPartType >
17  struct hasGrid
18  {
19  static const bool v = true;
20  };
21 
22 
27  template< class GridPartType >
29  {
30  static const bool v = false;
31  static const unsigned int topologyId = ~0u;
32  };
33 
34 
38  template< class GridPartType >
39  struct isCartesian
40  {
41  static const bool v = false;
42  };
43 
44 
48  template< class GridPartType, int codim >
49  struct hasEntity
50  {
51  static const bool v = false;
52  };
53 
54 
58  template< class GridPartType, int codim >
60  {
61  static const bool v = false;
62  };
63 
64 
68  template< class GridPartType >
69  struct isConforming
70  {
71  static const bool v = false;
72  };
73 
74 
75  /*
76  * forward
77  * GridPartCapabilities::Something< const GridPartType >
78  * to
79  * GridPartCapabilities::Something< GridPartType >
80  */
81 
82  template< class GridPartType >
83  struct hasGrid< const GridPartType >
84  {
86  };
87 
88 
89  template< class GridPartType >
90  struct hasSingleGeometryType< const GridPartType >
91  {
93  static const unsigned int topologyId
95  };
96 
97 
98  template< class GridPartType >
99  struct isCartesian< const GridPartType >
100  {
102  };
103 
104 
105  template< class GridPartType, int codim >
106  struct hasEntity< const GridPartType, codim >
107  {
109  };
110 
111 
112  template< class GridPartType, int codim >
113  struct canCommunicate< const GridPartType, codim >
114  {
116  };
117 
118 
119  template< class GridPartType >
120  struct isConforming< const GridPartType >
121  {
123  };
124 
125  } // namespace GridPartCapabilities
126 
127  } // namespace Fem
128 
129 } // namespace Dune
130 
131 #endif // #ifndef DUNE_FEM_GRIDPART_CAPABILITIES_HH
Definition: bindguard.hh:11
specialize with 'false' if grid part has no underlying dune grid (default=true)
Definition: gridpart/common/capabilities.hh:18
static const bool v
Definition: gridpart/common/capabilities.hh:19
specialize with 'true' for if the codimension 0 entity of the grid part has only one possible geometr...
Definition: gridpart/common/capabilities.hh:29
static const bool v
Definition: gridpart/common/capabilities.hh:30
static const unsigned int topologyId
Definition: gridpart/common/capabilities.hh:31
specialize with 'true' if the grid part is cartesian (default=false)
Definition: gridpart/common/capabilities.hh:40
static const bool v
Definition: gridpart/common/capabilities.hh:41
specialize with 'true' for all codims that a grid implements entities for (default=false)
Definition: gridpart/common/capabilities.hh:50
static const bool v
Definition: gridpart/common/capabilities.hh:51
specialize with 'true' for all codims that a grid can communicate data on (default=false)
Definition: gridpart/common/capabilities.hh:60
static const bool v
Definition: gridpart/common/capabilities.hh:61
specialize with 'true' if implementation guarantees conforming level grids. (default=false)
Definition: gridpart/common/capabilities.hh:70
static const bool v
Definition: gridpart/common/capabilities.hh:71