ddc
Public Member Functions | Public Attributes | List of all members
CHitToSort Struct Reference

#include <BranchServer.h>

Public Member Functions

 CHitToSort (BYTE HostNo=0)
 
bool operator< (const CHitToSort &X) const
 
void steal (CHitToSort &X)
 
string debugStr (void) const
 

Public Attributes

BYTE m_HostNo
 subcorpus id More...
 
size_t m_HitNo
 subcorpus-local hit-number for context queries OR hit count for count-queries More...
 
string m_SortKeyStr
 hit sort-string More...
 

Detailed Description

single hit data in get_first_hits responses

Constructor & Destructor Documentation

◆ CHitToSort()

CHitToSort::CHitToSort ( BYTE  HostNo = 0)
inline

Member Function Documentation

◆ operator<()

bool CHitToSort::operator< ( const CHitToSort X) const
inline

References m_SortKeyStr.

◆ steal()

void CHitToSort::steal ( CHitToSort X)
inline

steal data from X

References m_HitNo, m_HostNo, and m_SortKeyStr.

Referenced by CFirstHitsQueryResult::CollectCounts(), and CFirstHitsQueryResult::PruneHits().

Here is the caller graph for this function:

◆ debugStr()

string CHitToSort::debugStr ( void  ) const
inline

string form of hit, for debugging messages

References Format(), and jsonStr().

Referenced by CDDCBranchServer::RunGetFirstHits().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_HostNo

BYTE CHitToSort::m_HostNo

subcorpus id

Referenced by CDDCBranchServer::GetHitContexts(), and steal().

◆ m_HitNo

size_t CHitToSort::m_HitNo

◆ m_SortKeyStr

string CHitToSort::m_SortKeyStr

The documentation for this struct was generated from the following file: