Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QDomNamedNodeMapPrivate Class Reference

#include <qdom_p.h>

Collaboration diagram for QDomNamedNodeMapPrivate:

Public Member Functions

 QDomNamedNodeMapPrivate (QDomNodePrivate *)
 ~QDomNamedNodeMapPrivate ()
QDomNodePrivatenamedItem (const QString &name) const
QDomNodePrivatenamedItemNS (const QString &nsURI, const QString &localName) const
QDomNodePrivatesetNamedItem (QDomNodePrivate *arg)
QDomNodePrivatesetNamedItemNS (QDomNodePrivate *arg)
QDomNodePrivateremoveNamedItem (const QString &name)
QDomNodePrivateitem (int index) const
int length () const
bool contains (const QString &name) const
bool containsNS (const QString &nsURI, const QString &localName) const
void clearMap ()
bool isReadOnly ()
void setReadOnly (bool r)
bool isAppendToParent ()
void setAppendToParent (bool b)
QDomNamedNodeMapPrivateclone (QDomNodePrivate *parent)

Public Attributes

QAtomicInt ref
QMultiHash< QString, QDomNodePrivate * > map
QDomNodePrivateparent
bool readonly
bool appendToParent

Detailed Description

Definition at line 171 of file qdom_p.h.

Constructor & Destructor Documentation

◆ QDomNamedNodeMapPrivate()

QDomNamedNodeMapPrivate::QDomNamedNodeMapPrivate ( QDomNodePrivate * )

◆ ~QDomNamedNodeMapPrivate()

QDomNamedNodeMapPrivate::~QDomNamedNodeMapPrivate ( )

Member Function Documentation

◆ clearMap()

void QDomNamedNodeMapPrivate::clearMap ( )

Remove all children from the map.

◆ clone()

QDomNamedNodeMapPrivate * QDomNamedNodeMapPrivate::clone ( QDomNodePrivate * parent)

Creates a copy of the map. It is a deep copy that means that all children are cloned.

◆ contains()

bool QDomNamedNodeMapPrivate::contains ( const QString & name) const

◆ containsNS()

bool QDomNamedNodeMapPrivate::containsNS ( const QString & nsURI,
const QString & localName ) const

◆ isAppendToParent()

bool QDomNamedNodeMapPrivate::isAppendToParent ( )
inline

Definition at line 193 of file qdom_p.h.

References appendToParent.

◆ isReadOnly()

bool QDomNamedNodeMapPrivate::isReadOnly ( )
inline

Definition at line 191 of file qdom_p.h.

References readonly.

◆ item()

QDomNodePrivate * QDomNamedNodeMapPrivate::item ( int index) const

◆ length()

int QDomNamedNodeMapPrivate::length ( ) const

Referenced by QDomElementPrivate::hasAttributes().

Here is the caller graph for this function:

◆ namedItem()

QDomNodePrivate * QDomNamedNodeMapPrivate::namedItem ( const QString & name) const

◆ namedItemNS()

QDomNodePrivate * QDomNamedNodeMapPrivate::namedItemNS ( const QString & nsURI,
const QString & localName ) const

◆ removeNamedItem()

QDomNodePrivate * QDomNamedNodeMapPrivate::removeNamedItem ( const QString & name)

◆ setAppendToParent()

void QDomNamedNodeMapPrivate::setAppendToParent ( bool b)
inline

If true, then the node will redirect insert/remove calls to its parent by calling QDomNodePrivate::appendChild or removeChild. In addition the map won't increase or decrease the reference count of the nodes it contains.

By default this value is false and the map will handle reference counting by itself.

Definition at line 203 of file qdom_p.h.

References appendToParent.

◆ setNamedItem()

QDomNodePrivate * QDomNamedNodeMapPrivate::setNamedItem ( QDomNodePrivate * arg)

◆ setNamedItemNS()

QDomNodePrivate * QDomNamedNodeMapPrivate::setNamedItemNS ( QDomNodePrivate * arg)

◆ setReadOnly()

void QDomNamedNodeMapPrivate::setReadOnly ( bool r)
inline

Definition at line 192 of file qdom_p.h.

References readonly.

Member Data Documentation

◆ appendToParent

bool QDomNamedNodeMapPrivate::appendToParent

Definition at line 216 of file qdom_p.h.

Referenced by isAppendToParent(), and setAppendToParent().

◆ map

QMultiHash<QString, QDomNodePrivate *> QDomNamedNodeMapPrivate::map

Definition at line 213 of file qdom_p.h.

◆ parent

QDomNodePrivate* QDomNamedNodeMapPrivate::parent

Definition at line 214 of file qdom_p.h.

◆ readonly

bool QDomNamedNodeMapPrivate::readonly

Definition at line 215 of file qdom_p.h.

Referenced by isReadOnly(), and setReadOnly().

◆ ref

QAtomicInt QDomNamedNodeMapPrivate::ref

Definition at line 212 of file qdom_p.h.


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