GtkFC API Reference version 0.1.0

Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Examples  

Giterator Class Reference

#include <Giterator.h>

Inheritance diagram for Giterator:

Glist::GlistIterator Gvector::Iterator List of all members.

Public Methods

virtual void Begin ()=0
virtual GobjectNext ()=0
virtual bool HasNext ()=0

Detailed Description

an abstract iterator class. The iterator interact with the structure on which it iterate. But if the structure change during an iteration, the iterator can be damaged
Author(s):
Thibaut Nicolas
Version:
0.1.0
 The Giterator standard use is:
 Giterator* it = ...
 while(it->HasNext())
   {
     Gobject* o = it->Next();
     ...
   }
 delete it;


Member Function Documentation

void Giterator::Begin ( ) [pure virtual]
 

Reset the iterator

Reimplemented in Glist::GlistIterator, and Gvector::Iterator.

bool Giterator::HasNext ( ) [pure virtual]
 

Return true if an object is available with Next()

Reimplemented in Glist::GlistIterator, and Gvector::Iterator.

Gobject * Giterator::Next ( ) [pure virtual]
 

Return the next object

Reimplemented in Glist::GlistIterator, and Gvector::Iterator.


The documentation for this class was generated from the following file:

Copyright © 2002 Thibaut Nicolas
Last modified  lun sep 23 23:41:26 EDT 2002