Library: XML
Package: XML
Header: Poco/XML/NamePool.h
Member Functions: duplicate, hash, insert, release
NamePool(
unsigned long size = 251
);
Creates a name pool with room for up to size strings.
~NamePool();
void duplicate();
Increments the reference count.
const Name & insert(
const XMLString & qname,
const XMLString & namespaceURI,
const XMLString & localName
);
Returns a const reference to an Name for the given names. Creates the Name if it does not already exist. Throws a PoolOverflowException if the name pool is full.
const Name & insert(
const Name & name
);
Returns a const reference to an Name for the given name. Creates the Name if it does not already exist. Throws a PoolOverflowException if the name pool is full.
void release();
Decrements the reference count and deletes the object if the reference count reaches zero.
unsigned long hash(
const XMLString & qname,
const XMLString & namespaceURI,
const XMLString & localName
);