class DispatcherHolder
Defined at line 23 of file ../../src/ui/scenic/lib/utils/dispatcher_holder.h
Abstract interface for objects which hold a dispatcher. The purpose of this is to allow
shared ownership of the dispatcher, which is often not otherwise possible. For example,
async::Loop has unique ownership of its dispatcher, so if you want to keep the dispatcher
alive, you need to keep the loop alive. But then, why not pass around a shared_ptr
<AsyncLoop
>?
Because it's not always an async::Loop. This interface hides the concrete type of the
dispatcher's owner.
Public Methods
void DispatcherHolder ()
Defined at line 25 of file ../../src/ui/scenic/lib/utils/dispatcher_holder.h
void ~DispatcherHolder ()
Defined at line 26 of file ../../src/ui/scenic/lib/utils/dispatcher_holder.h
void DispatcherHolder (const DispatcherHolder & )
DispatcherHolder and subclasses cannot be copied nor moved.
Defined at line 29 of file ../../src/ui/scenic/lib/utils/dispatcher_holder.h
DispatcherHolder & operator= (const DispatcherHolder & )
Defined at line 30 of file ../../src/ui/scenic/lib/utils/dispatcher_holder.h
void DispatcherHolder (DispatcherHolder && )
Defined at line 31 of file ../../src/ui/scenic/lib/utils/dispatcher_holder.h
async_dispatcher_t * dispatcher ()
DispatcherHolder & operator= (DispatcherHolder && )
Defined at line 32 of file ../../src/ui/scenic/lib/utils/dispatcher_holder.h