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.
 
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.
 
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.
 

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 debian/libwvstreams-dev/usr/include/wvstreams/uniconfgen.h.

Member Function Documentation

◆ rewind() [1/2]

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 debian/libwvstreams-dev/usr/include/wvstreams/uniconfgen.h.

◆ next() [1/2]

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 debian/libwvstreams-dev/usr/include/wvstreams/uniconfgen.h.

◆ key() [1/2]

virtual UniConfKey UniConfGen::NullIter::key ( ) const
inlinevirtual

Returns the current key.

Implements UniConfGen::Iter.

Definition at line 364 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconfgen.h.

References UniConfKey::EMPTY.

◆ value() [1/2]

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 debian/libwvstreams-dev/usr/include/wvstreams/uniconfgen.h.

◆ rewind() [2/2]

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 include/uniconfgen.h.

◆ next() [2/2]

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 include/uniconfgen.h.

◆ key() [2/2]

virtual UniConfKey UniConfGen::NullIter::key ( ) const
inlinevirtual

Returns the current key.

Implements UniConfGen::Iter.

Definition at line 364 of file include/uniconfgen.h.

References UniConfKey::EMPTY.

◆ value() [2/2]

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 include/uniconfgen.h.


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