WvStreams
UniConf::XIter Class Reference

This iterator walks over all children that match a wildcard pattern. More...

#include <uniconf.h>

Inheritance diagram for UniConf::XIter:

Public Member Functions

 XIter (const UniConf &_top, const UniConfKey &pattern)
 Creates a wildcard iterator.
void rewind ()
bool next ()
 XIter (const UniConf &_top, const UniConfKey &pattern)
 Creates a wildcard iterator.
void rewind ()
bool next ()
const UniConf * ptr () const
const UniConf * ptr () const
 WvIterStuff (const UniConf)
 WvIterStuff (const UniConf)

Protected Attributes

UniConf top
UniConf current

Detailed Description

This iterator walks over all children that match a wildcard pattern.

See UniConfKey::matches(const UniConfKey&) for information about patterns.

Example patterns: (where STAR is the asterisk character, '*')

"": a null iterator "a": matches only the key "a" if it exists "STAR": matches all direct children "STAR/foo": matches any existing key "foo" under direct children "STAR/STAR": matches all children of depth exactly 2 "foo/...": matches all keys including and below "foo" "foo/STAR/...": matches all keys below "foo" ".../foo/STAR": matches all keys below any subkey named "foo" in the tree

Definition at line 511 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconf.h.

Constructor & Destructor Documentation

◆ XIter()

UniConf::XIter::XIter ( const UniConf & _top,
const UniConfKey & pattern )

Creates a wildcard iterator.

Definition at line 253 of file uniconf.cc.

References UniConf::UniConf().

Referenced by XIter().

◆ ~XIter()

UniConf::XIter::~XIter ( )

Definition at line 273 of file uniconf.cc.

Member Function Documentation

◆ rewind()

void UniConf::XIter::rewind ( )

Definition at line 299 of file uniconf.cc.

◆ next()

bool UniConf::XIter::next ( )

Definition at line 374 of file uniconf.cc.

◆ ptr() [1/2]

const UniConf * UniConf::IterBase::ptr ( ) const
inlineinherited

◆ ptr() [2/2]

const UniConf * UniConf::IterBase::ptr ( ) const
inlineinherited

Definition at line 426 of file include/uniconf.h.

Member Data Documentation

◆ top

UniConf UniConf::IterBase::top
protectedinherited

◆ current

UniConf UniConf::IterBase::current
protectedinherited

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