#include <QueryNode.hpp>
Inheritance diagram for QueryNode:

Public Methods | |
| QueryNode (int id, double weight) | |
| New QueryNode with given id and weight. | |
| QueryNode () | |
| New QueryNode with default id (0) and weight (1). | |
| QueryNode (double weight, double dWeight=0) | |
| New QueryNode with given weight and default id (0). | |
| virtual | ~QueryNode () |
| clean up internal data. | |
| const QnList * | children () const |
| the children of this node | |
| void | setChildren (QnList *cl) |
| set the children of this node | |
| int | id () const |
| the node's id | |
| double | weight () const |
| the weight of this node. | |
| void | setWeight (double wt) |
| void | setEntries (int cnt) |
| virtual void | copyDocList (int len, int tf, const DocInfoList *dl, int dc) |
| Copy the DocInfoList for a given node. | |
| virtual void | updateDocList (int numDocs)=0 |
| update doc list from children's doc lists. | |
| virtual double | eval (const DocumentRep *dRep) const=0 |
| evaluate the node on the given document, returning a score. | |
| bool | isProxNode () const |
| Does this node have a proxList? | |
| void | startProxIteration () const |
| Iteration through a node's prox lists. | |
| bool | hasMoreProx () const |
| Any entries left in the list? | |
| bool | nextProxItem () const |
| advance to next element in list. return false if empty. | |
| bool | nextProxItem (int did) const |
Public Attributes | |
| int | dCnt |
| number of documents this node matched | |
| bool * | dList |
| array of bool matched docs indexed by docid | |
| int | nextDoc |
| the next document this node matched. | |
| ProxInfo * | proxList |
| This node's ProxInfo list. | |
Protected Methods | |
| void | transformPassageOps () |
| flatten children of a node into weighted prox entries. | |
| void | unionDocList (int numDocs) |
| Union the DocInfoLists of a given node. | |
| void | intersectDocList (int numDocs) |
| Intersect the DocInfoLists of a given node. | |
Protected Attributes | |
| QnList * | ch |
| This node's children list. | |
| int | entries |
| Number of children in ch. | |
| int | it |
| query node id | |
| double | w |
| query node weight | |
| double | dw |
| The default score. | |
|
||||||||||||
|
New QueryNode with given id and weight.
|
|
|
New QueryNode with default id (0) and weight (1).
|
|
||||||||||||
|
New QueryNode with given weight and default id (0).
|
|
|
clean up internal data.
|
|
|
the children of this node
|
|
||||||||||||||||||||
|
Copy the DocInfoList for a given node.
Reimplemented in TermQnode. |
|
|
evaluate the node on the given document, returning a score.
Implemented in ProxNode, SumQnode, WsumQnode, AndQnode, OrQnode, NotQnode, MaxQnode, BandQnode, BandNotQnode, FiltRejQnode, FiltReqQnode, TermQnode, and PassageQNode. |
|
|
Any entries left in the list?
|
|
|
the node's id
|
|
|
Intersect the DocInfoLists of a given node.
|
|
|
Does this node have a proxList?
|
|
|
advance to element with id did, or to next element beyond if did is not found. Return true if found, false if not. |
|
|
advance to next element in list. return false if empty.
|
|
|
set the children of this node
|
|
|
|
|
|
|
|
|
Iteration through a node's prox lists.
|
|
|
flatten children of a node into weighted prox entries. flatten children of a node into weighted proximity entries. removes all belief operators. |
|
|
Union the DocInfoLists of a given node.
|
|
|
update doc list from children's doc lists.
Implemented in BeliefNode, ProxNode, BandQnode, FiltReqQnode, OdnQNode, UwnQNode, PassageQNode, and SynQNode. |
|
|
the weight of this node.
|
|
|
This node's children list.
|
|
|
number of documents this node matched
|
|
|
array of bool matched docs indexed by docid
|
|
|
The default score.
|
|
|
Number of children in ch.
|
|
|
query node id
|
|
|
the next document this node matched.
|
|
|
This node's ProxInfo list.
|
|
|
query node weight
|
1.2.18