ZTBSpec::Comparator Class Reference

Holds a <ZTBSpec::ERel, strength> pair. More...

#include <ZTBSpec.h>

List of all members.

Public Member Functions

 Comparator (ERel iRel, int iStrength)
 Comparator with relationship iRel and strength iStrength.
 Comparator (ERel iRel)
 Comparator with relationship iRel and strength 0.
Comparison, to facilitate use as keys in associative containers.

Public Attributes

ERel fRel
 The relationship.
int fStrength
 The strength to be used in applying that relationship.


Detailed Description

Holds a <ZTBSpec::ERel, strength> pair.

Comparator describes the comparison to be made between a property of a candidate tuple and a ZTupleValue. The actual comparison is specified by a ZTBSpec::ERel, further qualified by an integer strength. The strength is used when comparing one string against another, for the relationships eRel_Less, eRel_LessEqual, eRel_Equal, eRel_GreaterEqual, eRel_Greater, eRel_StringContains and eRel_Regex.

The strength is used to initialize a ZTextCollator. Generally you'll be using strength 0, for exact string matching, or strength 1, for case and diacritic-insensitive matching.


The documentation for this class was generated from the following files:
Generated on Thu Jul 26 11:22:09 2007 for ZooLib by  doxygen 1.4.7