Qt 4.8
Public Functions | Private Functions | Properties | Friends | List of all members
QDeclarativeGuardedContextData Class Reference

#include <qdeclarativecontext_p.h>

Public Functions

QDeclarativeContextDatacontextData ()
 
 operator QDeclarativeContextData * () const
 
QDeclarativeContextDataoperator-> () const
 
QDeclarativeGuardedContextDataoperator= (QDeclarativeContextData *d)
 
 QDeclarativeGuardedContextData ()
 
 QDeclarativeGuardedContextData (QDeclarativeContextData *)
 
void setContextData (QDeclarativeContextData *)
 
 ~QDeclarativeGuardedContextData ()
 

Private Functions

void clear ()
 
QDeclarativeGuardedContextDataoperator= (const QDeclarativeGuardedContextData &)
 
 QDeclarativeGuardedContextData (const QDeclarativeGuardedContextData &)
 

Properties

QDeclarativeContextDatam_contextData
 
QDeclarativeGuardedContextDatam_next
 
QDeclarativeGuardedContextData ** m_prev
 

Friends

class QDeclarativeContextData
 

Detailed Description

Definition at line 211 of file qdeclarativecontext_p.h.

Constructors and Destructors

◆ QDeclarativeGuardedContextData() [1/3]

QDeclarativeGuardedContextData::QDeclarativeGuardedContextData ( )
inline

Definition at line 238 of file qdeclarativecontext_p.h.

239 : m_contextData(0), m_next(0), m_prev(0)
240 {
241 }
QDeclarativeContextData * m_contextData
QDeclarativeGuardedContextData * m_next
QDeclarativeGuardedContextData ** m_prev

◆ QDeclarativeGuardedContextData() [2/3]

QDeclarativeGuardedContextData::QDeclarativeGuardedContextData ( QDeclarativeContextData data)
inline

Definition at line 243 of file qdeclarativecontext_p.h.

244 : m_contextData(0), m_next(0), m_prev(0)
245 {
246  setContextData(data);
247 }
void setContextData(QDeclarativeContextData *)
QDeclarativeContextData * m_contextData
QDeclarativeGuardedContextData * m_next
QDeclarativeGuardedContextData ** m_prev

◆ ~QDeclarativeGuardedContextData()

QDeclarativeGuardedContextData::~QDeclarativeGuardedContextData ( )
inline

Definition at line 249 of file qdeclarativecontext_p.h.

250 {
251  clear();
252 }

◆ QDeclarativeGuardedContextData() [3/3]

QDeclarativeGuardedContextData::QDeclarativeGuardedContextData ( const QDeclarativeGuardedContextData )
private

Functions

◆ clear()

void QDeclarativeGuardedContextData::clear ( )
inlineprivate

Definition at line 272 of file qdeclarativecontext_p.h.

Referenced by setContextData(), and ~QDeclarativeGuardedContextData().

273 {
274  if (m_prev) {
275  *m_prev = m_next;
276  if (m_next) m_next->m_prev = m_prev;
277  m_contextData = 0;
278  m_next = 0;
279  m_prev = 0;
280  }
281 }
QDeclarativeContextData * m_contextData
QDeclarativeGuardedContextData * m_next
QDeclarativeGuardedContextData ** m_prev

◆ contextData()

QDeclarativeContextData * QDeclarativeGuardedContextData::contextData ( )
inline

Definition at line 267 of file qdeclarativecontext_p.h.

Referenced by ContextData::getContext(), and setContextData().

268 {
269  return m_contextData;
270 }
QDeclarativeContextData * m_contextData

◆ operator QDeclarativeContextData *()

QDeclarativeGuardedContextData::operator QDeclarativeContextData * ( ) const
inline

Definition at line 222 of file qdeclarativecontext_p.h.

222 { return m_contextData; }
QDeclarativeContextData * m_contextData

◆ operator->()

QDeclarativeContextData* QDeclarativeGuardedContextData::operator-> ( ) const
inline

Definition at line 223 of file qdeclarativecontext_p.h.

223 { return m_contextData; }
QDeclarativeContextData * m_contextData

◆ operator=() [1/2]

QDeclarativeGuardedContextData & QDeclarativeGuardedContextData::operator= ( QDeclarativeContextData d)
inline

Definition at line 284 of file qdeclarativecontext_p.h.

285 {
286  setContextData(d);
287  return *this;
288 }
void setContextData(QDeclarativeContextData *)

◆ operator=() [2/2]

QDeclarativeGuardedContextData& QDeclarativeGuardedContextData::operator= ( const QDeclarativeGuardedContextData )
private

◆ setContextData()

void QDeclarativeGuardedContextData::setContextData ( QDeclarativeContextData contextData)
inline

Definition at line 254 of file qdeclarativecontext_p.h.

Referenced by operator=(), and QDeclarativeGuardedContextData().

255 {
256  clear();
257 
258  if (contextData) {
260  m_next = contextData->contextGuards;
261  if (m_next) m_next->m_prev = &m_next;
262  m_prev = &contextData->contextGuards;
263  contextData->contextGuards = this;
264  }
265 }
QDeclarativeContextData * m_contextData
QDeclarativeGuardedContextData * m_next
QDeclarativeGuardedContextData ** m_prev
QDeclarativeContextData * contextData()
QDeclarativeGuardedContextData * contextGuards

Friends and Related Functions

◆ QDeclarativeContextData

Definition at line 229 of file qdeclarativecontext_p.h.

Properties

◆ m_contextData

QDeclarativeContextData* QDeclarativeGuardedContextData::m_contextData
private

Definition at line 233 of file qdeclarativecontext_p.h.

Referenced by clear(), contextData(), and setContextData().

◆ m_next

QDeclarativeGuardedContextData* QDeclarativeGuardedContextData::m_next
private

Definition at line 234 of file qdeclarativecontext_p.h.

Referenced by clear(), and setContextData().

◆ m_prev

QDeclarativeGuardedContextData** QDeclarativeGuardedContextData::m_prev
private

Definition at line 235 of file qdeclarativecontext_p.h.

Referenced by clear(), and setContextData().


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