Public Member Functions | Private Member Functions | Private Attributes

CQueryNearNode Class Reference

CQueryNearNode is a class which is used to search two or three nodes, which are inside some text period of length CQueryNearNode::m_Distance. It other words it is an implementation of "near" operator: for example, NEAR(a,b,2). More...

#include <QueryNode.h>

Inheritance diagram for CQueryNearNode:
Inheritance graph
[legend]
Collaboration diagram for CQueryNearNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Private Member Functions

Private Attributes


Detailed Description

CQueryNearNode is a class which is used to search two or three nodes, which are inside some text period of length CQueryNearNode::m_Distance. It other words it is an implementation of "near" operator: for example, NEAR(a,b,2).


Constructor & Destructor Documentation

CQueryNearNode::CQueryNearNode (  ) 

References m_pChild1, m_pChild2, and m_pMiddleChild.

CQueryNearNode::~CQueryNearNode (  )  [virtual]

References m_pChild1, m_pChild2, and m_pMiddleChild.


Member Function Documentation

bool CQueryNearNode::ReadDistanceFromString ( const char *  s  )  [private]

read the text distance from a string, return false if it is to large

References m_Distance, and MaxDistanceForNear.

Referenced by Create().

Here is the caller graph for this function:

bool CQueryNearNode::Create ( const CConcHolder pHolder,
const char *  distance_str,
CQueryNode child1,
CQueryNode child2,
CQueryNode child3 = 0 
)

create the node during yacc parsing

References CQueryNode::m_bAtomic, m_pChild1, m_pChild2, m_pMiddleChild, ReadDistanceFromString(), and CQueryNode::SetHolder().

Referenced by yyqparse().

Here is the call graph for this function:

Here is the caller graph for this function:

void CQueryNearNode::Evaluate (  )  [virtual]
size_t CQueryNearNode::GetNodeFrequenceByNodeIndex ( size_t  NodeIndex  )  const [virtual]

Reimplemented from CQueryNode.

References CQueryNode::GetNodeFrequenceByNodeIndex(), m_pChild1, m_pChild2, and m_pMiddleChild.

Here is the call graph for this function:


Member Data Documentation

the middle child (can be null)

Referenced by CQueryNearNode(), Create(), Evaluate(), GetNodeFrequenceByNodeIndex(), and ~CQueryNearNode().

the distance between the first child and the second child

Referenced by Evaluate(), and ReadDistanceFromString().


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