1#include <dune/common/bartonnackmanifcheck.hh>
3#ifndef DUNE_FEM_BARTONNACKMANINTERFACE_HH
4#define DUNE_FEM_BARTONNACKMANINTERFACE_HH
15 template<
class Interface,
class Implementation >
23 static_assert( (std::is_convertible< Interface, ThisType >::value),
"Interface must be derived from BartonNackmanInterface." );
29 return static_cast< const Implementation &
>( other );
34 return static_cast< Implementation &
>( other );
37 const Implementation &
asImp ()
const
39 return asImp( *
this );
44 return asImp( *
this );
Definition: bindguard.hh:11
Definition: bartonnackmaninterface.hh:17
static const Implementation & asImp(const ThisType &other)
Definition: bartonnackmaninterface.hh:27
Implementation & asImp()
Definition: bartonnackmaninterface.hh:42
const Implementation & asImp() const
Definition: bartonnackmaninterface.hh:37
BartonNackmanInterface()
Definition: bartonnackmaninterface.hh:21
static Implementation & asImp(ThisType &other)
Definition: bartonnackmaninterface.hh:32