GClasses

GClasses::GDomListIterator Class Reference

This class iterates over the items in a list node. More...

#include <GDom.h>

List of all members.

Public Member Functions

 GDomListIterator (GDomNode *pNode)
 ~GDomListIterator ()
GDomNodecurrent ()
 Returns the current item in the list.
void advance ()
 Advances to the next item in the list.
size_t remaining ()
 Returns the number of items remaining to be visited. When the current item in the list is the first item, the number remaining is the number of items in the list.

Protected Attributes

GDomNodem_pList
GDomListItem * m_pCurrent
size_t m_remaining

Detailed Description

This class iterates over the items in a list node.


Constructor & Destructor Documentation

GClasses::GDomListIterator::GDomListIterator ( GDomNode pNode)
GClasses::GDomListIterator::~GDomListIterator ( )

Member Function Documentation

void GClasses::GDomListIterator::advance ( )

Advances to the next item in the list.

GDomNode* GClasses::GDomListIterator::current ( )

Returns the current item in the list.

size_t GClasses::GDomListIterator::remaining ( )

Returns the number of items remaining to be visited. When the current item in the list is the first item, the number remaining is the number of items in the list.


Member Data Documentation

GDomListItem* GClasses::GDomListIterator::m_pCurrent [protected]