NCBI C++ ToolKit
Public Member Functions | Protected Attributes | List of all members
CQueryHighlightFunction Class Reference

Search Toolkit Book for CQueryHighlightFunction

Class for extracting positions of data fields from the query. More...

+ Collaboration diagram for CQueryHighlightFunction:

Public Member Functions

 CQueryHighlightFunction ()
 
std::vector< std::pair< size_t, size_t > > GetFieldPositions () const
 
ETreeTraverseCode operator() (const CTreeNode< CQueryParseNode > &tr, int delta)
 

Protected Attributes

std::vector< std::pair< size_t, size_t > > m_FieldPositions
 

Detailed Description

Class for extracting positions of data fields from the query.

A data field is a query string token that matches a name in the dictionary.

Definition at line 883 of file query_parse_panel.cpp.

Constructor & Destructor Documentation

◆ CQueryHighlightFunction()

CQueryHighlightFunction::CQueryHighlightFunction ( )
inline

Definition at line 886 of file query_parse_panel.cpp.

Member Function Documentation

◆ GetFieldPositions()

std::vector<std::pair<size_t, size_t> > CQueryHighlightFunction::GetFieldPositions ( ) const
inline

Definition at line 889 of file query_parse_panel.cpp.

Referenced by CQueryParsePanel::x_IsValidQuery().

◆ operator()()

ETreeTraverseCode CQueryHighlightFunction::operator() ( const CTreeNode< CQueryParseNode > &  tr,
int  delta 
)
inline

Member Data Documentation

◆ m_FieldPositions

std::vector<std::pair<size_t, size_t> > CQueryHighlightFunction::m_FieldPositions
protected

Definition at line 917 of file query_parse_panel.cpp.


The documentation for this class was generated from the following file:
Modified on Fri Sep 20 14:58:10 2024 by modify_doxy.py rev. 669887