QtBase  v6.3.1
Classes | Functions | Variables
src_corelib_tools_qsharedpointer.cpp File Reference

Go to the source code of this file.

Classes

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

Functions

int main ()
 
void otherFunction ()
 
 if (sharedptr)
 [3] More...
 
 if (!sharedptr)
 [4] More...
 
QSharedPointer< Tother (t)
 [5] More...
 
this swap (other)
 
QSharedPointer< Tother (t, deleter)
 [6] More...
 
 if (weakref)
 [7] More...
 
 qDebug ("Tracking %p", weakref.data())
 [9] More...
 
 if (obj)
 

Variables

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

Function Documentation

◆ if() [1/4]

if ( weakref)

[4]

[8]

[5]

[9]

Definition at line 111 of file src_corelib_tools_qsharedpointer.cpp.

◆ if() [2/4]

if ( obj  )

Definition at line 140 of file src_corelib_tools_qsharedpointer.cpp.

Here is the call graph for this function:

◆ if() [3/4]

if ( sharedptr  )

[3]

[4]

Definition at line 107 of file src_corelib_tools_qsharedpointer.cpp.

◆ if() [4/4]

if ( weakref  )

[7]

[8]

Definition at line 123 of file src_corelib_tools_qsharedpointer.cpp.

◆ main()

int main ( void  )

Definition at line 61 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 91 of file src_corelib_tools_qsharedpointer.cpp.

Here is the caller graph for this function:

◆ qDebug()

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

[9]

[10]

◆ swap()

this swap ( other  )
Here is the caller graph for this function:

Variable Documentation

◆ obj

Initial value:
=
[0]
Definition: myobject.h:58
void deleteLater()
Definition: qobject.cpp:2319
The QSharedPointer class holds a strong reference to a shared pointer.

[2]

[3]

Definition at line 102 of file src_corelib_tools_qsharedpointer.cpp.

◆ strong

QSharedPointer<int> strong = weakref.toStrongRef()

Definition at line 152 of file src_corelib_tools_qsharedpointer.cpp.

◆ weakref

QWeakPointer< int > weakref = obtainReference()

[10]

[11]

[12]

Definition at line 137 of file src_corelib_tools_qsharedpointer.cpp.