CQueryParadigmMatcher Class

# CQueryParadigmMatcher Class Reference

[CADIHash.h Index] [CADIHash.h Hierarchy]

More...

`#include <../libInvertedFile/include/CQueryParadigmMatcher.h>`

Inherits: binary_functionCXMLElement, CXMLElement>

## Public Members

- bool operator() (const CXMLElement& inQuery,const CXMLElement& inResult)

## Protected Members

- bool matches (const CXMLElement& inQuery,const CXMLElement& inResult)

## bool operator()(const CXMLElement.html">CXMLElement& inQuery,const CXMLElement.html">CXMLElement& inResult)

This function gives back, if the inQuery matches inResult.

Both parameters are elements of type query-paradigm-list

inQuery matches inResult, if one of the children (a query paradigm) of inQuery matches one of the children (also a query paradigm) of inResult.

## bool matches(const CXMLElement.html">CXMLElement& inQuery,const CXMLElement.html">CXMLElement& inResult)

Two XMLElements of type query-paradigm match,if the intersection of their attribute sets is identical.

I.e.: If inQuery contains a1="x" a2=y", inResult with a1="x" a3="z" would match, because the intersection of the attribute sets is

a1="x" and a1="x" for both inQuery and inResult.

query-paradigm a1="x" query-paradigm a2="x"

would also match,

query-paradigm a1="x" a3="x" query-paradigm a1="y"

would not.

| Kdoc