Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 161 of file qdom_p.h.

Constructor & Destructor Documentation

◆ QDomNamedNodeMapPrivate()

QDomNamedNodeMapPrivate::QDomNamedNodeMapPrivate ( QDomNodePrivate * pimpl)

Definition at line 2505 of file qdom.cpp.

Referenced by clone().

+ Here is the caller graph for this function:

◆ ~QDomNamedNodeMapPrivate()

QDomNamedNodeMapPrivate::~QDomNamedNodeMapPrivate ( )

Definition at line 2513 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 2536 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 2518 of file qdom.cpp.

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

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 2634 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 2639 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 183 of file qdom_p.h.

References appendToParent.

◆ isReadOnly()

bool QDomNamedNodeMapPrivate::isReadOnly ( )
inline

Definition at line 181 of file qdom_p.h.

References readonly.

◆ item()

QDomNodePrivate * QDomNamedNodeMapPrivate::item ( int index) const

Definition at line 2622 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 2629 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 2548 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 2554 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 2605 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 193 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 2569 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 2584 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 182 of file qdom_p.h.

References readonly.

Member Data Documentation

◆ appendToParent

bool QDomNamedNodeMapPrivate::appendToParent

◆ map

◆ parent

QDomNodePrivate* QDomNamedNodeMapPrivate::parent

Definition at line 204 of file qdom_p.h.

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

◆ readonly

bool QDomNamedNodeMapPrivate::readonly

Definition at line 205 of file qdom_p.h.

Referenced by clone(), isReadOnly(), removeNamedItem(), setNamedItem(), setNamedItemNS(), and setReadOnly().

◆ ref


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