Dune Core Modules (2.8.0)
Dune::Functions::TypeErasureBase< Interface, Implementation, bufferSize > Class Template Reference
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. | |
Detailed Description
template<class Interface, template< class > class Implementation, size_t bufferSize = 56>
class Dune::Functions::TypeErasureBase< Interface, Implementation, bufferSize >
class Dune::Functions::TypeErasureBase< Interface, Implementation, bufferSize >
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.
The documentation for this class was generated from the following file:
- dune/functions/common/typeerasure.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)