QtSharedPointer Namespace Reference

QtSharedPointer Namespace Reference

Classes

class  Basic
 
class  ExternalRefCount
 
struct  ExternalRefCountData
 
struct  ExternalRefCountWithContiguousData
 
struct  ExternalRefCountWithCustomDeleter
 
struct  ExternalRefCountWithDestroyFn
 
class  InternalRefCount
 
struct  RemovePointer
 
struct  RemovePointer< QSharedPointer< T > >
 
struct  RemovePointer< QWeakPointer< T > >
 
struct  RemovePointer< T * >
 

Functions

template<class X , class Y >
QSharedPointer< X > copyAndSetPointer (X *ptr, const QSharedPointer< Y > &src)
 
Q_CORE_EXPORT void internalSafetyCheckAdd2 (const void *, const volatile void *)
 
Q_CORE_EXPORT void internalSafetyCheckRemove2 (const void *)
 
template<class T , typename Klass , typename RetVal >
void executeDeleter (T *t, RetVal(Klass::*memberDeleter)())
 
template<class T , typename Deleter >
void executeDeleter (T *t, Deleter d)
 
template<class T >
void normalDeleter (T *t)
 
template<class X , class T >
Q_INLINE_TEMPLATE QSharedPointer< X > copyAndSetPointer (X *ptr, const QSharedPointer< T > &src)
 

Function Documentation

QSharedPointer<X> QtSharedPointer::copyAndSetPointer ( X *  ptr,
const QSharedPointer< Y > &  src 
)
Q_CORE_EXPORT void QtSharedPointer::internalSafetyCheckAdd2 ( const void ,
const volatile void  
)
Q_CORE_EXPORT void QtSharedPointer::internalSafetyCheckRemove2 ( const void )
void QtSharedPointer::executeDeleter ( T *  t,
RetVal(Klass::*)()  memberDeleter 
)
inline

Definition at line 114 of file qsharedpointer_impl.h.

115  { (t->*memberDeleter)(); }
GLdouble GLdouble t
Definition: GLee.h:1181
void QtSharedPointer::executeDeleter ( T *  t,
Deleter  d 
)
inline

Definition at line 117 of file qsharedpointer_impl.h.

118  { d(t); }
GLdouble GLdouble t
Definition: GLee.h:1181
void QtSharedPointer::normalDeleter ( T *  t)
inline

Definition at line 119 of file qsharedpointer_impl.h.

119 { delete t; }
GLdouble GLdouble t
Definition: GLee.h:1181
Q_INLINE_TEMPLATE QSharedPointer<X> QtSharedPointer::copyAndSetPointer ( X *  ptr,
const QSharedPointer< T > &  src 
)

Definition at line 810 of file qsharedpointer_impl.h.

811  {
812  QSharedPointer<X> result;
813  result.internalSet(src.d, ptr);
814  return result;
815  }
void internalSet(Data *o, T *actual)