Qt 4.8
Classes | Functions
qpointer.h File Reference
#include <QtCore/qobject.h>

Go to the source code of this file.

Classes

class  QPointer< T >
 The QPointer class is a template class that provides guarded pointers to QObject. More...
 

Function Documentation

◆ operator!=() [1/5]

template<class T >
bool operator!= ( const T *  o,
const QPointer< T > &  p 
)
related

Definition at line 122 of file qpointer.h.

123 { return o != p.operator->(); }

◆ operator!=() [2/5]

template<class T >
bool operator!= ( const QPointer< T > &  p,
const T *  o 
)
related

Definition at line 126 of file qpointer.h.

127 { return p.operator->() != o; }

◆ operator!=() [3/5]

template<class T >
bool operator!= ( T *  o,
const QPointer< T > &  p 
)
related

Definition at line 142 of file qpointer.h.

143 { return o != p.operator->(); }

◆ operator!=() [4/5]

template<class T >
bool operator!= ( const QPointer< T > &  p,
T *  o 
)
related

Definition at line 146 of file qpointer.h.

147 { return p.operator->() != o; }

◆ operator!=() [5/5]

template<class T >
bool operator!= ( const QPointer< T > &  p1,
const QPointer< T > &  p2 
)
related

Definition at line 150 of file qpointer.h.

151 { return p1.operator->() != p2.operator->() ; }

◆ operator==() [1/5]

template<class T >
bool operator== ( const T *  o,
const QPointer< T > &  p 
)
related

Definition at line 87 of file qpointer.h.

88 { return o == p.operator->(); }

◆ operator==() [2/5]

template<class T >
bool operator== ( const QPointer< T > &  p,
const T *  o 
)
related

Definition at line 91 of file qpointer.h.

92 { return p.operator->() == o; }

◆ operator==() [3/5]

template<class T >
bool operator== ( T *  o,
const QPointer< T > &  p 
)
related

Definition at line 107 of file qpointer.h.

108 { return o == p.operator->(); }

◆ operator==() [4/5]

template<class T >
bool operator== ( const QPointer< T > &  p,
T *  o 
)
related

Definition at line 111 of file qpointer.h.

112 { return p.operator->() == o; }

◆ operator==() [5/5]

template<class T >
bool operator== ( const QPointer< T > &  p1,
const QPointer< T > &  p2 
)
related

Definition at line 115 of file qpointer.h.

116 { return p1.operator->() == p2.operator->(); }