GClasses
GClasses::GDomListIterator Class Reference

Detailed Description

This class iterates over the items in a list node.

#include <GDom.h>

Public Member Functions

 GDomListIterator (const GDomNode *pNode)
 
 ~GDomListIterator ()
 
void advance ()
 Advances to the next item in the list. More...
 
GDomNodecurrent ()
 Returns the current item in the list. More...
 
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. More...
 

Protected Attributes

GDomListItem * m_pCurrent
 
const GDomNodem_pList
 
size_t m_remaining
 

Constructor & Destructor Documentation

GClasses::GDomListIterator::GDomListIterator ( const 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
const GDomNode* GClasses::GDomListIterator::m_pList
protected
size_t GClasses::GDomListIterator::m_remaining
protected