ddc
Classes | Macros | Functions
QCount.cpp File Reference
#include "QCount.h"
#include "QueryCompiler.h"
#include "ConcHolder.h"
Include dependency graph for QCount.cpp:

Classes

struct  IsLessByFileNo
 comparison operator for hits on CHit::m_FileNo (for std::sort) More...
 
struct  IsLessByBreakNo
 comparison operator for hits on CHit::m_BreakNo (for std::sort) More...
 
struct  HitLessByCountValue
 direct comparison operator for hits on CHit::m_SortKey.i (for std::sort) More...
 

Macros

#define KEYSDEBUG(code)
 

Functions

static DWORD HitOccurrenceStart (const CHit &Hit, const CConcHolder *holder)
 
static DWORD HitOccurrenceEnd (const CHit &Hit, const CConcHolder *holder)
 
void GenerateCountString (string &ResultStr, DDCFormatTypeEnum fmt, const string &key, size_t count)
 

Macro Definition Documentation

◆ KEYSDEBUG

#define KEYSDEBUG (   code)

Referenced by CQKeys::Compile().

Function Documentation

◆ HitOccurrenceStart()

static DWORD HitOccurrenceStart ( const CHit Hit,
const CConcHolder holder 
)
inlinestatic

get initial occurrence number of Hit

References CQueryResult::m_Hits.

Referenced by CQCountKeyExprToken::Evaluate().

Here is the caller graph for this function:

◆ HitOccurrenceEnd()

static DWORD HitOccurrenceEnd ( const CHit Hit,
const CConcHolder holder 
)
inlinestatic

get first occurence offset after Hit (upper bound)

References CHit::m_HighlightOccurrenceEnd, and CQueryResult::m_HighlightOccurs.

Referenced by CQCountKeyExprToken::Evaluate().

Here is the caller graph for this function:

◆ GenerateCountString()

void GenerateCountString ( string &  ResultStr,
DDCFormatTypeEnum  fmt,
const string &  key,
size_t  count 
)

generate a single count string from a (key,count)-pair

References ConvertASCIIToHtmlSymbols(), DDC_ResultHTML, DDC_ResultJson, DDC_ResultTable, DDC_ResultText, Format(), globalCountKeyDelim, and jsonStr().

Referenced by GenerateCountString(), CConcSession::GenerateCountStrings(), CDDCBranchServer::GetHitCounts(), and CQKeys::jsonClass().

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