DOM::NamedNodeMap Struct Reference

#include <DOM.hpp>

List of all members.


Detailed Description

A named node map This is used to store attributes in Elements node This can also be used to find a Node in the internal array by its name.


Public Types

typedef Tree::AVL::Tree< const
Node *, HTML::GenericAttribute::AttributeID
AttribTree

Public Member Functions

void Append (const Node *attribute, const HTML::GenericAttribute::AttributeID &AID)
 Add an attribute bypassing all checks.
AttribTree::IterT getFirstIterator () const throw ()
 Get an iterator on the attribute array.
const NodegetNamedItem (const DOMString &name) const throw ()
 Get the named item from the given name.
const Nodeitem (const uint32 index) const throw ()
 Get the item at the given index.
const uint32 length () const
 Get the current map size.
const NoderemoveNamedItem (const DOMString &name)
 Remove the named item from the given name.
const NodesetNamedItem (const Node *const arg)
 Set the named item from the given node.


Member Typedef Documentation

typedef Tree::AVL::Tree<const Node *, HTML::GenericAttribute::AttributeID> DOM::NamedNodeMap::AttribTree


Member Function Documentation

void DOM::NamedNodeMap::Append ( const Node attribute,
const HTML::GenericAttribute::AttributeID AID 
) [inline]

Add an attribute bypassing all checks.

AttribTree::IterT DOM::NamedNodeMap::getFirstIterator (  )  const throw () [inline]

Get an iterator on the attribute array.

const Node * DOM::NamedNodeMap::getNamedItem ( const DOMString name  )  const throw () [inline]

Get the named item from the given name.

Returns:
0 if no item is found from the given name

const Node * DOM::NamedNodeMap::item ( const uint32  index  )  const throw ()

Get the item at the given index.

Returns:
the Node pointer if found, 0 else

const uint32 DOM::NamedNodeMap::length (  )  const [inline]

Get the current map size.

const Node * DOM::NamedNodeMap::removeNamedItem ( const DOMString name  ) 

Remove the named item from the given name.

Returns:
the removed node if found, or 0 else
Exceptions:
DOM::Exceptions on error

const Node * DOM::NamedNodeMap::setNamedItem ( const Node *const  arg  ) 

Set the named item from the given node.

Returns:
the replaced node if replaced, or 0 else
Exceptions:
DOM::Exceptions on error


The documentation for this struct was generated from the following files:

(C) An X-Ryl669 project 2007

This document describes Unlimited Zooming Interface source code. UZI stands for Unlimited Zooming Interface, and source code license is