xapian-core  1.4.27
Public Member Functions | Public Attributes | List of all members
TermFreqs Struct Reference

The frequencies for a term. More...

#include <weightinternal.h>

Public Member Functions

 TermFreqs ()
 
 TermFreqs (Xapian::doccount termfreq_, Xapian::doccount reltermfreq_, Xapian::termcount collfreq_, double max_part_=0.0)
 
void operator+= (const TermFreqs &other)
 
std::string get_description () const
 Return a std::string describing this object. More...
 

Public Attributes

Xapian::doccount termfreq = 0
 
Xapian::doccount reltermfreq = 0
 
Xapian::termcount collfreq = 0
 
double max_part = 0.0
 

Detailed Description

The frequencies for a term.

Definition at line 39 of file weightinternal.h.

Constructor & Destructor Documentation

◆ TermFreqs() [1/2]

TermFreqs::TermFreqs ( )
inline

Definition at line 46 of file weightinternal.h.

◆ TermFreqs() [2/2]

TermFreqs::TermFreqs ( Xapian::doccount  termfreq_,
Xapian::doccount  reltermfreq_,
Xapian::termcount  collfreq_,
double  max_part_ = 0.0 
)
inline

Definition at line 47 of file weightinternal.h.

Member Function Documentation

◆ get_description()

string TermFreqs::get_description ( ) const

Return a std::string describing this object.

Definition at line 39 of file weightinternal.cc.

References Xapian::Internal::str().

Referenced by operator+=(), and Xapian::Weight::Internal::set_bounds_from_db().

◆ operator+=()

void TermFreqs::operator+= ( const TermFreqs other)
inline

Member Data Documentation

◆ collfreq

Xapian::termcount TermFreqs::collfreq = 0

◆ max_part

double TermFreqs::max_part = 0.0

Definition at line 44 of file weightinternal.h.

Referenced by Xapian::Weight::Internal::get_max_termweight(), and operator+=().

◆ reltermfreq

Xapian::doccount TermFreqs::reltermfreq = 0

◆ termfreq

Xapian::doccount TermFreqs::termfreq = 0

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