LeechCraft 0.6.70-19214-g121e5318a7
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::CoroContext Class Reference

#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

Detailed Description

Definition at line 35 of file corocontext.h.

Member Typedef Documentation

◆ Coros

using LC::Util::CoroContext::Coros = std::list<Coro>

Definition at line 47 of file corocontext.h.

◆ Registrations

Definition at line 57 of file corocontext.h.

Constructor & Destructor Documentation

◆ CoroContext() [1/5]

LC::Util::CoroContext::CoroContext ( )
default

References CoroContext().

Referenced by CoroContext(), CoroContext(), CoroContext(), CoroContext(), Of(), operator=(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CoroContext() [2/5]

LC::Util::CoroContext::CoroContext ( const QString & name)
explicit

Definition at line 23 of file corocontext.cpp.

◆ CoroContext() [3/5]

LC::Util::CoroContext::CoroContext ( const QObject & obj)
explicit

Definition at line 28 of file corocontext.cpp.

References CoroContext().

Here is the call graph for this function:

◆ CoroContext() [4/5]

LC::Util::CoroContext::CoroContext ( const CoroContext & )
delete

References CoroContext().

Here is the call graph for this function:

◆ CoroContext() [5/5]

LC::Util::CoroContext::CoroContext ( CoroContext && )
delete

References CoroContext().

Here is the call graph for this function:

◆ ~CoroContext()

LC::Util::CoroContext::~CoroContext ( )

Definition at line 33 of file corocontext.cpp.

References LC::Util::detail::PromiseBase::Running.

Member Function Documentation

◆ GetName()

QString LC::Util::CoroContext::GetName ( ) const
inline

Definition at line 70 of file corocontext.h.

◆ Of()

CoroContext & LC::Util::CoroContext::Of ( QObject & obj)
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.

Parameters
[in]objAn object to whose lifetime the context is tied.
Returns
The context representing the lifetime of obj.

Definition at line 53 of file corocontext.cpp.

References CoroContext().

Here is the call graph for this function:

◆ operator=() [1/2]

CoroContext & LC::Util::CoroContext::operator= ( const CoroContext & )
delete

References CoroContext().

Here is the call graph for this function:

◆ operator=() [2/2]

CoroContext & LC::Util::CoroContext::operator= ( CoroContext && )
delete

References CoroContext().

Here is the call graph for this function:

◆ AddContext

friend struct AddContext
friend

Definition at line 37 of file corocontext.h.

References AddContext.

Referenced by AddContext.

◆ ContextExtensionBase

friend struct ContextExtensionBase
friend

Definition at line 38 of file corocontext.h.

References ContextExtensionBase.

Referenced by ContextExtensionBase.


The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.19214.g121e5318a7-build/leechcraft-0.6.70-19214-g121e5318a7/src/util/threads/coro/corocontext.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.19214.g121e5318a7-build/leechcraft-0.6.70-19214-g121e5318a7/src/util/threads/coro/corocontext.cpp