3#ifndef DUNE_FEM_BARTONNACKMANINTERFACE_HH 
    4#define DUNE_FEM_BARTONNACKMANINTERFACE_HH 
   15    template< 
class Interface, 
class Implementation >
 
   16    class BartonNackmanInterface
 
   18      typedef BartonNackmanInterface< Interface, Implementation > ThisType;
 
   21      BartonNackmanInterface ()
 
   23        static_assert( (std::is_convertible< Interface, ThisType >::value), 
"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 );
 
   42      Implementation &asImp ()
 
   44        return asImp( *
this );
 
Provides check for implementation of interface methods when using static polymorphism,...
 
Dune namespace.
Definition: alignedallocator.hh:13