Lumiera
0.pre.03
»edit your freedom«
|
#include "vault/gear/special-job-fun.hpp"
Front-end to configure a special job functor for one-time use.
Definition at line 81 of file special-job-fun.hpp.
Public Member Functions | |
template<class FUN , typename = disable_if_self<SpecialJobFun, FUN>> | |
SpecialJobFun (FUN &&someFun) | |
Establish a new SpecialJobFun variation directly by wrapping a given functor. More... | |
operator bool () const | |
operator JobClosure & () const | |
uint | remainingInvocations () const |
long | use_count () const |
Classes | |
class | SpecialExecutor |
Private Types | |
using | _Handle = lib::Handle< SpecialFunPrototype > |
Additional Inherited Members | |
Protected Types inherited from Handle< SpecialFunPrototype > | |
typedef std::shared_ptr< SpecialFunPrototype > | SmPtr |
Protected Member Functions inherited from Handle< SpecialFunPrototype > | |
SpecialFunPrototype & | impl () const |
Handle ()=default | |
by default create an Null handle. More... | |
Handle (SpecialFunPrototype *imp) | |
directly establish handle from an implementation, which typically way just heap allocated beforehand. | |
Handle (Handle const &r)=default | |
Handle (Handle &&rr)=default | |
Handle (shared_ptr< Y > const &r) | |
Handle (shared_ptr< Y > &&srr) | |
Handle (weak_ptr< Y > const &wr) | |
Handle (unique_ptr< Y > &&urr) | |
Handle & | activate (SpecialFunPrototype *impl, DEL whenDead) |
Activation of the handle by the managing service. More... | |
Handle & | activate (shared_ptr< SpecialFunPrototype > const &impl) |
another way of activating a handle by sharing ownership with an existing smart-ptr | |
Handle & | activate (shared_ptr< SpecialFunPrototype > &&impl) |
void | close () |
deactivate this handle, so it isn't tied any longer to the associated implementation or service object. More... | |
bool | isValid () const |
operator bool () const | |
Handle & | operator= (Handle const &r)=default |
Handle & | operator= (Handle &&rr)=default |
Handle & | operator= (shared_ptr< Y > const &sr) |
Handle & | operator= (shared_ptr< Y > &&srr) |
Handle & | operator= (unique_ptr< Y > &&urr) |
Protected Attributes inherited from Handle< SpecialFunPrototype > | |
SmPtr | smPtr_ |
|
inlineexplicit |
Establish a new SpecialJobFun variation directly by wrapping a given functor.
The JobFunctor instance itself will be heap allocated.
Definition at line 160 of file special-job-fun.hpp.