⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qdomnamednodemap.3qt

📁 linux下GUI编程工具qt的在线连接帮助手册
💻 3QT
字号:
'\" t.TH QDomNamedNodeMap 3qt "11 October 2001" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQDomNamedNodeMap \- Collection of nodes that can be accessed by name.PP\fC#include <qdom.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "\fBQDomNamedNodeMap\fR ()".br.ti -1c.BI "\fBQDomNamedNodeMap\fR ( const QDomNamedNodeMap & n )".br.ti -1c.BI "QDomNamedNodeMap & \fBoperator=\fR ( const QDomNamedNodeMap & n )".br.ti -1c.BI "bool \fBoperator==\fR ( const QDomNamedNodeMap & n ) const".br.ti -1c.BI "bool \fBoperator!=\fR ( const QDomNamedNodeMap & n ) const".br.ti -1c.BI "\fB~QDomNamedNodeMap\fR ()".br.ti -1c.BI "QDomNode \fBnamedItem\fR ( const QString & name ) const".br.ti -1c.BI "QDomNode \fBsetNamedItem\fR ( const QDomNode & newNode )".br.ti -1c.BI "QDomNode \fBremoveNamedItem\fR ( const QString & name )".br.ti -1c.BI "QDomNode \fBitem\fR ( int index ) const".br.ti -1c.BI "QDomNode \fBnamedItemNS\fR ( const QString & nsURI, const QString & localName ) const".br.ti -1c.BI "QDomNode \fBsetNamedItemNS\fR ( const QDomNode & newNode )".br.ti -1c.BI "QDomNode \fBremoveNamedItemNS\fR ( const QString & nsURI, const QString & localName )".br.ti -1c.BI "uint \fBlength\fR () const".br.ti -1c.BI "uint \fBcount\fR () const".br.ti -1c.BI "bool \fBcontains\fR ( const QString & name ) const".br.in -1c.SH DESCRIPTIONThe QDomNamedNodeMap class contains a collection of nodes that can be accessed by name..PPNote that QDomNamedNodeMap does not inherit from QDomNodeList. QDomNamedNodeMaps do not provide any specific node ordering. Although nodes in a QDomNamedNodeMap may be accessed by an ordinal index, this is simply to allow a convenient enumeration of the contents of a QDomNamedNodeMap, and does not imply that the DOM specifies an ordering of the nodes..PPThe QDomNamedNodeMap is used in three places:.TPQDomDocumentType::entities() returns a map of all entities described in the DTD..TPQDomDocumentType::notations() returns a map of all notations described in the DTD..TPQDomNode::attributes() returns a map of all attributes of the element..PPItems in the map are identified by the name which QDomNode::name() returns. Nodes are retrieved using namedItem(), namedItemNS() or item(). New nodes are inserted with setNamedItem() or setNamedItem() and removed with removeNamedItem() or removeNamedItemNS(). Use contains() to see if an item with the given name is in the named node map. The number of items is returned by length()..PPTerminology: in this class we use "item" and "node" interchangeably..PPSee also XML..SH MEMBER FUNCTION DOCUMENTATION.SH "QDomNamedNodeMap::QDomNamedNodeMap ()"Constructs an empty named node map..SH "QDomNamedNodeMap::QDomNamedNodeMap ( const QDomNamedNodeMap & n )"Constructs a copy of \fIn\fR..SH "QDomNamedNodeMap::~QDomNamedNodeMap ()"Destroys the object and frees its resources..SH "bool QDomNamedNodeMap::contains ( const QString & name ) const"Returns TRUE if the map contains a node called \fIname\fR; otherwise returns FALSE..SH "uint QDomNamedNodeMap::count () const"Returns the number of nodes in the map..PPThis function is the same as length()..SH "QDomNode QDomNamedNodeMap::item ( int index ) const"Retrieves the node at position \fIindex\fR..PPThis can be used to iterate over the map. Note that the nodes in the map are ordered arbitrarily..PPSee also length()..SH "uint QDomNamedNodeMap::length () const"Returns the number of nodes in the map..PPSee also item()..SH "QDomNode QDomNamedNodeMap::namedItem ( const QString & name ) const"Returns the node called \fIname\fR..PPIf the named node map does not contain such a node, a null node is returned. A node's name is the name returned by QDomNode::nodeName()..PPSee also setNamedItem() and namedItemNS()..SH "QDomNode QDomNamedNodeMap::namedItemNS ( const QString & nsURI, const QString & localName ) const"Returns the node associated with the local name \fIlocalName\fR and the namespace URI \fInsURI\fR..PPIf the map does not contain such a node, a null node is returned..PPSee also setNamedItemNS() and namedItem()..SH "bool QDomNamedNodeMap::operator!= ( const QDomNamedNodeMap & n ) const"Returns TRUE if \fIn\fR and this named node map are not equal; otherwise returns FALSE..SH "QDomNamedNodeMap & QDomNamedNodeMap::operator= ( const QDomNamedNodeMap & n )"Assigns \fIn\fR to this named node map..SH "bool QDomNamedNodeMap::operator== ( const QDomNamedNodeMap & n ) const"Returns TRUE if \fIn\fR and this named node map are equal; otherwise returns FALSE..SH "QDomNode QDomNamedNodeMap::removeNamedItem ( const QString & name )"Removes the node called \fIname\fR from the map..PPThe function returns the removed node or a null node if the map did not contain a node called \fIname\fR..PPSee also setNamedItem(), namedItem() and removeNamedItemNS()..SH "QDomNode QDomNamedNodeMap::removeNamedItemNS ( const QString & nsURI, const QString & localName )"Removes the node with the local name \fIlocalName\fR and the namespace URI \fInsURI\fR from the map..PPThe function returns the removed node or a null node if the map did not contain a node with the local name \fIlocalName\fR and the namespace URI \fInsURI\fR..PPSee also setNamedItemNS(), namedItemNS() and removeNamedItem()..SH "QDomNode QDomNamedNodeMap::setNamedItem ( const QDomNode & newNode )"Inserts the node \fInewNode\fR into the named node map. The name used by the map is the node name of \fInewNode\fR as returned by QDomNode::nodeName()..PPIf the new node replaces an existing node, i.e. the map contains a node with the same name, the replaced node is returned..PPSee also namedItem(), removeNamedItem() and setNamedItemNS()..SH "QDomNode QDomNamedNodeMap::setNamedItemNS ( const QDomNode & newNode )"Inserts the node \fInewNode\fR in the map. If a node with the same namespace URI and the same local name already exists in the map, it is replaced by \fInewNode\fR. If the new node replaces an existing node, the replaced node is returned..PPSee also namedItemNS(), removeNamedItemNS() and setNamedItem()..SH "SEE ALSO".BR http://doc.trolltech.com/qdomnamednodemap.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qdomnamednodemap.3qt) and the Qtversion (3.0.0).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -