#include <uniconf.h>
Inheritance diagram for UniConf::SortedIterBase:
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 571 of file uniconf.h.
Public Types | |
typedef int(* | Comparator )(const UniConf &a, const UniConf &b) |
Public Member Functions | |
SortedIterBase (const UniConf &_top, Comparator comparator=defcomparator) | |
~SortedIterBase () | |
bool | next () |
const UniConf * | ptr () const |
WvIterStuff (const UniConf) | |
Static Public Member Functions | |
static int | defcomparator (const UniConf &a, const UniConf &b) |
Default comparator. | |
Protected Types | |
typedef WvVector< UniConf > | Vector |
Protected Member Functions | |
template<class Iter> | |
void | populate (Iter &i) |
Protected Attributes | |
Vector | xkeys |
UniConf | top |
UniConf | current |
|
Default comparator. Sorts alphabetically by full key. Definition at line 422 of file uniconf.cc. References UniConfKey::compareto(), and UniConf::fullkey(). |