Public Member Functions | Public Attributes

CQueryNode Class Reference

CQueryNode is an abstract class for any node in a query parse tree. A parse tree is built by YACC during CQueryParser::ParseQuery. This class contains all members which are common to atomic and operation nodes. More...

#include <QueryNode.h>

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

List of all members.

Public Member Functions

Public Attributes


Detailed Description

CQueryNode is an abstract class for any node in a query parse tree. A parse tree is built by YACC during CQueryParser::ParseQuery. This class contains all members which are common to atomic and operation nodes.


Constructor & Destructor Documentation

CQueryNode::CQueryNode ( bool  bUseNodeIndices = false,
bool  bUseTokenIdxs = false,
const CConcHolder holder = NULL 
) [inline]
CQueryNode::~CQueryNode (  )  [virtual]

References ClearVector(), m_OccurrenceNodeIndices, m_Occurrences, and m_OccurrenceTokenIdxs.

Here is the call graph for this function:


Member Function Documentation

void CQueryNode::Evaluate (  )  [virtual]
void CQueryNode::EvaluateWithoutHits (  )  [virtual]

Reimplemented in CQueryTokenNode, CQuerySequenceNode, and CQueryWithNode.

Referenced by CQueryNearNode::Evaluate(), and CConcHolder::GetOccurrences().

Here is the caller graph for this function:

void CQueryNode::SetNegation ( bool  Value  ) 

set m_bNegated

References m_bNegated.

Referenced by CQueryOrOperation::Evaluate(), and CQueryAndOperation::Evaluate().

Here is the caller graph for this function:

bool CQueryNode::GetNegation (  )  const

get m_bNegated

References m_bNegated.

Referenced by CQueryOrOperation::Evaluate(), and CQueryAndOperation::Evaluate().

Here is the caller graph for this function:

void CQueryNode::AddOccurrences ( const CQueryNode FromNode,
int  start,
int  end 
)
void CQueryNode::ClearAndReserveOccurrences ( int  size  ) 
void CQueryNode::SwapOccurrences ( CQueryNode Node  ) 

References m_OccurrenceNodeIndices, m_Occurrences, and m_OccurrenceTokenIdxs.

Referenced by ConvertOccurrencesToHits(), and ConvertOccurrencesToHitsForPatterns().

Here is the caller graph for this function:

void CQueryNode::ConvertOccurrencesToHits ( bool  bUniqueHits  ) 
void CQueryNode::ConvertOccurrencesToHitsForPatterns ( bool  bUniqueHits  ) 
void CQueryNode::SetHolder ( const CConcHolder pHolder  ) 
size_t CQueryNode::GetNodeFrequenceByNodeIndex ( size_t  NodeIndex  )  const [virtual]

Member Data Documentation

is the node negated?

Referenced by GetNegation(), and SetNegation().

should DDC uses m_OccurrenceNodeIndices (m_OccurrenceNodeIndices is necessary only for less_by_rank)

Referenced by AddOccurrences(), ClearAndReserveOccurrences(), ConvertOccurrencesToHits(), ConvertOccurrencesToHitsForPatterns(), CQueryWithNode::EvaluateWithoutHits(), CQueryTokenNode::EvaluateWithoutHits(), and SetHolder().


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