Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
StoreUncheckedFunPtr Class Reference

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

Description

Policy for FunErasure: store an unchecked bare function pointer.

Using this policy allows to store a conventional function ptr, and to retrieve it without overhead, but also without safety.

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

Public Member Functions

template<typename SIG >
 StoreUncheckedFunPtr (SIG &fun)
 
template<typename SIG >
 StoreUncheckedFunPtr (SIG *fun)
 
template<typename SIG >
SIGgetFun ()
 
 operator bool () const
 
bool isValid () const
 

Private Attributes

voidfunP_
 

Constructor & Destructor Documentation

◆ StoreUncheckedFunPtr() [1/2]

template<typename SIG >
StoreUncheckedFunPtr ( SIG fun)
inline

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

References StoreUncheckedFunPtr::funP_.

◆ StoreUncheckedFunPtr() [2/2]

template<typename SIG >
StoreUncheckedFunPtr ( SIG fun)
inline

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

References StoreUncheckedFunPtr::funP_.

Member Function Documentation

◆ getFun()

template<typename SIG >
SIG & getFun ( )
inline

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

References StoreUncheckedFunPtr::funP_.

◆ operator bool()

operator bool ( ) const
inlineexplicit

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

References StoreUncheckedFunPtr::funP_.

◆ isValid()

bool isValid ( ) const
inline

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

References StoreUncheckedFunPtr::funP_.

Member Data Documentation

◆ funP_

+ Collaboration diagram for StoreUncheckedFunPtr:

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