UniConf::SortedIterBase Class Reference

#include <uniconf.h>

Inheritance diagram for UniConf::SortedIterBase:
[legend]

List of all members.


Detailed Description

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 542 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)
bool next ()
const UniConfptr () const
 WvIterStuff (const UniConf)

Static Public Member Functions

static int defcomparator (const UniConf &a, const UniConf &b)
 Default comparator.

Protected Types

typedef WvVector< UniConfVector

Protected Member Functions

template<class Iter>
void populate (Iter &i)

Protected Attributes

Vector xkeys
UniConf top
UniConf current

Member Function Documentation

int UniConf::SortedIterBase::defcomparator ( const UniConf a,
const UniConf b 
) [static]

Default comparator.

Sorts alphabetically by full key.

Definition at line 422 of file uniconf.cc.

References UniConfKey::compareto(), and UniConf::fullkey().


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

Generated on Sat Feb 7 13:37:18 2009 for WvStreams by  doxygen 1.5.6