|
WvStreams
|
An implementation base class for sorted key iterators. More...
#include <uniconf.h>
Public Types | |
| typedef int(* | Comparator) (const UniConf &a, const UniConf &b) |
| typedef int(* | Comparator) (const UniConf &a, const UniConf &b) |
Public Member Functions | |
| SortedIterBase (const UniConf &_top, Comparator comparator=defcomparator) | |
| bool | next () |
| SortedIterBase (const UniConf &_top, Comparator comparator=defcomparator) | |
| bool | next () |
| const UniConf * | ptr () const |
| const UniConf * | ptr () const |
| WvIterStuff (const UniConf) | |
| WvIterStuff (const UniConf) | |
Static Public Member Functions | |
| static int | defcomparator (const UniConf &a, const UniConf &b) |
| Default comparator. | |
| static int | defcomparator (const UniConf &a, const UniConf &b) |
| Default comparator. | |
Protected Member Functions | |
| template<class Iter > | |
| void | populate (Iter &i) |
| template<class Iter > | |
| void | populate (Iter &i) |
Protected Attributes | |
| std::vector< UniConf > | xkeys |
| UniConf | top |
| UniConf | current |
An implementation base class for sorted key iterators.
Unfortunately WvSorter is too strongly tied down to lists and pointers to be of use here. The main problem is that UniConf::Iter and company return pointers to temporary objects whereas WvSorter assumes that the pointers will remain valid for the lifetime of the iterator.
Definition at line 543 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconf.h.
Definition at line 546 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconf.h.
Definition at line 546 of file include/uniconf.h.
| UniConf::SortedIterBase::SortedIterBase | ( | const UniConf & | _top, |
| Comparator | comparator = defcomparator |
||
| ) |
Definition at line 411 of file uniconf.cc.
| UniConf::SortedIterBase::~SortedIterBase | ( | ) |
Definition at line 418 of file uniconf.cc.
Default comparator.
Sorts alphabetically by full key.
Definition at line 424 of file uniconf.cc.
References UniConfKey::compareto(), and UniConf::fullkey().
| bool UniConf::SortedIterBase::next | ( | ) |
Definition at line 457 of file uniconf.cc.
Definition at line 568 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconf.h.
Default comparator.
Sorts alphabetically by full key.
Definition at line 568 of file include/uniconf.h.
|
inlineinherited |
Definition at line 426 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconf.h.
|
inlineinherited |
Definition at line 426 of file include/uniconf.h.
|
protected |
Definition at line 565 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconf.h.
|
protectedinherited |
Definition at line 418 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconf.h.
|
protectedinherited |
Definition at line 419 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconf.h.