temporary type for (re-)sorting CQueryResult hits
More...
#include <QueryResult.h>
temporary type for (re-)sorting CQueryResult hits
◆ CQueryResultIndex() [1/3]
CQueryResultIndex::CQueryResultIndex |
( |
const CQueryResult & |
Result | ) |
|
|
inline |
Default constructor creates new trivial hit index.
◆ CQueryResultIndex() [2/3]
CQueryResultIndex::CQueryResultIndex |
( |
const CQueryResult & |
Result, |
|
|
vector< size_t > * |
HitIndex |
|
) |
| |
|
inline |
Constructor for an existing hit index pHitIndex (pointer version)
- caller is responsible for destroying pHitIndex when it is no longer needed
◆ CQueryResultIndex() [3/3]
CQueryResultIndex::CQueryResultIndex |
( |
const CQueryResult & |
Result, |
|
|
vector< size_t > & |
HitIndex |
|
) |
| |
|
inline |
Constructor for an existing hit index HitIndex (reference version)
- caller is responsible for destroying HitIndex when it is no longer needed
◆ ~CQueryResultIndex()
CQueryResultIndex::~CQueryResultIndex |
( |
void |
| ) |
|
|
inline |
◆ Reset()
void CQueryResultIndex::Reset |
( |
void |
| ) |
|
Resets the hit-index to the trivial sequence sort-order.
◆ size()
size_t CQueryResultIndex::size |
( |
void |
| ) |
const |
|
inline |
Wrapper for m_pHitIndex->size()
◆ SortByIndex()
template<typename HitIndexLessThanT >
void CQueryResultIndex::SortByIndex |
( |
HitIndexLessThanT & |
HitIndexLess | ) |
|
|
inline |
sort hit-index by generic index-comparison function
- HitIndexLessThanT must support an
operator() (size_t& a, size_t& b)
returning true iff m_Result.m_Hits[a] < m_Result.m_Hits[b]
Referenced by CQueryResult::SortResultsByIndex().
◆ SortByHit()
template<typename HitLessThanT >
void CQueryResultIndex::SortByHit |
( |
HitLessThanT & |
HitLess | ) |
|
|
inline |
◆ Apply()
void CQueryResultIndex::Apply |
( |
CQueryResult & |
Dst, |
|
|
size_t |
Begin = 0 , |
|
|
size_t |
End = (size_t)-1 |
|
) |
| |
◆ m_Result
result-set containing hits to be indexed/sorted
◆ m_pHitIndex
vector<size_t>* CQueryResultIndex::m_pHitIndex |
hit index: elements are indices into m_Result.m_Hits, sorted in "logical" order
◆ m_bLocalIndex
bool CQueryResultIndex::m_bLocalIndex |
whether m_pHitIndex was created locally (if true, it will be destroyed with this object)
The documentation for this struct was generated from the following files: