1 #include <dune/common/bartonnackmanifcheck.hh> 3 #ifndef DUNE_FEM_BARTONNACKMANINTERFACE_HH 4 #define DUNE_FEM_BARTONNACKMANINTERFACE_HH 6 #include <dune/common/typetraits.hh> 14 template<
class Interface,
class Implementation >
22 static_assert( (Conversion< Interface, ThisType >::exists),
"Interface must be derived from BartonNackmanInterface." );
27 static const Implementation &
asImp (
const ThisType &other )
29 return static_cast< const Implementation &
>( other );
32 static Implementation &
asImp ( ThisType &other )
34 return static_cast< Implementation &
>( other );
37 const Implementation &
asImp ()
const 39 return asImp( *
this );
44 return asImp( *
this );
52 #endif // #ifndef DUNE_FEM_BARTONNACKMANINTERFACE_HH
const Implementation & asImp() const
Definition: bartonnackmaninterface.hh:37
BartonNackmanInterface()
Definition: bartonnackmaninterface.hh:20
static Implementation & asImp(ThisType &other)
Definition: bartonnackmaninterface.hh:32
Definition: coordinate.hh:4
static const Implementation & asImp(const ThisType &other)
Definition: bartonnackmaninterface.hh:27
Implementation & asImp()
Definition: bartonnackmaninterface.hh:42
Definition: bartonnackmaninterface.hh:15