OpendTect-6_4  6.4
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);
32  ~QObjPtr();
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 
41  Threads::Mutex& mutex();
42 
43  NotifierAccess& deleteNotifier();
44 
45 protected:
46 
48 };
49 
50 
51 #endif
#define mQtclass(cls)
Definition: commondefs.h:229
Interface class for Notifier. See comments there.
Definition: callback.h:161
mFDQtclass(QObject)
Helper class for QPtr to relay Qt's messages. Internal object, to hide Qt's signal/slot mechanism...
Definition: i_qptr.h:26
interface to threads that should be portable.
Definition: atomic.h:28
Class with a pointer to a QObject. The pointer will be set to null when the QObject goes out of scope...
Definition: qptr.h:28
Is a lock that allows a thread to have exlusive rights to something.
Definition: thread.h:43
i_QPtrImpl * impl_
Definition: qptr.h:47

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