Qt 4.8
Public Types | Public Functions | Public Variables | List of all members
QDeclarativeDomObjectPrivate Class Reference

#include <qdeclarativedom_p_p.h>

Inheritance diagram for QDeclarativeDomObjectPrivate:
QSharedData

Public Types

typedef QList< QPair< QDeclarativeParser::Property *, QByteArray > > Properties
 

Public Functions

Properties properties () const
 
Properties properties (QDeclarativeParser::Property *) const
 
 QDeclarativeDomObjectPrivate ()
 
 QDeclarativeDomObjectPrivate (const QDeclarativeDomObjectPrivate &o)
 
 ~QDeclarativeDomObjectPrivate ()
 
- Public Functions inherited from QSharedData
 QSharedData ()
 Constructs a QSharedData object with a reference count of 0. More...
 
 QSharedData (const QSharedData &)
 Constructs a QSharedData object with reference count 0. More...
 

Public Variables

QDeclarativeParser::Objectobject
 
- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 76 of file qdeclarativedom_p_p.h.

Typedefs

◆ Properties

Definition at line 84 of file qdeclarativedom_p_p.h.

Constructors and Destructors

◆ QDeclarativeDomObjectPrivate() [1/2]

QDeclarativeDomObjectPrivate::QDeclarativeDomObjectPrivate ( )

Definition at line 589 of file qdeclarativedom.cpp.

590 : object(0)
591 {
592 }
QDeclarativeParser::Object * object

◆ QDeclarativeDomObjectPrivate() [2/2]

QDeclarativeDomObjectPrivate::QDeclarativeDomObjectPrivate ( const QDeclarativeDomObjectPrivate o)
inline

Definition at line 80 of file qdeclarativedom_p_p.h.

81  : QSharedData(o) { qFatal("Not impl"); }
QSharedData()
Constructs a QSharedData object with a reference count of 0.
Definition: qshareddata.h:61
Q_CORE_EXPORT void qFatal(const char *,...)

◆ ~QDeclarativeDomObjectPrivate()

QDeclarativeDomObjectPrivate::~QDeclarativeDomObjectPrivate ( )

Definition at line 594 of file qdeclarativedom.cpp.

595 {
596  if (object) object->release();
597 }

Functions

◆ properties() [1/2]

QDeclarativeDomObjectPrivate::Properties QDeclarativeDomObjectPrivate::properties ( ) const

Definition at line 600 of file qdeclarativedom.cpp.

Referenced by properties(), and QDeclarativeDomObject::properties().

601 {
602  Properties rv;
603 
605  object->properties.begin();
606  iter != object->properties.end();
607  ++iter) {
608 
609  rv << properties(*iter);
610 
611  }
612  return rv;
613 }
The QHash::const_iterator class provides an STL-style const iterator for QHash and QMultiHash...
Definition: qhash.h:395
QDeclarativeParser::Object * object
QList< QPair< QDeclarativeParser::Property *, QByteArray > > Properties
QHash< QByteArray, Property * > properties

◆ properties() [2/2]

QDeclarativeDomObjectPrivate::Properties QDeclarativeDomObjectPrivate::properties ( QDeclarativeParser::Property property) const

Definition at line 616 of file qdeclarativedom.cpp.

617 {
618  Properties rv;
619 
620  if (property->value) {
621 
623  property->value->properties.begin();
624  iter != property->value->properties.end();
625  ++iter) {
626 
627  rv << properties(*iter);
628 
629  }
630 
631  QByteArray name(property->name + '.');
632  for (Properties::Iterator iter = rv.begin(); iter != rv.end(); ++iter)
633  iter->second.prepend(name);
634 
635  } else {
636  rv << qMakePair(property, property->name);
637  }
638 
639  return rv;
640 }
The QHash::const_iterator class provides an STL-style const iterator for QHash and QMultiHash...
Definition: qhash.h:395
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
iterator Iterator
Qt-style synonym for QList::iterator.
Definition: qlist.h:278
const char * name
QList< QPair< QDeclarativeParser::Property *, QByteArray > > Properties
Q_OUTOFLINE_TEMPLATE QPair< T1, T2 > qMakePair(const T1 &x, const T2 &y)
Definition: qpair.h:102
QHash< QByteArray, Property * > properties

Properties

◆ object

QDeclarativeParser::Object* QDeclarativeDomObjectPrivate::object

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