Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_corelib_tools_qsharedpointer.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

Go to the source code of this file.

Classes

class  Y
 [0] More...
 
class  ScriptInterface
 [0] More...
 

Functions

int main ()
 
static void doDeleteLater (MyObject *obj)
 [1]
 
void otherFunction ()
 
 if (sharedptr)
 [3]
 
 if (!sharedptr)
 [4]
 
QSharedPointer< T > other (t)
 [5]
 
this swap (other)
 
QSharedPointer< T > other (t, deleter)
 [6]
 
 if (weakref)
 [7]
 
 qDebug ("Tracking %p", weakref.data())
 [9]
 
 if (obj)
 

Variables

QSharedPointer< MyObjectobj
 [2]
 
QWeakPointer< int > weakref = obtainReference()
 [10]
 
QSharedPointer< int > strong = weakref.toStrongRef()
 

Function Documentation

◆ doDeleteLater()

static void doDeleteLater ( MyObject * obj)
static

[1]

[2]

Definition at line 39 of file src_corelib_tools_qsharedpointer.cpp.

◆ if() [1/4]

if ( ! weakref)

[4]

[8]

[5]

[9]

Definition at line 64 of file src_corelib_tools_qsharedpointer.cpp.

◆ if() [2/4]

if ( obj )

Definition at line 93 of file src_corelib_tools_qsharedpointer.cpp.

◆ if() [3/4]

if ( sharedptr )

[3]

[4]

Definition at line 60 of file src_corelib_tools_qsharedpointer.cpp.

◆ if() [4/4]

if ( weakref )

[7]

[8]

Definition at line 76 of file src_corelib_tools_qsharedpointer.cpp.

◆ main()

int main ( )

Definition at line 14 of file src_corelib_tools_qsharedpointer.cpp.

◆ other() [1/2]

QSharedPointer< T > other ( t )

[5]

[6]

◆ other() [2/2]

QSharedPointer< T > other ( t ,
deleter  )

[6]

[7]

◆ otherFunction()

void otherFunction ( )

Definition at line 44 of file src_corelib_tools_qsharedpointer.cpp.

◆ qDebug()

qDebug ( "Tracking %p" ,
weakref. data() )

[9]

[10]

◆ swap()

this swap ( other )

Variable Documentation

◆ obj

Initial value:

[2]

[3]

Definition at line 55 of file src_corelib_tools_qsharedpointer.cpp.

◆ strong

QSharedPointer< int > strong = weakref.toStrongRef()

Definition at line 105 of file src_corelib_tools_qsharedpointer.cpp.

◆ weakref

QWeakPointer< int > weakref = obtainReference()

[10]

[11]

[12]

Definition at line 90 of file src_corelib_tools_qsharedpointer.cpp.