![]() |
LeechCraft 0.6.70-19214-g121e5318a7
Modular cross-platform feature rich live environment.
|
#include "corocontext.h"
Classes | |
| struct | Coro |
| struct | Registration |
Public Types | |
| using | Coros = std::list<Coro> |
| using | Registrations = std::vector<Registration> |
Public Member Functions | |
| CoroContext ()=default | |
| CoroContext (const QString &) | |
| CoroContext (const QObject &) | |
| CoroContext (const CoroContext &)=delete | |
| CoroContext (CoroContext &&)=delete | |
| CoroContext & | operator= (const CoroContext &)=delete |
| CoroContext & | operator= (CoroContext &&)=delete |
| ~CoroContext () | |
| QString | GetName () const |
Static Public Member Functions | |
| static CoroContext & | Of (QObject &obj) |
| Returns the context tied to the lifetime of obj. | |
Friends | |
| struct | AddContext |
| struct | ContextExtensionBase |
Definition at line 35 of file corocontext.h.
| using LC::Util::CoroContext::Coros = std::list<Coro> |
Definition at line 47 of file corocontext.h.
| using LC::Util::CoroContext::Registrations = std::vector<Registration> |
Definition at line 57 of file corocontext.h.
|
default |
References CoroContext().
Referenced by CoroContext(), CoroContext(), CoroContext(), CoroContext(), Of(), operator=(), and operator=().
|
explicit |
Definition at line 23 of file corocontext.cpp.
|
explicit |
Definition at line 28 of file corocontext.cpp.
References CoroContext().
|
delete |
|
delete |
| LC::Util::CoroContext::~CoroContext | ( | ) |
Definition at line 33 of file corocontext.cpp.
References LC::Util::detail::PromiseBase::Running.
|
inline |
Definition at line 70 of file corocontext.h.
|
static |
Returns the context tied to the lifetime of obj.
The same object always yields the same context, which dies when obj gets QObject::destroyed().
This function shall be called from the same thread where obj lives.
| [in] | obj | An object to whose lifetime the context is tied. |
Definition at line 53 of file corocontext.cpp.
References CoroContext().
|
delete |
|
delete |
|
friend |
|
friend |
Definition at line 38 of file corocontext.h.
References ContextExtensionBase.
Referenced by ContextExtensionBase.