22 #ifndef XAPIAN_INCLUDED_LEAFPOSTLIST_H    23 #define XAPIAN_INCLUDED_LEAFPOSTLIST_H    56         : weight(0), need_doclength(
false), need_unique_terms(
false),
    79         weight_->
init_(*stats, qlen, term, wqf, factor, 
this);
    83         std::swap(weight, const_weight_);
    87         Assert(get_termfreq() > 0);
    89         double& max_part = stats->
termfreqs[term].max_part;
    90         max_part = std::max(max_part, result);
   105     double get_maxweight() 
const;
   106     double get_weight() 
const;
   107     double recalc_maxweight();
   128     virtual LeafPostList * open_nearby_postlist(
const std::string & term_) 
const;
   139     void set_term(
const std::string & term_) { term = term_; }
   142 #endif // XAPIAN_INCLUDED_LEAFPOSTLIST_H The Xapian namespace contains public interfaces for the Xapian library. 
 
Abstract base class for postlists. 
 
double resolve_lazy_termweight(Xapian::Weight *weight_, Xapian::Weight::Internal *stats, Xapian::termcount qlen, Xapian::termcount wqf, double factor)
 
const Xapian::Weight * weight
 
Abstract base class for leaf postlists. 
 
std::string term
The term name for this postlist (empty for an alldocs postlist). 
 
Abstract base class for postlists. 
 
bool get_sumpart_needs_doclength_() const
 
std::map< std::string, TermFreqs > termfreqs
Map of term frequencies and relevant term frequencies for the collection. 
 
virtual double get_maxpart() const =0
Return an upper bound on what get_sumpart() can return for any document. 
 
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms. 
 
void init_(const Internal &stats, Xapian::termcount query_len_, const std::string &term, Xapian::termcount wqf_, double factor)
 
Class to hold statistics for a given collection. 
 
LeafPostList(const std::string &term_)
Only constructable as a base class for derived classes. 
 
The frequencies for a term. 
 
void set_term(const std::string &term_)
Set the term name. 
 
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents. 
 
Abstract base class for weighting schemes.