![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/meta/function-erasure.hpp"
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 > | |
| SIG & | getFun () |
| operator bool () const | |
| bool | isValid () const |
Private Attributes | |
| void * | funP_ |
|
inline |
Definition at line 178 of file function-erasure.hpp.
References StoreUncheckedFunPtr::funP_.
|
inline |
Definition at line 183 of file function-erasure.hpp.
References StoreUncheckedFunPtr::funP_.
Definition at line 190 of file function-erasure.hpp.
References StoreUncheckedFunPtr::funP_.
|
inlineexplicit |
Definition at line 196 of file function-erasure.hpp.
References StoreUncheckedFunPtr::funP_.
|
inline |
Definition at line 197 of file function-erasure.hpp.
References StoreUncheckedFunPtr::funP_.
|
private |
Definition at line 174 of file function-erasure.hpp.
Referenced by StoreUncheckedFunPtr::StoreUncheckedFunPtr(), StoreUncheckedFunPtr::StoreUncheckedFunPtr(), StoreUncheckedFunPtr::getFun(), StoreUncheckedFunPtr::isValid(), and StoreUncheckedFunPtr::operator bool().
Collaboration diagram for StoreUncheckedFunPtr: