| 
    dune-functions 2.10
    
   | 
 
Base class for type-erased interface wrapper. More...
#include <dune/functions/common/typeerasure.hh>

Public Member Functions | |
| template<class T , disableCopyMove< TypeErasureBase, T > = 0> | |
| TypeErasureBase (T &&t) | |
| Construct wrapper from object.   | |
| TypeErasureBase ()=default | |
| Default constructor.   | |
| Interface & | asInterface () | 
| Get mutable reference to wrapped object.   | |
| const Interface & | asInterface () const | 
| Get reference to wrapped object.   | |
| const std::type_info & | target_type () const | 
| Get type of stored object.   | |
Protected Attributes | |
| PolymorphicSmallObject< Imp::TypeErasureWrapperInterface< Interface >, bufferSize > | wrapped_ | 
Base class for type-erased interface wrapper.
This is meant as a base class for the type-erased interface wrapper that is actually visible to the user. By deriving from this you get small object optimization for the internal polymorphic wrapper.
      
  | 
  inline | 
Construct wrapper from object.
      
  | 
  default | 
Default constructor.
      
  | 
  inline | 
Get mutable reference to wrapped object.
      
  | 
  inline | 
Get reference to wrapped object.
      
  | 
  inline | 
Get type of stored object.
      
  | 
  protected |