Basic< T > Class Template Reference


Detailed Description

template<class T>
class QtSharedPointer::Basic< T >

Definition at line 122 of file qsharedpointer_impl.h.

#include <qsharedpointer_impl.h>

Inheritance diagram for Basic< T >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef T  Type
typedef T  element_type
typedef T  value_type
typedef value_type pointer
typedef const value_type const_pointer
typedef value_type reference
typedef const value_type const_reference
typedef qptrdiff  difference_type

Public Member Functions

T *  data () const
bool  isNull () const
  operator RestrictedBool () const
bool  operator! () const
T &  operator* () const
T *  operator-> () const

Protected Member Functions

  Basic (T *ptr=0)
  Basic (Qt::Initialization)
void  internalConstruct (T *ptr)

Protected Attributes

Type value

Friends

template<class X >
class  QT_PREPEND_NAMESPACE (QWeakPointer)

Member Typedef Documentation

typedef T Type
typedef T element_type
typedef T value_type
typedef qptrdiff difference_type

Constructor & Destructor Documentation

Basic ( T *  ptr = 0 ) [inline, protected]

Definition at line 149 of file qsharedpointer_impl.h.

: value(ptr) { }
Basic ( Qt::Initialization  ) [inline, protected]

Definition at line 150 of file qsharedpointer_impl.h.

{ }

Member Function Documentation

T* data ( ) const [inline]

Definition at line 137 of file qsharedpointer_impl.h.

{ return value; }
bool isNull ( ) const [inline]

Definition at line 138 of file qsharedpointer_impl.h.

{ return !data(); }
operator RestrictedBool ( ) const [inline]

Definition at line 140 of file qsharedpointer_impl.h.

{ return isNull() ? 0 : &Basic::value; }
bool operator! ( void  ) const [inline]

Definition at line 144 of file qsharedpointer_impl.h.

{ return isNull(); }
T& operator* ( ) const [inline]

Definition at line 145 of file qsharedpointer_impl.h.

{ return *data(); }
T* operator-> ( void  ) const [inline]

Definition at line 146 of file qsharedpointer_impl.h.

{ return data(); }
void internalConstruct ( T *  ptr ) [inline, protected]

Friends And Related Function Documentation


Member Data Documentation

Type* value [protected]

The documentation for this class was generated from the following file: