|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# QXmlNamePool Class Reference
[QtXmlPatterns module]

The QXmlNamePool class is a pool of XML names. More...

     #include <QXmlNamePool>

Note: All the functions in this class are reentrant.

This class was introduced in Qt 4.4.

- List of all members, including inherited members

### Public Functions

- QXmlNamePool ()
- QXmlNamePool ( const QXmlNamePool & other )
- ~QXmlNamePool ()
- QXmlNamePool & operator= ( const QXmlNamePool & other )

## Detailed Description

The QXmlNamePool class is a pool of XML names.

Together with QXmlName, QXmlNamePool is a strong optimization for dealing with XML names, which typically are encounted in vast quantities. QXmlName is essentially a place holder for a name that can quickly be compared and passed around, while QXmlNamePool contains the actual strings associated with a name. By constructing a QXmlName and passing in the strings and the pool to use, one get a swift QXmlName in return.

A QXmlName instance is tied to the name pool it was created with. For instance, if one name is created with one name pool, and then compare to a name from another name pool, the result is undefined. A QXmlName is only valid for the name pool it was created with.

QXmlName represent what often are called an "expanded QName", or simply QName.

See also QXmlName and QXmlQuery::namePool().

## Member Function Documentation

### QXmlNamePool::QXmlNamePool ()

Constructs an invalid query that cannot be used. setQuery() must be called.

### QXmlNamePool::QXmlNamePool ( const QXmlNamePool & other )

Constructs a QXmlNamePool instance that is a copy of other.

### QXmlNamePool::~QXmlNamePool ()

Destructs this QXmlNamePool instance.

### QXmlNamePool & QXmlNamePool::operator= ( const QXmlNamePool & other )

Assigns other to this QXmlNamePool instance.