Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
StoreFunction Class Reference

#include "lib/meta/function-erasure.hpp"

Description

Policy for FunErasure: store an embedded std::function Using this policy allows to store arbitrary complex functor objects embedded within a neutral container and retrieving them later type-safe.

The price to pay is vtable access and heap storage of function arguments.

Definition at line 113 of file function-erasure.hpp.

Public Member Functions

template<typename SIG >
 StoreFunction (SIG &fun)
 
template<typename SIG >
 StoreFunction (function< SIG > const &fun)
 
template<typename SIG >
function< SIG > & getFun () const
 
- Public Member Functions inherited from InPlaceAnyHolder< siz, AccessPolicy >
 ~InPlaceAnyHolder ()
 
void clear ()
 
 InPlaceAnyHolder ()
 
template<class SUB >
 InPlaceAnyHolder (SUB const &obj)
 
 InPlaceAnyHolder (InPlaceAnyHolder const &ref)
 
InPlaceAnyHolderoperator= (InPlaceAnyHolder const &ref)
 
template<class SUB >
InPlaceAnyHolderoperator= (SUB const &newContent)
 
template<class SUB >
SUB & get () const
 re-accessing the concrete contained object.
 
bool empty () const
 
bool isValid () const
 
 operator bool () const
 

Additional Inherited Members

- Protected Member Functions inherited from InPlaceAnyHolder< siz, AccessPolicy >
Bufferbuff ()
 
const Bufferbuff () const
 
void killBuffer ()
 
void make_emptyBuff ()
 
template<class SUB >
void place_inBuff (SUB const &obj)
 
void clone_inBuff (InPlaceAnyHolder const &ref)
 
BaseP asBase () const
 <
 

Constructor & Destructor Documentation

◆ StoreFunction() [1/2]

template<typename SIG >
StoreFunction ( SIG fun)
inline

Definition at line 118 of file function-erasure.hpp.

◆ StoreFunction() [2/2]

template<typename SIG >
StoreFunction ( function< SIG > const fun)
inline

Definition at line 123 of file function-erasure.hpp.

Member Function Documentation

◆ getFun()

template<typename SIG >
function< SIG > & getFun ( ) const
inline

Definition at line 129 of file function-erasure.hpp.

+ Inheritance diagram for StoreFunction:
+ Collaboration diagram for StoreFunction:

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