• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

DOM::NodeList

DOM::NodeList Class Reference

#include <dom_node.h>

List of all members.


Detailed Description

The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.

The items in the NodeList are accessible via an integral index, starting from 0.

Definition at line 924 of file dom_node.h.


Public Member Functions

 NodeList ()
 NodeList (const NodeList &other)
NodeList & operator= (const NodeList &other)
 ~NodeList ()
unsigned long length () const
Node item (unsigned long index) const
NodeListImpl * handle () const
bool isNull () const

Protected Member Functions

 NodeList (const NodeListImpl *i)

Protected Attributes

NodeListImpl * impl

Friends

class Element
class Node
class Document
class HTMLDocument
class KJS::HTMLDocument
class KJS::Window

Constructor & Destructor Documentation

NodeList::NodeList (  ) 

Definition at line 436 of file dom_node.cpp.

NodeList::NodeList ( const NodeList &  other  ) 

Definition at line 441 of file dom_node.cpp.

NodeList::~NodeList (  ) 

Definition at line 463 of file dom_node.cpp.

NodeList::NodeList ( const NodeListImpl *  i  )  [protected]

Definition at line 447 of file dom_node.cpp.


Member Function Documentation

NodeList & NodeList::operator= ( const NodeList &  other  ) 

Definition at line 453 of file dom_node.cpp.

unsigned long NodeList::length (  )  const

The number of nodes in the list.

The range of valid child node indices is 0 to length-1 inclusive.

Definition at line 474 of file dom_node.cpp.

Node NodeList::item ( unsigned long  index  )  const

Returns the index th item in the collection.

If index is greater than or equal to the number of nodes in the list, this returns null .

Parameters:
index Index into the collection.
Returns:
The node at the index th position in the NodeList , or null if that is not a valid index.

Definition at line 468 of file dom_node.cpp.

NodeListImpl* DOM::NodeList::handle (  )  const [inline]

Definition at line 966 of file dom_node.h.

bool DOM::NodeList::isNull (  )  const [inline]

Definition at line 967 of file dom_node.h.


Friends And Related Function Documentation

friend class Element [friend]

Definition at line 926 of file dom_node.h.

friend class Node [friend]

Definition at line 927 of file dom_node.h.

friend class Document [friend]

Definition at line 928 of file dom_node.h.

friend class HTMLDocument [friend]

Definition at line 929 of file dom_node.h.

friend class KJS::HTMLDocument [friend]

Definition at line 930 of file dom_node.h.

friend class KJS::Window [friend]

Definition at line 931 of file dom_node.h.


Member Data Documentation

NodeListImpl* DOM::NodeList::impl [protected]

Definition at line 971 of file dom_node.h.


The documentation for this class was generated from the following files:
  • dom_node.h
  • dom_node.cpp

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal