Qt 4.8
|
Public Functions | |
void | clearMap () |
QDomNamedNodeMapPrivate * | clone (QDomNodePrivate *parent) |
bool | contains (const QString &name) const |
bool | containsNS (const QString &nsURI, const QString &localName) const |
bool | isAppendToParent () |
bool | isReadOnly () |
QDomNodePrivate * | item (int index) const |
uint | length () const |
QDomNodePrivate * | namedItem (const QString &name) const |
QDomNodePrivate * | namedItemNS (const QString &nsURI, const QString &localName) const |
QDomNamedNodeMapPrivate (QDomNodePrivate *) | |
QDomNodePrivate * | removeNamedItem (const QString &name) |
void | setAppendToParent (bool b) |
QDomNodePrivate * | setNamedItem (QDomNodePrivate *arg) |
QDomNodePrivate * | setNamedItemNS (QDomNodePrivate *arg) |
void | setReadOnly (bool r) |
~QDomNamedNodeMapPrivate () | |
Public Variables | |
bool | appendToParent |
QHash< QString, QDomNodePrivate * > | map |
QDomNodePrivate * | parent |
bool | readonly |
QAtomicInt | ref |
QDomNamedNodeMapPrivate::QDomNamedNodeMapPrivate | ( | QDomNodePrivate * | n | ) |
void QDomNamedNodeMapPrivate::clearMap | ( | ) |
Remove all children from the map.
Definition at line 3134 of file qdom.cpp.
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 3116 of file qdom.cpp.
Referenced by QDomElementPrivate::QDomElementPrivate().
bool QDomNamedNodeMapPrivate::contains | ( | const QString & | name | ) | const |
Definition at line 3233 of file qdom.cpp.
Referenced by QDomElementPrivate::hasAttribute().
Definition at line 3238 of file qdom.cpp.
Referenced by QDomElementPrivate::hasAttributeNS().
QDomNodePrivate * QDomNamedNodeMapPrivate::item | ( | int | index | ) | const |
Definition at line 3220 of file qdom.cpp.
uint QDomNamedNodeMapPrivate::length | ( | ) | const |
Definition at line 3228 of file qdom.cpp.
Referenced by QDomDocumentTypePrivate::save().
QDomNodePrivate * QDomNamedNodeMapPrivate::namedItem | ( | const QString & | name | ) | const |
Definition at line 3146 of file qdom.cpp.
Referenced by QDomElementPrivate::attribute(), QDomElementPrivate::attributeNode(), QDomElementPrivate::setAttribute(), and QDomElementPrivate::setAttributeNode().
QDomNodePrivate * QDomNamedNodeMapPrivate::namedItemNS | ( | const QString & | nsURI, |
const QString & | localName | ||
) | const |
Definition at line 3152 of file qdom.cpp.
Referenced by QDomElementPrivate::attributeNodeNS(), QDomElementPrivate::attributeNS(), QDomElementPrivate::setAttributeNodeNS(), and QDomElementPrivate::setAttributeNS().
QDomNodePrivate * QDomNamedNodeMapPrivate::removeNamedItem | ( | const QString & | name | ) |
Definition at line 3203 of file qdom.cpp.
Referenced by QDomElementPrivate::removeAttribute(), and QDomElementPrivate::removeAttributeNode().
|
inline |
If true, then the node will redirect insert/remove calls to its parent by calling QDomNodePrivate::appendChild or removeChild. In addition the map wont 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 267 of file qdom.cpp.
Referenced by QDomDocumentTypePrivate::init().
QDomNodePrivate * QDomNamedNodeMapPrivate::setNamedItem | ( | QDomNodePrivate * | arg | ) |
Definition at line 3167 of file qdom.cpp.
Referenced by clone(), QDomElementPrivate::setAttribute(), QDomElementPrivate::setAttributeNode(), QDomElementPrivate::setAttributeNodeNS(), and QDomElementPrivate::setAttributeNS().
QDomNodePrivate * QDomNamedNodeMapPrivate::setNamedItemNS | ( | QDomNodePrivate * | arg | ) |
Definition at line 3182 of file qdom.cpp.
bool QDomNamedNodeMapPrivate::appendToParent |
QHash<QString, QDomNodePrivate *> QDomNamedNodeMapPrivate::map |
Definition at line 277 of file qdom.cpp.
Referenced by QDomDocumentTypePrivate::insertAfter(), QDomDocumentTypePrivate::insertBefore(), QDomDocumentTypePrivate::QDomDocumentTypePrivate(), QDomDocumentTypePrivate::removeChild(), QDomDocumentTypePrivate::replaceChild(), QDomDocumentTypePrivate::save(), and QDomElementPrivate::save().
QDomNodePrivate* QDomNamedNodeMapPrivate::parent |
bool QDomNamedNodeMapPrivate::readonly |
QAtomicInt QDomNamedNodeMapPrivate::ref |
Definition at line 276 of file qdom.cpp.
Referenced by clone(), QDomNamedNodeMap::operator=(), QDomElementPrivate::QDomElementPrivate(), QDomDocumentTypePrivate::~QDomDocumentTypePrivate(), and QDomElementPrivate::~QDomElementPrivate().