
Public Member Functions | |
Constructors | |
| XSNamedMap (const XMLSize_t maxElems, const XMLSize_t modulus, XMLStringPool *uriStringPool, const bool adoptElems, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
Destructor | |
| ~XSNamedMap () | |
XSNamedMap methods | |
| XMLSize_t | getLength () const |
The number of XSObjects in the XSObjectList. | |
| TVal * | item (XMLSize_t index) |
Returns the indexth item in the collection. | |
| const TVal * | item (XMLSize_t index) const |
| TVal * | itemByName (const XMLCh *compNamespace, const XMLCh *localName) |
| Retrieves a component specified by local name and namespace URI. | |
| void | addElement (TVal *const toAdd, const XMLCh *key1, const XMLCh *key2) |
| methods needed by implementation | |
| XSNamedMap< TVal >::XSNamedMap | ( | const XMLSize_t | maxElems, | |
| const XMLSize_t | modulus, | |||
| XMLStringPool * | uriStringPool, | |||
| const bool | adoptElems, | |||
| MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager | |||
| ) |
| XSNamedMap< TVal >::~XSNamedMap | ( | ) |
| XMLSize_t XSNamedMap< TVal >::getLength | ( | ) | const |
The number of XSObjects in the XSObjectList.
The range of valid child object indices is 0 to mapLength-1 inclusive.
| TVal* XSNamedMap< TVal >::item | ( | XMLSize_t | index | ) |
Returns the indexth item in the collection.
The index starts at 0. If index is greater than or equal to the number of objects in the list, this returns null.
| index | index into the collection. |
XSObject at the indexth position in the XSObjectList, or null if that is not a valid index. | const TVal* XSNamedMap< TVal >::item | ( | XMLSize_t | index | ) | const |
| TVal* XSNamedMap< TVal >::itemByName | ( | const XMLCh * | compNamespace, | |
| const XMLCh * | localName | |||
| ) |
Retrieves a component specified by local name and namespace URI.
applications must use the value null as the compNamespace parameter for components whose targetNamespace property is absent.
| compNamespace | The namespace URI of the component to retrieve. | |
| localName | The local name of the component to retrieve. |
null if they do not identify any node in this map. | void XSNamedMap< TVal >::addElement | ( | TVal *const | toAdd, | |
| const XMLCh * | key1, | |||
| const XMLCh * | key2 | |||
| ) |
methods needed by implementation
1.5.6