ddc
|
navigation hint-key for branch server get_first_hits() "paging" More...
#include <NavHint.h>
Public Member Functions | |
NavHintKey (const string &qstr="", const size_t hitno=0) | |
default constructor More... | |
void | clear () |
clear the object More... | |
bool | operator< (const NavHintKey &X) const |
bool | operator== (const NavHintKey &X) const |
equality operator (for debugging) More... | |
void | assign (const string &qstr, const size_t hitno=0) |
verbose assignment More... | |
NavHintKey & | operator= (const NavHintKey &X) |
assignment operator More... | |
string | toString () const |
debug: native stringification More... | |
void | fromString (const char *s) |
debug: native decoding from string More... | |
string | toJson () const |
debug: JSON stringification More... | |
Public Attributes | |
string | m_QueryStr |
original query string More... | |
size_t | m_HitNo |
maximum logical hit number covered w.r.t. local corpus More... | |
navigation hint-key for branch server get_first_hits() "paging"
|
inline |
default constructor
|
inline |
clear the object
References ClearString().
Referenced by CRunQueryData::Clear(), fromString(), and NavHint::fromString().
|
inline |
comparison operator, for use with map<>
m_QueryStr < X.m_QueryStr || m_HitNo > X.m_HitNo
References m_HitNo, and m_QueryStr.
|
inline |
equality operator (for debugging)
References m_HitNo, and m_QueryStr.
|
inline |
verbose assignment
Referenced by CRunQueryData::Init(), and operator=().
|
inline |
assignment operator
References assign(), m_HitNo, and m_QueryStr.
|
inline |
debug: native stringification
References Format(), fromString(), and toJson().
Referenced by NavHintCache::insert(), NavHintCache::lower_bound(), and NavHint::update().
void NavHintKey::fromString | ( | const char * | s | ) |
debug: native decoding from string
References clear(), m_HitNo, and m_QueryStr.
Referenced by NavHint::NavHint(), NavHint::operator=(), toString(), and NavHint::update().
string NavHintKey::toJson | ( | ) | const |
debug: JSON stringification
References Format(), jsonStr(), m_HitNo, and m_QueryStr.
Referenced by NavHintCache::insert(), toString(), NavHint::update(), and CDDCBranchServer::UpdateNavCache().
string NavHintKey::m_QueryStr |
original query string
Referenced by fromString(), NavHintCache::lower_bound(), operator<(), operator=(), operator==(), and toJson().
size_t NavHintKey::m_HitNo |
maximum logical hit number covered w.r.t. local corpus
Referenced by fromString(), CDDCBranchServer::GetHitContexts(), operator<(), operator=(), operator==(), and toJson().