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_qscopedpointer.cpp File Reference

(c7a7783668f5ad92b30daf18ff52184a2aa5b4ca)

#include <QIODevice>
#include <QScopedPointer>
#include <QScopedPointerArrayDeleter>
#include <QScopedPointerPodDeleter>
Include dependency graph for src_corelib_tools_qscopedpointer.cpp:

Go to the source code of this file.

Classes

class  MyClass
 [5] More...
class  MySubClass
class  repetition::MyClass
class  repetition::MySubClass
class  class_repetition::MyClass
class  class_repetition::MyPrivateClass
 [4] More...
class  MyCustomClass
struct  ScopedPointerCustomDeleter

Namespaces

namespace  repetition
 [3]
namespace  class_repetition

Functions

QIODevicehandsOverOwnership ()
void process (QIODevice *device)
void myFunction (bool useSubClass)
 [0]
void repetition::myFunction (bool useSubClass)
 [1]
void myCustomDeallocator (MyCustomClass *pointer)
QScopedPointer< MyCustomClass, ScopedPointerCustomDeletercustomPointer (new MyCustomClass)

Variables

int m_value
QScopedPointer< int, QScopedPointerArrayDeleter< int > > arrayPointer (new int[42])
 [5]
QScopedPointer< int, QScopedPointerPodDeleterpodPointer (reinterpret_cast< int * >(malloc(42)))

Function Documentation

◆ customPointer()

QScopedPointer< MyCustomClass, ScopedPointerCustomDeleter > customPointer ( new MyCustomClass)

◆ handsOverOwnership()

QIODevice * handsOverOwnership ( )

◆ myCustomDeallocator()

void myCustomDeallocator ( MyCustomClass * pointer)

Definition at line 127 of file src_corelib_tools_qscopedpointer.cpp.

Referenced by ScopedPointerCustomDeleter::cleanup().

Here is the caller graph for this function:

◆ myFunction()

void myFunction ( bool useSubClass)

[0]

Definition at line 17 of file src_corelib_tools_qscopedpointer.cpp.

References MyClass::MyClass(), and m_value.

Here is the call graph for this function:

◆ process()

void process ( QIODevice * device)

Variable Documentation

◆ arrayPointer

QScopedPointer< int, QScopedPointerArrayDeleter< int > > arrayPointer ( new int [42])

[5]

◆ m_value

int m_value

Definition at line 14 of file src_corelib_tools_qscopedpointer.cpp.

Referenced by myFunction(), and repetition::myFunction().

◆ podPointer

QScopedPointer< int, QScopedPointerPodDeleter > podPointer ( reinterpret_cast< int * > malloc(42))