![]() |
Heart 1.3.880.d32293b
Heart is base back end library for your c++ Qt projects.
|
The MainSharedPtr class is a helper class for creating a shared pointer to the render loop. More...
#include <asyncrenderloop.h>
Public Member Functions | |
MainSharedPtr () | |
MainSharedPtr (const QSharedPointer< T > &ptr) | |
~MainSharedPtr () | |
T * | operator-> () const |
T * | get () const |
get This is a alias of the QSharedPointer::get method. | |
const QSharedPointer< T > & | getShared () const |
getShared This method return child shared pointer. You can use them as a general shared pointer of the object. | |
Static Public Member Functions | |
template<typename... Args> | |
static MainSharedPtr | create (Args &&...arguments) |
create This method creates a shared pointer to the render loop. | |
The MainSharedPtr class is a helper class for creating a shared pointer to the render loop.
T | type of the render loop object. This class make main sharedPointer of your render loop object. it is used to solve issue with deleting object in self thread. |
if you use the AsyncRenderLoop as a QSharedPointer and push WeackPointer to the child objects, you must use this wrapper class.
Definition at line 72 of file asyncrenderloop.h.
|
inline |
Definition at line 74 of file asyncrenderloop.h.
|
inline |
Definition at line 79 of file asyncrenderloop.h.
|
inline |
Definition at line 83 of file asyncrenderloop.h.
|
inlinestatic |
create This method creates a shared pointer to the render loop.
arguments | arguments for the constructor of the render loop object. |
Definition at line 107 of file asyncrenderloop.h.
|
inline |
get This is a alias of the QSharedPointer::get method.
Definition at line 97 of file asyncrenderloop.h.
|
inline |
getShared This method return child shared pointer. You can use them as a general shared pointer of the object.
Definition at line 115 of file asyncrenderloop.h.
|
inline |
Definition at line 89 of file asyncrenderloop.h.