Public Member Functions | Protected Attributes | Private Member Functions

CQueryBinaryOperationNode Class Reference

#include <QueryNode.h>

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

List of all members.

Public Member Functions

Protected Attributes

Private Member Functions


Detailed Description

An abtsract class for binary logical operations on nodes (and, or). It contains instances of three major logical operation (union, intersection and difference) which were slightly modified to deal with CQueryNode::m_Hits and CQueryNode::m_Occurrences simultaneously.


Constructor & Destructor Documentation

CQueryBinaryOperationNode::CQueryBinaryOperationNode (  )  [inline]
CQueryBinaryOperationNode::CQueryBinaryOperationNode ( CQueryNode dtr1,
CQueryNode dtr2 
) [inline]
CQueryBinaryOperationNode::~CQueryBinaryOperationNode (  )  [virtual]

References m_pChild1, and m_pChild2.


Member Function Documentation

void CQueryBinaryOperationNode::hits_add ( const CQueryNode NodeFrom,
vector< CHit >::const_iterator  First 
) [private]

add the hit list of "NodeFrom" to the back of "First"

References CQueryNode::AddOccurrences(), GetOccurrencesSize, CHit::m_HighlightOccurrenceEnd, and CQueryNode::m_Hits.

Referenced by hits_and_positions_difference(), and hits_and_positions_union().

Here is the call graph for this function:

Here is the caller graph for this function:

void CQueryBinaryOperationNode::Create ( const CConcHolder pHolder,
CQueryNode child1,
CQueryNode child2,
string  Operation 
)

References m_pChild1, m_pChild2, CQueryNode::m_Source, and CQueryNode::SetHolder().

Referenced by yyqparse().

Here is the call graph for this function:

Here is the caller graph for this function:

void CQueryBinaryOperationNode::hits_and_positions_union (  ) 

a modified version of std::union which unites simultaneously two pairs of vectors

References CQueryNode::AddOccurrences(), CQueryNode::ClearAndReserveOccurrences(), GetOccurrencesSize, hits_add(), CHit::m_HighlightOccurrenceEnd, CQueryNode::m_Hits, m_pChild1, and m_pChild2.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void CQueryBinaryOperationNode::hits_and_positions_intersection (  ) 

a modified version of std::intersection which simultaneously deals with two pairs of vectors

References CQueryNode::AddOccurrences(), CQueryNode::ClearAndReserveOccurrences(), GetOccurrencesSize, CHit::m_HighlightOccurrenceEnd, CQueryNode::m_Hits, m_pChild1, and m_pChild2.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void CQueryBinaryOperationNode::hits_and_positions_difference (  ) 

a modified version of std::difference which simultaneously deals with two pairs of vectors

References CQueryNode::AddOccurrences(), CQueryNode::ClearAndReserveOccurrences(), GetOccurrencesSize, hits_add(), CHit::m_HighlightOccurrenceEnd, CQueryNode::m_Hits, m_pChild1, and m_pChild2.

Referenced by CQueryAndOperation::Evaluate().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t CQueryBinaryOperationNode::GetNodeFrequenceByNodeIndex ( size_t  NodeIndex  )  const [virtual]

Reimplemented from CQueryNode.

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

Here is the call graph for this function:


Member Data Documentation


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