WvStreams
|
An iterator that's always empty. More...
#include <uniconfgen.h>
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. |
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.
virtual void UniConfGen::NullIter::rewind | ( | ) | [inline, virtual] |
Rewinds the iterator.
Must be called prior to the first invocation of next().
Implements UniConfGen::Iter.
Definition at line 362 of file uniconfgen.h.
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.
Definition at line 363 of file uniconfgen.h.
virtual UniConfKey UniConfGen::NullIter::key | ( | ) | const [inline, virtual] |
Returns the current key.
Implements UniConfGen::Iter.
Definition at line 364 of file uniconfgen.h.
References UniConfKey::EMPTY.
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.
Definition at line 365 of file uniconfgen.h.