Xerces-C++ 3.1.3

- Main Page
- Related Pages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

List of all members
XSNamedMap< TVal > Class Template Reference
Inheritance diagram for XSNamedMap< TVal >:

## 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 `index`th 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
Public Member Functions inherited from XMemory
void * | operator new (size_t size)
| This method overrides operator new.
void * | operator new (size_t size, MemoryManager *memMgr)
| This method defines a custom operator new, that will use the provided memory manager to perform the allocation.
void * | operator new (size_t size, void *ptr)
| This method overrides placement operator new.
void | operator delete (void *p)
| This method overrides operator delete.
void | operator delete (void *p, MemoryManager *memMgr)
| This method provides a matching delete for the custom operator new.
void | operator delete (void *p, void *ptr)
| This method provides a matching delete for the placement new.

## Additional Inherited Members

Protected Member Functions inherited from XMemory
| XMemory ()
| Protected default constructor.

## Constructor & Destructor Documentation

template<class TVal>

XSNamedMap< TVal >::XSNamedMap | ( | const XMLSize_t | maxElems,
|  | const XMLSize_t | modulus,
|  | XMLStringPool * | uriStringPool,
|  | const bool | adoptElems,
|  | MemoryManager *const | manager = `XMLPlatformUtils::fgMemoryManager`
| ) |  |

template<class TVal>

XSNamedMap< TVal >::~XSNamedMap | ( |  | ) |

## Member Function Documentation

template<class TVal>

void XSNamedMap< TVal >::addElement | ( | TVal *const | toAdd,
|  | const XMLCh * | key1,
|  | const XMLCh * | key2
| ) |  |

methods needed by implementation

template<class TVal>

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.

template<class TVal>

TVal* XSNamedMap< TVal >::item | ( | XMLSize_t | index | ) |

Returns the `index`th 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`.

Parameters

  index | index into the collection.

Returns
  The `XSObject` at the `index`th position in the `XSObjectList`, or `null` if that is not a valid index.

template<class TVal>

const TVal* XSNamedMap< TVal >::item | ( | XMLSize_t | index | ) | const

template<class TVal>

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.

Parameters

  compNamespace | The namespace URI of the component to retrieve.
  localName | The local name of the component to retrieve.

Returns
  A component (of any type) with the specified local name and namespace URI, or `null` if they do not identify any node in this map.

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

- XSNamedMap.hpp