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
QDomNodePrivate Class Reference

#include <qdom_p.h>

+ Inheritance diagram for QDomNodePrivate:
+ Collaboration diagram for QDomNodePrivate:

Public Member Functions

 QDomNodePrivate (QDomDocumentPrivate *, QDomNodePrivate *parent=nullptr)
 
 QDomNodePrivate (QDomNodePrivate *n, bool deep)
 
virtual ~QDomNodePrivate ()
 
QString nodeName () const
 
QString nodeValue () const
 
virtual void setNodeValue (const QString &v)
 
QDomDocumentPrivateownerDocument ()
 
void setOwnerDocument (QDomDocumentPrivate *doc)
 
virtual QDomNodePrivateinsertBefore (QDomNodePrivate *newChild, QDomNodePrivate *refChild)
 
virtual QDomNodePrivateinsertAfter (QDomNodePrivate *newChild, QDomNodePrivate *refChild)
 
virtual QDomNodePrivatereplaceChild (QDomNodePrivate *newChild, QDomNodePrivate *oldChild)
 
virtual QDomNodePrivateremoveChild (QDomNodePrivate *oldChild)
 
virtual QDomNodePrivateappendChild (QDomNodePrivate *newChild)
 
QDomNodePrivatenamedItem (const QString &name)
 
virtual QDomNodePrivatecloneNode (bool deep=true)
 
virtual void normalize ()
 
virtual void clear ()
 
QDomNodePrivateparent () const
 
void setParent (QDomNodePrivate *p)
 
void setNoParent ()
 
bool isAttr () const
 
bool isCDATASection () const
 
bool isDocumentFragment () const
 
bool isDocument () const
 
bool isDocumentType () const
 
bool isElement () const
 
bool isEntityReference () const
 
bool isText () const
 
bool isEntity () const
 
bool isNotation () const
 
bool isProcessingInstruction () const
 
bool isCharacterData () const
 
bool isComment () const
 
virtual QDomNode::NodeType nodeType () const
 
virtual void save (QTextStream &, int, int) const
 
void setLocation (int lineNumber, int columnNumber)
 

Public Attributes

QAtomicInt ref
 
QDomNodePrivateprev
 
QDomNodePrivatenext
 
QDomNodePrivateownerNode
 
QDomNodePrivatefirst
 
QDomNodePrivatelast
 
QString name
 
QString value
 
QString prefix
 
QString namespaceURI
 
bool createdWithDom1Interface: 1
 
bool hasParent: 1
 
int lineNumber
 
int columnNumber
 

Detailed Description

Definition at line 43 of file qdom_p.h.

Constructor & Destructor Documentation

◆ QDomNodePrivate() [1/2]

QDomNodePrivate::QDomNodePrivate ( QDomDocumentPrivate * doc,
QDomNodePrivate * parent = nullptr )

Definition at line 901 of file qdom.cpp.

References columnNumber, createdWithDom1Interface, last, lineNumber, next, prev, setOwnerDocument(), and setParent().

Referenced by cloneNode().

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

◆ QDomNodePrivate() [2/2]

QDomNodePrivate::QDomNodePrivate ( QDomNodePrivate * n,
bool deep )

Definition at line 916 of file qdom.cpp.

References appendChild(), columnNumber, createdWithDom1Interface, first, last, lineNumber, name, namespaceURI, next, prefix, prev, and setOwnerDocument().

+ Here is the call graph for this function:

◆ ~QDomNodePrivate()

QDomNodePrivate::~QDomNodePrivate ( )
virtual

Definition at line 939 of file qdom.cpp.

References first, last, next, and setNoParent().

+ Here is the call graph for this function:

Member Function Documentation

◆ appendChild()

QDomNodePrivate * QDomNodePrivate::appendChild ( QDomNodePrivate * newChild)
virtual

Reimplemented in QDomDocumentTypePrivate.

Definition at line 1302 of file qdom.cpp.

References insertAfter().

Referenced by QDomNodePrivate(), QDomBuilder::characters(), QDomBuilder::comment(), QDomBuilder::processingInstruction(), QDomNamedNodeMapPrivate::setNamedItem(), QDomNamedNodeMapPrivate::setNamedItemNS(), QDomAttrPrivate::setNodeValue(), QDomBuilder::skippedEntity(), and QDomBuilder::startElement().

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

◆ clear()

void QDomNodePrivate::clear ( )
virtual

Reimplemented in QDomDocumentPrivate.

Definition at line 956 of file qdom.cpp.

References first, last, and next.

Referenced by QDomDocumentPrivate::clear().

+ Here is the caller graph for this function:

◆ cloneNode()

QDomNodePrivate * QDomNodePrivate::cloneNode ( bool deep = true)
virtual

Reimplemented in QDomDocumentTypePrivate, QDomDocumentFragmentPrivate, QDomCharacterDataPrivate, QDomTextPrivate, QDomAttrPrivate, QDomElementPrivate, QDomCommentPrivate, QDomCDATASectionPrivate, QDomNotationPrivate, QDomEntityPrivate, QDomEntityReferencePrivate, QDomProcessingInstructionPrivate, and QDomDocumentPrivate.

Definition at line 1320 of file qdom.cpp.

References QDomNodePrivate().

+ Here is the call graph for this function:

◆ insertAfter()

QDomNodePrivate * QDomNodePrivate::insertAfter ( QDomNodePrivate * newChild,
QDomNodePrivate * refChild )
virtual

Reimplemented in QDomDocumentTypePrivate.

Definition at line 1078 of file qdom.cpp.

References first, last, next, QDomDocumentPrivate::nodeListTime, ownerDocument(), parent(), prev, removeChild(), and setParent().

Referenced by appendChild(), QDomDocumentTypePrivate::insertAfter(), and QDomTextPrivate::splitText().

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

◆ insertBefore()

QDomNodePrivate * QDomNodePrivate::insertBefore ( QDomNodePrivate * newChild,
QDomNodePrivate * refChild )
virtual

Reimplemented in QDomDocumentTypePrivate.

Definition at line 983 of file qdom.cpp.

References first, last, next, QDomDocumentPrivate::nodeListTime, ownerDocument(), prev, QBasicAtomicInteger< T >::ref(), ref, and setParent().

Referenced by QDomDocumentTypePrivate::insertBefore().

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

◆ isAttr()

bool QDomNodePrivate::isAttr ( ) const
inline

Definition at line 83 of file qdom_p.h.

References QDomNode::AttributeNode, and nodeType().

Referenced by QDomNode::isAttr(), and QDomNode::toAttr().

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

◆ isCDATASection()

bool QDomNodePrivate::isCDATASection ( ) const
inline

Definition at line 84 of file qdom_p.h.

References QDomNode::CDATASectionNode, and nodeType().

Referenced by QDomNode::isCDATASection(), and QDomNode::toCDATASection().

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

◆ isCharacterData()

bool QDomNodePrivate::isCharacterData ( ) const
inline

Definition at line 101 of file qdom_p.h.

References QDomNode::CharacterDataNode, QDomNode::CommentNode, nodeType(), and QDomNode::TextNode.

Referenced by QDomNode::isCharacterData(), and QDomNode::toCharacterData().

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

◆ isComment()

bool QDomNodePrivate::isComment ( ) const
inline

Definition at line 107 of file qdom_p.h.

References QDomNode::CommentNode, and nodeType().

Referenced by QDomNode::isComment(), and QDomNode::toComment().

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

◆ isDocument()

bool QDomNodePrivate::isDocument ( ) const
inline

Definition at line 86 of file qdom_p.h.

References QDomNode::DocumentNode, and nodeType().

Referenced by QDomNode::isDocument(), and QDomNode::toDocument().

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

◆ isDocumentFragment()

bool QDomNodePrivate::isDocumentFragment ( ) const
inline

Definition at line 85 of file qdom_p.h.

References QDomNode::DocumentFragmentNode, and nodeType().

Referenced by QDomNode::isDocumentFragment(), and QDomNode::toDocumentFragment().

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

◆ isDocumentType()

bool QDomNodePrivate::isDocumentType ( ) const
inline

Definition at line 87 of file qdom_p.h.

References QDomNode::DocumentTypeNode, and nodeType().

Referenced by QDomNode::isDocumentType(), and QDomNode::toDocumentType().

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

◆ isElement()

bool QDomNodePrivate::isElement ( ) const
inline

Definition at line 88 of file qdom_p.h.

References QDomNode::ElementNode, and nodeType().

Referenced by QDomNode::attributes(), QDomNode::hasAttributes(), QDomNode::isElement(), QDomAttr::ownerElement(), and QDomNode::toElement().

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

◆ isEntity()

bool QDomNodePrivate::isEntity ( ) const
inline

Definition at line 95 of file qdom_p.h.

References QDomNode::EntityNode, and nodeType().

Referenced by QDomNode::isEntity(), and QDomNode::toEntity().

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

◆ isEntityReference()

bool QDomNodePrivate::isEntityReference ( ) const
inline

Definition at line 89 of file qdom_p.h.

References QDomNode::EntityReferenceNode, and nodeType().

Referenced by QDomNode::isEntityReference(), and QDomNode::toEntityReference().

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

◆ isNotation()

bool QDomNodePrivate::isNotation ( ) const
inline

Definition at line 96 of file qdom_p.h.

References nodeType(), and QDomNode::NotationNode.

Referenced by QDomNode::isNotation(), and QDomNode::toNotation().

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

◆ isProcessingInstruction()

bool QDomNodePrivate::isProcessingInstruction ( ) const
inline

Definition at line 97 of file qdom_p.h.

References nodeType(), and QDomNode::ProcessingInstructionNode.

Referenced by QDomNode::isProcessingInstruction(), and QDomNode::toProcessingInstruction().

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

◆ isText()

bool QDomNodePrivate::isText ( ) const
inline

Definition at line 90 of file qdom_p.h.

References QDomNode::CDATASectionNode, nodeType(), and QDomNode::TextNode.

Referenced by QDomNode::isText(), QDomElementPrivate::save(), QDomCommentPrivate::save(), and QDomNode::toText().

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

◆ namedItem()

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

Definition at line 971 of file qdom.cpp.

References first, and next.

Referenced by QDomNode::namedItem().

+ Here is the caller graph for this function:

◆ nodeName()

QString QDomNodePrivate::nodeName ( ) const
inline

Definition at line 50 of file qdom_p.h.

References name.

Referenced by QDomAttr::name(), QDomDocumentTypePrivate::removeChild(), QDomElement::tagName(), and QDomProcessingInstruction::target().

+ Here is the caller graph for this function:

◆ nodeType()

◆ nodeValue()

QString QDomNodePrivate::nodeValue ( ) const
inline

Definition at line 51 of file qdom_p.h.

References value.

Referenced by QDomElementPrivate::attribute(), QDomElementPrivate::attributeNS(), QDomCharacterData::data(), QDomProcessingInstruction::data(), QDomElementPrivate::text(), and QDomAttr::value().

+ Here is the caller graph for this function:

◆ normalize()

void QDomNodePrivate::normalize ( )
virtual

Definition at line 1350 of file qdom.cpp.

References qNormalizeNode().

+ Here is the call graph for this function:

◆ ownerDocument()

QDomDocumentPrivate * QDomNodePrivate::ownerDocument ( )

Definition at line 1308 of file qdom.cpp.

References parent().

Referenced by QDomNodeListPrivate::createList(), insertAfter(), insertBefore(), QDomNodeListPrivate::maybeCreateList(), removeChild(), replaceChild(), QDomElementPrivate::setAttribute(), QDomElementPrivate::setAttributeNS(), setNoParent(), and QDomTextPrivate::splitText().

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

◆ parent()

QDomNodePrivate * QDomNodePrivate::parent ( ) const
inline

Definition at line 69 of file qdom_p.h.

References hasParent, and ownerNode.

Referenced by QDomBuilder::endElement(), insertAfter(), ownerDocument(), QDomAttr::ownerElement(), and QDomTextPrivate::splitText().

+ Here is the caller graph for this function:

◆ removeChild()

QDomNodePrivate * QDomNodePrivate::removeChild ( QDomNodePrivate * oldChild)
virtual

Reimplemented in QDomDocumentTypePrivate.

Definition at line 1266 of file qdom.cpp.

References last, next, QDomDocumentPrivate::nodeListTime, ownerDocument(), prev, and setNoParent().

Referenced by insertAfter(), qNormalizeNode(), QDomDocumentTypePrivate::removeChild(), QDomNamedNodeMapPrivate::removeNamedItem(), and QDomAttrPrivate::setNodeValue().

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

◆ replaceChild()

QDomNodePrivate * QDomNodePrivate::replaceChild ( QDomNodePrivate * newChild,
QDomNodePrivate * oldChild )
virtual

Reimplemented in QDomDocumentTypePrivate.

Definition at line 1174 of file qdom.cpp.

References first, last, QDomDocumentPrivate::nodeListTime, ownerDocument(), setNoParent(), and setParent().

Referenced by QDomDocumentTypePrivate::replaceChild().

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

◆ save()

void QDomNodePrivate::save ( QTextStream & s,
int depth,
int indent ) const
virtual

depth is used for indentation, it seems.

Reimplemented in QDomDocumentTypePrivate, QDomTextPrivate, QDomAttrPrivate, QDomElementPrivate, QDomCommentPrivate, QDomCDATASectionPrivate, QDomNotationPrivate, QDomEntityPrivate, QDomEntityReferencePrivate, and QDomProcessingInstructionPrivate.

Definition at line 1360 of file qdom.cpp.

References first, and save().

Referenced by save(), QDomElementPrivate::save(), and QDomDocumentPrivate::saveDocument().

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

◆ setLocation()

void QDomNodePrivate::setLocation ( int lineNumber,
int columnNumber )

Definition at line 1369 of file qdom.cpp.

References columnNumber, and lineNumber.

Referenced by QDomBuilder::comment(), QDomBuilder::processingInstruction(), QDomBuilder::skippedEntity(), and QDomBuilder::startElement().

+ Here is the caller graph for this function:

◆ setNodeValue()

virtual void QDomNodePrivate::setNodeValue ( const QString & v)
inlinevirtual

Reimplemented in QDomAttrPrivate.

Definition at line 52 of file qdom_p.h.

Referenced by QDomElementPrivate::setAttribute(), QDomElementPrivate::setAttributeNS(), QDomCharacterData::setData(), QDomProcessingInstruction::setData(), and QDomAttr::setValue().

+ Here is the caller graph for this function:

◆ setNoParent()

void QDomNodePrivate::setNoParent ( )
inline

Definition at line 76 of file qdom_p.h.

References hasParent, ownerDocument(), and ownerNode.

Referenced by ~QDomNodePrivate(), removeChild(), and replaceChild().

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

◆ setOwnerDocument()

void QDomNodePrivate::setOwnerDocument ( QDomDocumentPrivate * doc)
inline

Definition at line 895 of file qdom.cpp.

References hasParent, and ownerNode.

Referenced by QDomNodePrivate(), QDomNodePrivate(), and QDomDocumentPrivate::importNode().

+ Here is the caller graph for this function:

◆ setParent()

void QDomNodePrivate::setParent ( QDomNodePrivate * p)
inline

Definition at line 70 of file qdom_p.h.

References hasParent, and ownerNode.

Referenced by QDomDocumentPrivate::QDomDocumentPrivate(), QDomNodePrivate(), insertAfter(), insertBefore(), replaceChild(), and QDomElementPrivate::setAttributeNode().

+ Here is the caller graph for this function:

Member Data Documentation

◆ columnNumber

int QDomNodePrivate::columnNumber

Definition at line 131 of file qdom_p.h.

Referenced by QDomNodePrivate(), QDomNodePrivate(), QDomNode::columnNumber(), and setLocation().

◆ createdWithDom1Interface

bool QDomNodePrivate::createdWithDom1Interface

◆ first

◆ hasParent

bool QDomNodePrivate::hasParent

Definition at line 128 of file qdom_p.h.

Referenced by parent(), setNoParent(), setOwnerDocument(), and setParent().

◆ last

◆ lineNumber

int QDomNodePrivate::lineNumber

Definition at line 130 of file qdom_p.h.

Referenced by QDomNodePrivate(), QDomNodePrivate(), QDomNode::lineNumber(), and setLocation().

◆ name

◆ namespaceURI

◆ next

◆ ownerNode

QDomNodePrivate* QDomNodePrivate::ownerNode

Definition at line 119 of file qdom_p.h.

Referenced by parent(), QDomAttrPrivate::save(), setNoParent(), setOwnerDocument(), and setParent().

◆ prefix

◆ prev

◆ ref

◆ value

QString QDomNodePrivate::value

Definition at line 124 of file qdom_p.h.

Referenced by QDomNamedNodeMapPrivate::item(), nodeValue(), and QDomCommentPrivate::save().


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