Source Code (Use browser search to find items of interest.)
Class Index
kdelibs'NodeList (./kdelibs/khtml/dom/dom_node.h:601)
class NodeList
{
friend class Element;
friend class Node;
friend class Document;
friend class HTMLDocument;
public:
NodeList();
NodeList(const NodeList &other);
NodeList & operator = (const NodeList &other);
~NodeList();
/**
* The number of nodes in the list. The range of valid child node
* indices is 0 to <code> length-1 </code> inclusive.
*
*/
unsigned long length() const;
/**
* Returns the <code> index </code> th item in the collection. If
* <code> index </code> is greater than or equal to the number of
* nodes in the list, this returns <code> null </code> .
*
* @param index Index into the collection.
*
* @return The node at the <code> index </code> th position in the
* <code> NodeList </code> , or <code> null </code> if that is not
* a valid index.
*
*/
Node item ( unsigned long index );
protected:
NodeList(const NodeListImpl *i);
NodeListImpl *impl;
};
}; //namespace
kdelibs'NodeList::NodeList() (./kdelibs/khtml/dom/dom_node.cpp:304)
NodeList::NodeList()
{
impl = 0;
}
kdelibs'NodeList::NodeList() (./kdelibs/khtml/dom/dom_node.cpp:309)
NodeList::NodeList(const NodeList &other)
{
impl = other.impl;
if(impl) impl->ref();
}
kdelibs'NodeList::NodeList() (./kdelibs/khtml/dom/dom_node.cpp:315)
NodeList::NodeList(const NodeListImpl *i)
{
impl = (NodeListImpl *)i;
if(impl) impl->ref();
}
kdelibs'NodeList::~NodeList() (./kdelibs/khtml/dom/dom_node.cpp:329)
NodeList::~NodeList()
{
if(impl) impl->deref();
}
kdelibs'NodeList::item() (./kdelibs/khtml/dom/dom_node.cpp:334)
Node NodeList::item( unsigned long index )
{
if(!impl) return 0;
return impl->item(index);
}
kdelibs'NodeList::length() (./kdelibs/khtml/dom/dom_node.cpp:340)
unsigned long NodeList::length() const
{
if(!impl) return 0;
return impl->length();
}