OpendTect  6.6
qptr.h
Go to the documentation of this file.
1 #ifndef qptr_h
2 #define qptr_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: Nov 2012
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "gendefs.h"
16 
17 class NotifierAccess;
18 class i_QPtrImpl;
19 namespace Threads { class Mutex; }
20 
21 mFDQtclass(QObject);
22 
28 class QObjPtr
29 {
30 public:
31  QObjPtr(mQtclass(QObject)* = 0);
33 
34  operator mQtclass(QObject)*();
35  operator const mQtclass(QObject)*() const;
36  mQtclass(QObject*) operator->();
37  const mQtclass(QObject*) operator->() const;
38 
39  mQtclass(QObject)* operator=(mQtclass(QObject)*);
40 
42 
44 
45 protected:
46 
48 };
49 
50 
51 #endif
Threads::Mutex
Is a lock that allows a thread to have exlusive rights to something.
Definition: thread.h:45
i_QPtrImpl
Helper class for QPtr to relay Qt's messages. Internal object, to hide Qt's signal/slot mechanism.
Definition: i_qptr.h:27
QObjPtr::deleteNotifier
NotifierAccess & deleteNotifier()
QObjPtr::QObjPtr
QObjPtr(mQtclass(QObject) *=0)
QObjPtr::mutex
Threads::Mutex & mutex()
mFDQtclass
mFDQtclass(QObject)
NotifierAccess
Interface class for Notifier. See comments there.
Definition: notify.h:22
gendefs.h
QObjPtr::mQtclass
const mQtclass(QObject *) operator->() const
QObjPtr
Class with a pointer to a QObject. The pointer will be set to null when the QObject goes out of scope...
Definition: qptr.h:29
QObjPtr::~QObjPtr
~QObjPtr()
QObjPtr::impl_
i_QPtrImpl * impl_
Definition: qptr.h:47
QObjPtr::mQtclass
mQtclass(QObject) *operator
QObjPtr::mQtclass
mQtclass(QObject *) operator->()
Threads
interface to threads that should be portable.
Definition: atomic.h:23

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021