WvStreams
Public Member Functions | Protected Attributes
UniConf::XIter Class Reference

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

#include <uniconf.h>

Inheritance diagram for UniConf::XIter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 XIter (const UniConf &_top, const UniConfKey &pattern)
 Creates a wildcard iterator.
void rewind ()
bool next ()
const UniConfptr () const
 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 uniconf.h.


Constructor & Destructor Documentation

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

Creates a wildcard iterator.

Definition at line 253 of file uniconf.cc.

References UniConfKey::append(), UniConfKey::first(), UniConfKey::isempty(), UniConfKey::iswild(), and UniConfKey::removefirst().


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