Qt 6.x
The Qt SDK
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 160 of file qdom_p.h.

Constructor & Destructor Documentation

◆ QDomNamedNodeMapPrivate()

QDomNamedNodeMapPrivate::QDomNamedNodeMapPrivate ( QDomNodePrivate n)

Definition at line 2507 of file qdom.cpp.

References appendToParent, parent, and readonly.

◆ ~QDomNamedNodeMapPrivate()

QDomNamedNodeMapPrivate::~QDomNamedNodeMapPrivate ( )

Definition at line 2514 of file qdom.cpp.

References clearMap().

+ Here is the call graph for this function:

Member Function Documentation

◆ clearMap()

void QDomNamedNodeMapPrivate::clearMap ( )

Remove all children from the map.

Definition at line 2537 of file qdom.cpp.

References appendToParent, QMultiHash< Key, T >::clear(), QMultiHash< Key, T >::constBegin(), QMultiHash< Key, T >::constEnd(), it, and map.

Referenced by ~QDomNamedNodeMapPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clone()

QDomNamedNodeMapPrivate * QDomNamedNodeMapPrivate::clone ( QDomNodePrivate parent)

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

Definition at line 2519 of file qdom.cpp.

References appendToParent, QMultiHash< Key, T >::constBegin(), QMultiHash< Key, T >::constEnd(), it, map, readonly, and QDomNodePrivate::setParent().

Referenced by QDomElementPrivate::QDomElementPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ contains()

bool QDomNamedNodeMapPrivate::contains ( const QString name) const

Definition at line 2635 of file qdom.cpp.

References QMultiHash< Key, T >::contains(), and map.

Referenced by QDomElementPrivate::hasAttribute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ containsNS()

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

Definition at line 2640 of file qdom.cpp.

References namedItemNS().

Referenced by QDomElementPrivate::hasAttributeNS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAppendToParent()

bool QDomNamedNodeMapPrivate::isAppendToParent ( )
inline

Definition at line 182 of file qdom_p.h.

References appendToParent.

◆ isReadOnly()

bool QDomNamedNodeMapPrivate::isReadOnly ( )
inline

Definition at line 180 of file qdom_p.h.

References readonly.

◆ item()

QDomNodePrivate * QDomNamedNodeMapPrivate::item ( int  index) const

Definition at line 2623 of file qdom.cpp.

References QMultiHash< Key, T >::begin(), length(), map, and QDomNodePrivate::value.

+ Here is the call graph for this function:

◆ length()

int QDomNamedNodeMapPrivate::length ( ) const

Definition at line 2630 of file qdom.cpp.

References map, and QMultiHash< Key, T >::size().

Referenced by QDomElementPrivate::hasAttributes(), item(), and QDomDocumentTypePrivate::save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ namedItem()

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

Definition at line 2549 of file qdom.cpp.

References QMultiHash< Key, T >::end(), QMultiHash< Key, T >::find(), it, map, and nullptr.

Referenced by QDomElementPrivate::attribute(), QDomElementPrivate::attributeNode(), removeNamedItem(), QDomElementPrivate::setAttribute(), and QDomElementPrivate::setAttributeNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ namedItemNS()

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

Definition at line 2555 of file qdom.cpp.

References QMultiHash< Key, T >::constBegin(), QMultiHash< Key, T >::constEnd(), it, and map.

Referenced by QDomElementPrivate::attributeNodeNS(), QDomElementPrivate::attributeNS(), containsNS(), QDomElementPrivate::setAttributeNodeNS(), QDomElementPrivate::setAttributeNS(), and setNamedItemNS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeNamedItem()

QDomNodePrivate * QDomNamedNodeMapPrivate::removeNamedItem ( const QString name)

Definition at line 2606 of file qdom.cpp.

References appendToParent, map, namedItem(), parent, readonly, QMultiHash< Key, T >::remove(), and QDomNodePrivate::removeChild().

Referenced by QDomElementPrivate::removeAttribute(), and QDomElementPrivate::removeAttributeNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 192 of file qdom_p.h.

References appendToParent.

Referenced by QDomDocumentTypePrivate::init().

+ Here is the caller graph for this function:

◆ setNamedItem()

QDomNodePrivate * QDomNamedNodeMapPrivate::setNamedItem ( QDomNodePrivate arg)

Definition at line 2570 of file qdom.cpp.

References QDomNodePrivate::appendChild(), appendToParent, arg, QMultiHash< Key, T >::insert(), map, parent, readonly, and QMultiHash< Key, T >::value().

Referenced by QDomElementPrivate::setAttribute(), QDomElementPrivate::setAttributeNode(), QDomElementPrivate::setAttributeNodeNS(), QDomElementPrivate::setAttributeNS(), and setNamedItemNS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setNamedItemNS()

QDomNodePrivate * QDomNamedNodeMapPrivate::setNamedItemNS ( QDomNodePrivate arg)

Definition at line 2585 of file qdom.cpp.

References QDomNodePrivate::appendChild(), appendToParent, arg, QMultiHash< Key, T >::insert(), map, namedItemNS(), parent, readonly, and setNamedItem().

+ Here is the call graph for this function:

◆ setReadOnly()

void QDomNamedNodeMapPrivate::setReadOnly ( bool  r)
inline

Definition at line 181 of file qdom_p.h.

References readonly.

Member Data Documentation

◆ appendToParent

bool QDomNamedNodeMapPrivate::appendToParent

◆ map

◆ parent

QDomNodePrivate* QDomNamedNodeMapPrivate::parent

Definition at line 203 of file qdom_p.h.

Referenced by QDomNamedNodeMapPrivate(), removeNamedItem(), setNamedItem(), and setNamedItemNS().

◆ readonly

bool QDomNamedNodeMapPrivate::readonly

◆ ref


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