Qt 4.8
Public Types | Public Functions | Public Variables | List of all members
QPatternist::NodeIndexStorage Class Reference

#include <qabstractxmlnodemodel.h>

Public Types

typedef qint64 Data
 

Public Functions

bool operator!= (const NodeIndexStorage &other) const
 
void * pointer () const
 
void reset ()
 

Public Variables

union {
   Data   data
 
   void *   ptr
 
}; 
 
Data additionalData
 
const QAbstractXmlNodeModelmodel
 

Detailed Description

Definition at line 81 of file qabstractxmlnodemodel.h.

Typedefs

◆ Data

Definition at line 84 of file qabstractxmlnodemodel.h.

Functions

◆ operator!=()

bool QPatternist::NodeIndexStorage::operator!= ( const NodeIndexStorage other) const
inline

Definition at line 1277 of file qabstractxmlnodemodel.cpp.

Referenced by QXmlNodeModelIndex::QXmlNodeModelIndex().

1278 {
1279  return data != other.data
1280  || additionalData != other.additionalData
1281  || model != other.model;
1282 }
const QAbstractXmlNodeModel * model

◆ pointer()

void* QPatternist::NodeIndexStorage::pointer ( ) const
inline

Definition at line 95 of file qabstractxmlnodemodel.h.

96  {
97  /* Constructing to qptrdiff means we avoid the warning "cast to pointer
98  * from integer of different size."
99  */
100  return (void *)qptrdiff(data);
101  }
QIntegerForSizeof< void * >::Signed qptrdiff
Definition: qglobal.h:987

◆ reset()

void QPatternist::NodeIndexStorage::reset ( )
inline

Definition at line 109 of file qabstractxmlnodemodel.h.

Referenced by QXmlItem::QXmlItem(), and QXmlNodeModelIndex::QXmlNodeModelIndex().

110  {
111  data = 0;
112  additionalData = 0;
113  model = 0;
114  }
const QAbstractXmlNodeModel * model

Properties

◆ @369

union { ... }
Note
Changing merely the order of these two members, ptr and data, is a binary incompatible change on Mac Power PC.

◆ additionalData

Data QPatternist::NodeIndexStorage::additionalData

◆ data

Data QPatternist::NodeIndexStorage::data

◆ model

const QAbstractXmlNodeModel* QPatternist::NodeIndexStorage::model

◆ ptr

void* QPatternist::NodeIndexStorage::ptr

Definition at line 92 of file qabstractxmlnodemodel.h.


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