xapian-core  1.4.25
Public Member Functions | Private Attributes | List of all members
StringAndFrequency Class Reference

A string with a corresponding frequency. More...

+ Collaboration diagram for StringAndFrequency:

Public Member Functions

 StringAndFrequency (const std::string &str_, Xapian::doccount frequency_)
 Construct a StringAndFrequency object. More...
 
std::string get_string () const
 Return the string. More...
 
Xapian::doccount get_frequency () const
 Return the frequency. More...
 

Private Attributes

std::string str
 
Xapian::doccount frequency
 

Detailed Description

A string with a corresponding frequency.

Definition at line 151 of file matchspy.cc.

Constructor & Destructor Documentation

◆ StringAndFrequency()

StringAndFrequency::StringAndFrequency ( const std::string &  str_,
Xapian::doccount  frequency_ 
)
inline

Construct a StringAndFrequency object.

Definition at line 156 of file matchspy.cc.

Member Function Documentation

◆ get_frequency()

Xapian::doccount StringAndFrequency::get_frequency ( ) const
inline

Return the frequency.

Definition at line 163 of file matchspy.cc.

Referenced by StringAndFreqCmpByFreq::operator()().

◆ get_string()

std::string StringAndFrequency::get_string ( ) const
inline

Return the string.

Definition at line 160 of file matchspy.cc.

References Xapian::Internal::str().

Referenced by StringAndFreqCmpByFreq::operator()().

Member Data Documentation

◆ frequency

Xapian::doccount StringAndFrequency::frequency
private

Definition at line 153 of file matchspy.cc.

◆ str

std::string StringAndFrequency::str
private

Definition at line 152 of file matchspy.cc.


The documentation for this class was generated from the following file: