dune-functions 2.9.0
|
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. More... | |
TypeErasureBase ()=default | |
Default constructor. More... | |
Interface & | asInterface () |
Get mutable reference to wrapped object. More... | |
const Interface & | asInterface () const |
Get reference to wrapped object. More... | |
const std::type_info & | target_type () const |
Get type of stored object. More... | |
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 |