Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

UniConfGen::NullIter Class Reference

#include <uniconfgen.h>

Inheritance diagram for UniConfGen::NullIter:

Inheritance graph
[legend]
List of all members.

Detailed Description

An iterator that's always empty.

This is handy if you don't have anything good to iterate over.


Public Member Functions

virtual void rewind ()
 Rewinds the iterator.
virtual bool next ()
 Seeks to the next element in the sequence.
virtual UniConfKey key () const
 Returns the current key.
virtual WvString value () const
 Returns the value of the current key.


Member Function Documentation

virtual void UniConfGen::NullIter::rewind  )  [inline, virtual]
 

Rewinds the iterator.

Must be called prior to the first invocation of next().

Implements UniConfGen::Iter.

virtual bool UniConfGen::NullIter::next  )  [inline, virtual]
 

Seeks to the next element in the sequence.

Returns true if that element exists. Must be called prior to the first invocation of key().

Implements UniConfGen::Iter.

virtual WvString UniConfGen::NullIter::value  )  const [inline, virtual]
 

Returns the value of the current key.

You could just do a get(), but maybe your generator has a more efficient way.

Implements UniConfGen::Iter.


The documentation for this class was generated from the following file:
Generated on Sun Jul 10 15:35:43 2005 for WvStreams by  doxygen 1.4.0