Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
PolymorphicValue< IFA, storage, CPY >::Adapter< IMP > Class Template Reference

Description

template<class IFA, size_t storage, class CPY = IFA>
template<class IMP>
class lib::PolymorphicValue< IFA, storage, CPY >::Adapter< IMP >

Implementation Helper: add support for copy operations.

Actually instances of this Adapter template are placed into the internal buffer, such that they both inherit from the desired implementation type and the copy support interface. The implementation of the concrete copy operations is provided here as forwarding to the copy operations of the implementation object.

Definition at line 407 of file polymorphic-value.hpp.

Public Member Functions

template<typename... ARGS>
 Adapter (ARGS &&... args)
 
- Public Member Functions inherited from CopySupport< IFA, BA >
virtual ~CopySupport ()
 

Private Member Functions

virtual void cloneInto (void *targetBuffer) const
 
virtual void copyInto (IFA &targetBase) const
 

Constructor & Destructor Documentation

◆ Adapter()

template<class IFA , size_t storage, class CPY = IFA>
template<class IMP >
template<typename... ARGS>
Adapter ( ARGS &&...  args)
inline

Definition at line 428 of file polymorphic-value.hpp.

Member Function Documentation

◆ cloneInto()

template<class IFA , size_t storage, class CPY = IFA>
template<class IMP >
virtual void cloneInto ( void *  targetBuffer) const
inlineprivatevirtual

Implements CopySupport< IFA, BA >.

Definition at line 412 of file polymorphic-value.hpp.

◆ copyInto()

template<class IFA , size_t storage, class CPY = IFA>
template<class IMP >
virtual void copyInto ( IFA &  targetBase) const
inlineprivatevirtual

Implements CopySupport< IFA, BA >.

Definition at line 418 of file polymorphic-value.hpp.

References INSTANCEOF.

+ Inheritance diagram for PolymorphicValue< IFA, storage, CPY >::Adapter< IMP >:
+ Collaboration diagram for PolymorphicValue< IFA, storage, CPY >::Adapter< IMP >:

The documentation for this class was generated from the following file: