Qt 4.8
Public Functions | Properties | List of all members
QSvgRefCounter< T > Class Template Reference

#include <qsvgstyle_p.h>

Public Functions

 operator T* () const
 
T * operator-> () const
 
QSvgRefCounteroperator= (T *_t)
 
QSvgRefCounteroperator= (const QSvgRefCounter &other)
 
 QSvgRefCounter ()
 
 QSvgRefCounter (T *_t)
 
 QSvgRefCounter (const QSvgRefCounter &other)
 
 ~QSvgRefCounter ()
 

Properties

T * t
 

Detailed Description

template<class T>
class QSvgRefCounter< T >

Definition at line 74 of file qsvgstyle_p.h.

Constructors and Destructors

◆ QSvgRefCounter() [1/3]

template<class T>
QSvgRefCounter< T >::QSvgRefCounter ( )
inline

Definition at line 77 of file qsvgstyle_p.h.

77 { t = 0; }

◆ QSvgRefCounter() [2/3]

template<class T>
QSvgRefCounter< T >::QSvgRefCounter ( T *  _t)
inline

Definition at line 78 of file qsvgstyle_p.h.

79  {
80  t = _t;
81  if (t)
82  t->ref();
83  }

◆ QSvgRefCounter() [3/3]

template<class T>
QSvgRefCounter< T >::QSvgRefCounter ( const QSvgRefCounter< T > &  other)
inline

Definition at line 84 of file qsvgstyle_p.h.

85  {
86  t = other.t;
87  if (t)
88  t->ref();
89  }

◆ ~QSvgRefCounter()

template<class T>
QSvgRefCounter< T >::~QSvgRefCounter ( )
inline

Definition at line 108 of file qsvgstyle_p.h.

109  {
110  if (t)
111  t->deref();
112  }

Functions

◆ operator T*()

template<class T>
QSvgRefCounter< T >::operator T* ( ) const
inline

Definition at line 115 of file qsvgstyle_p.h.

115 { return t; }

◆ operator->()

template<class T>
T* QSvgRefCounter< T >::operator-> ( ) const
inline

Definition at line 114 of file qsvgstyle_p.h.

114 { return t; }

◆ operator=() [1/2]

template<class T>
QSvgRefCounter& QSvgRefCounter< T >::operator= ( T *  _t)
inline

Definition at line 90 of file qsvgstyle_p.h.

91  {
92  if(_t)
93  _t->ref();
94  if (t)
95  t->deref();
96  t = _t;
97  return *this;
98  }

◆ operator=() [2/2]

template<class T>
QSvgRefCounter& QSvgRefCounter< T >::operator= ( const QSvgRefCounter< T > &  other)
inline

Definition at line 99 of file qsvgstyle_p.h.

100  {
101  if(other.t)
102  other.t->ref();
103  if (t)
104  t->deref();
105  t = other.t;
106  return *this;
107  }

Properties

◆ t

template<class T>
T* QSvgRefCounter< T >::t
private

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