ZTBSpec::Criterion Class Reference

Holds a <property name, ZTBSpec::Comparator, ZTupleValue> triple. More...

#include <ZTBSpec.h>

List of all members.

Public Member Functions

 Criterion (const ZTuplePropName &iPropName, const Comparator &iComparator, const ZTupleValue &iTV)
 The most general constructor, taking explicit property name, comparator and value.
 Criterion (const ZTuplePropName &iPropName)
 Equivalent to Criterion(iPropName, ZTBSpec::eRel_Has).
 Criterion (const ZTuplePropName &iPropName, ZType iType)
 Equivalent to Criterion(iPropName, ZTBSpec::eRel_HasofType, iType).
 Criterion (const ZTuplePropName &iPropName, ERel iRel, const ZTupleValue &iTV)
 Equivalent to Criterion(iPropName, ZTBSpec::Comparator(iRel), iTV).
 Criterion (const ZTuplePropName &iPropName, ERel iRel, int iStrength, const ZTupleValue &iTV)
 Equivalent to Criterion(iPropName, ZTBSpec::Comparator(iRel, iStrength), iTV).
ZTuple AsTuple () const
 Returns a tuple-ized form of the Criterion.
bool Matches (const ZTuple &iTuple) const
 Return true if iTuple satisfies the criterion.
Comparison, to facilitate use as keys in associative containers.


Detailed Description

Holds a <property name, ZTBSpec::Comparator, ZTupleValue> triple.

Criterion specifies a the name of a property to be examined, and the ZTBSpec::Comparator to be used to make that examination.


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