dune-grid  2.6-git
albertagrid/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_ALBERTA_CAPABILITIES_HH
4 #define DUNE_ALBERTA_CAPABILITIES_HH
5 
6 #include <dune/geometry/type.hh>
7 
9 
10 #if HAVE_ALBERTA
11 
12 namespace Dune
13 {
14 
15  // External Forward Declarations
16  // -----------------------------
17 
18  template< int dim, int dimworld >
19  class AlbertaGrid;
20 
21 
22 
23  // Capabilities
24  // ------------
25 
26  namespace Capabilities
27  {
28 
32  template< int dim, int dimworld >
33  struct hasSingleGeometryType< AlbertaGrid< dim, dimworld > >
34  {
35  static const bool v = true;
36  static const unsigned int topologyId = Impl::SimplexTopology< dim >::type::id;
37  };
38 
39 
43  template< int dim, int dimworld, int codim >
44  struct hasEntity< AlbertaGrid< dim, dimworld >, codim >
45  {
46  static const bool v = true;
47  };
48 
54  template< int dim, int dimworld, int codim >
55  struct hasEntityIterator< AlbertaGrid< dim, dimworld >, codim >
56  {
57  static const bool v = true;
58  };
59 
64  template< int dim, int dimworld >
65  struct isLevelwiseConforming< AlbertaGrid< dim, dimworld > >
66  {
67  static const bool v = false;
68  };
69 
73  template< int dim, int dimworld >
74  struct isLeafwiseConforming< AlbertaGrid< dim, dimworld > >
75  {
76  static const bool v = true;
77  };
78 
82  template< int dim, int dimworld >
83  struct hasBackupRestoreFacilities< AlbertaGrid< dim, dimworld > >
84  {
85  static const bool v = true;
86  };
87 
88 
89 
90  // non-standard capabilities
91  // -------------------------
92 
93  template< class Grid >
95 
96  template< int dim, int dimworld >
97  struct hasHierarchicIndexSet< AlbertaGrid< dim, dimworld > >
98  {
99  static const bool v = true;
100  };
101 
102  }
103 
104 }
105 
106 #endif // #if HAVE_ALBERTA
107 
108 #endif // #ifndef DUNE_ALBERTA_CAPABILITIES_HH
Specialize with &#39;true&#39; if implementation guarantees conforming level grids. (default=false) ...
Definition: common/capabilities.hh:103
specialize with &#39;true&#39; for all codims that a grid provides an iterator for (default=false) ...
Definition: common/capabilities.hh:71
Specialize with &#39;true&#39; for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition: common/capabilities.hh:24
[ provides Dune::Grid ]
Definition: agrid.hh:136
Definition: albertagrid/capabilities.hh:94
Specialize with &#39;true&#39; if implementation provides backup and restore facilities. (default=false) ...
Definition: common/capabilities.hh:121
Specialize with &#39;true&#39; for all codims that a grid implements entities for. (default=false) ...
Definition: common/capabilities.hh:55
Specialize with &#39;true&#39; if implementation guarantees a conforming leaf grid. (default=false) ...
Definition: common/capabilities.hh:112
static const unsigned int topologyId
Definition: common/capabilities.hh:29
A set of traits classes to store static information about grid implementation.
static const bool v
Definition: common/capabilities.hh:26
Include standard header files.
Definition: agrid.hh:58