dune-pdelab  2.4-dev
typetraits.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 
4 #ifndef DUNE_PDELAB_COMMON_TYPETRAITS_HH
5 #define DUNE_PDELAB_COMMON_TYPETRAITS_HH
6 
7 #include <dune/common/typetraits.hh>
8 #include <dune/typetree/typetraits.hh>
9 
10 namespace Dune {
11  namespace PDELab {
12 
13  // Import AlwaysVoid from TypeTree library
14  using TypeTree::AlwaysVoid;
15 
16  // forward decl of Tag defined in function.hh
17  struct GridFunctionTag;
18  struct PowerGridFunctionTag;
19  struct CompositeGridFunctionTag;
20 
21  template<typename T, typename = void>
23  {
24  static const bool value = false;
25  };
26 
27  template<typename T>
28  struct IsGridFunction<T, typename AlwaysVoid<typename T::ImplementationTag>::type >
29  {
30  typedef typename T::ImplementationTag A;
34  };
35 
36  } // end namespace PDELab
37 } // end namespace Dune
38 
39 #endif // DUNE_PDELAB_COMMON_TYPETRAITS_HH
static const bool value
Definition: typetraits.hh:24
static const unsigned int value
Definition: gridfunctionspace/tags.hh:175
Definition: typetraits.hh:22
Definition: adaptivity.hh:27