Heart 1.3.880.d32293b
Heart is base back end library for your c++ Qt projects.
QH::AsyncRenderLoop::MainSharedPtr< T > Class Template Reference

The MainSharedPtr class is a helper class for creating a shared pointer to the render loop. More...

#include <asyncrenderloop.h>

Collaboration diagram for QH::AsyncRenderLoop::MainSharedPtr< T >:
Collaboration graph

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.
 

Detailed Description

template<typename T>
class QH::AsyncRenderLoop::MainSharedPtr< T >

The MainSharedPtr class is a helper class for creating a shared pointer to the render loop.

Template Parameters
Ttype 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.

Constructor & Destructor Documentation

◆ MainSharedPtr() [1/2]

template<typename T >
QH::AsyncRenderLoop::MainSharedPtr< T >::MainSharedPtr ( )
inline

Definition at line 74 of file asyncrenderloop.h.

◆ MainSharedPtr() [2/2]

template<typename T >
QH::AsyncRenderLoop::MainSharedPtr< T >::MainSharedPtr ( const QSharedPointer< T > &  ptr)
inline

Definition at line 79 of file asyncrenderloop.h.

◆ ~MainSharedPtr()

template<typename T >
QH::AsyncRenderLoop::MainSharedPtr< T >::~MainSharedPtr ( )
inline

Definition at line 83 of file asyncrenderloop.h.

Member Function Documentation

◆ create()

template<typename T >
template<typename... Args>
static MainSharedPtr QH::AsyncRenderLoop::MainSharedPtr< T >::create ( Args &&...  arguments)
inlinestatic

create This method creates a shared pointer to the render loop.

Parameters
argumentsarguments for the constructor of the render loop object.
Returns
shared pointer to the render loop.

Definition at line 107 of file asyncrenderloop.h.

◆ get()

template<typename T >
T * QH::AsyncRenderLoop::MainSharedPtr< T >::get ( ) const
inline

get This is a alias of the QSharedPointer::get method.

Returns
pointer to the object.

Definition at line 97 of file asyncrenderloop.h.

◆ getShared()

template<typename T >
const QSharedPointer< T > & QH::AsyncRenderLoop::MainSharedPtr< T >::getShared ( ) const
inline

getShared This method return child shared pointer. You can use them as a general shared pointer of the object.

Returns
reference to the object.

Definition at line 115 of file asyncrenderloop.h.

◆ operator->()

template<typename T >
T * QH::AsyncRenderLoop::MainSharedPtr< T >::operator-> ( ) const
inline

Definition at line 89 of file asyncrenderloop.h.


The documentation for this class was generated from the following file: