CQuerySequenceNode is an implementation of sequence operator, for example, "Mother and father". This class holds a sequence of nodes of type CQueryTokenNode (slot m_Items). Between m_Items[i] and m_Items[i+1] must be no more than m_Distances[i] tokens. More...
#include <QueryNode.h>
CQuerySequenceNode is an implementation of sequence operator, for example, "Mother and father". This class holds a sequence of nodes of type CQueryTokenNode (slot m_Items). Between m_Items[i] and m_Items[i+1] must be no more than m_Distances[i] tokens.
CQuerySequenceNode::CQuerySequenceNode | ( | ) |
References CQueryNode::m_bAtomic.
CQuerySequenceNode::~CQuerySequenceNode | ( | ) | [virtual] |
References m_Items.
bool CQuerySequenceNode::AddDistance | ( | const char * | s | ) | [private] |
add a distance to m_Distances, return false if the value is too large
References m_Distances, and MaxDistanceForNear.
Referenced by Create().
bool CQuerySequenceNode::Create | ( | const CConcHolder * | pHolder, | |
const vector< const CQueryNode * > & | SequenceObj, | |||
const vector< string > & | Distances | |||
) |
create the node during yacc parsing
References AddDistance(), m_Items, and CQueryNode::SetHolder().
Referenced by yyqparse().
void CQuerySequenceNode::EvaluateWithoutHits | ( | ) | [virtual] |
Reimplemented from CQueryNode.
References CQueryNode::AddOccurrences(), CQueryNode::ClearAndReserveOccurrences(), GetOccurrencesSize, CQueryNode::m_ChunkLengths, m_Distances, m_Items, and CQueryNode::m_Occurrences.
Referenced by Evaluate().
void CQuerySequenceNode::Evaluate | ( | ) | [virtual] |
Reimplemented from CQueryNode.
References CQueryNode::ConvertOccurrencesToHitsForPatterns(), and EvaluateWithoutHits().
size_t CQuerySequenceNode::GetNodeFrequenceByNodeIndex | ( | size_t | NodeIndex | ) | const [virtual] |
Reimplemented from CQueryNode.
References m_Items.
vector<BYTE> CQuerySequenceNode::m_Distances [private] |
Referenced by AddDistance(), and EvaluateWithoutHits().
vector<CQueryTokenNode*> CQuerySequenceNode::m_Items [private] |
Referenced by Create(), EvaluateWithoutHits(), GetNodeFrequenceByNodeIndex(), and ~CQuerySequenceNode().