WvStreams
Public Member Functions | List of all members
UniConfGen::NullIter Class Reference

An iterator that's always empty. More...

#include <uniconfgen.h>

Inheritance diagram for UniConfGen::NullIter:
Inheritance graph
[legend]

Public Member Functions

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

Detailed Description

An iterator that's always empty.

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

Definition at line 357 of file uniconfgen.h.

Member Function Documentation

◆ rewind()

virtual void UniConfGen::NullIter::rewind ( )
inlinevirtual

Rewinds the iterator.

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

Implements UniConfGen::Iter.

Definition at line 362 of file uniconfgen.h.

◆ next()

virtual bool UniConfGen::NullIter::next ( )
inlinevirtual

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.

Definition at line 363 of file uniconfgen.h.

◆ value()

virtual WvString UniConfGen::NullIter::value ( ) const
inlinevirtual

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.

Definition at line 365 of file uniconfgen.h.


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