Qt 4.8
Public Functions | Static Public Functions | Protected Variables | List of all members
QCFType< T > Class Template Reference

#include <qcore_mac_p.h>

Public Functions

template<typename X >
as () const
 
T * operator & ()
 
 operator T ()
 
QCFType operator= (const QCFType &helper)
 
 QCFType (const T &t=0)
 
 QCFType (const QCFType &helper)
 
 ~QCFType ()
 

Static Public Functions

static QCFType constructFromGet (const T &t)
 

Protected Variables

type
 

Detailed Description

template<typename T>
class QCFType< T >

Definition at line 110 of file qcore_mac_p.h.

Constructors and Destructors

◆ QCFType() [1/2]

template<typename T>
QCFType< T >::QCFType ( const T &  t = 0)
inline

Definition at line 113 of file qcore_mac_p.h.

113 : type(t) {}

◆ QCFType() [2/2]

template<typename T>
QCFType< T >::QCFType ( const QCFType< T > &  helper)
inline

Definition at line 114 of file qcore_mac_p.h.

114 : type(helper.type) { if (type) CFRetain(type); }

◆ ~QCFType()

template<typename T>
QCFType< T >::~QCFType ( )
inline

Definition at line 115 of file qcore_mac_p.h.

115 { if (type) CFRelease(type); }

Functions

◆ as()

template<typename T>
template<typename X >
X QCFType< T >::as ( ) const
inline

Definition at line 128 of file qcore_mac_p.h.

Referenced by macQuoteString().

128 { return reinterpret_cast<X>(type); }

◆ constructFromGet()

template<typename T>
static QCFType QCFType< T >::constructFromGet ( const T &  t)
inlinestatic

Definition at line 129 of file qcore_mac_p.h.

130  {
131  CFRetain(t);
132  return QCFType<T>(t);
133  }

◆ operator &()

template<typename T>
T* QCFType< T >::operator& ( )
inline

Definition at line 127 of file qcore_mac_p.h.

127 { return &type; }

◆ operator T()

template<typename T>
QCFType< T >::operator T ( )
inline

Definition at line 116 of file qcore_mac_p.h.

116 { return type; }

◆ operator=()

template<typename T>
QCFType QCFType< T >::operator= ( const QCFType< T > &  helper)
inline

Definition at line 117 of file qcore_mac_p.h.

118  {
119  if (helper.type)
120  CFRetain(helper.type);
121  CFTypeRef type2 = type;
122  type = helper.type;
123  if (type2)
124  CFRelease(type2);
125  return *this;
126  }
const void * CFTypeRef

Properties

◆ type

template<typename T>
T QCFType< T >::type
protected

Definition at line 135 of file qcore_mac_p.h.

Referenced by QCFType< CGFontRef >::operator=().


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