xapian-core  1.4.21
Public Member Functions | Private Attributes | Friends | List of all members
Xapian::Internal::ExpandTerm Class Reference

Class combining a term and its expand weight. More...

#include <esetinternal.h>

+ Collaboration diagram for Xapian::Internal::ExpandTerm:

Public Member Functions

 ExpandTerm (double wt_, const std::string &term_)
 Constructor. More...
 
void swap (ExpandTerm &o)
 Implement custom swap for ESet sorting efficiency. More...
 
bool operator< (const ExpandTerm &o) const
 Ordering relation for ESet contents. More...
 
std::string get_description () const
 Return a string describing this object. More...
 

Private Attributes

double wt
 The expand weight calculated for this term. More...
 
std::string term
 The term. More...
 

Friends

class Xapian::ESetIterator
 
class Xapian::ESet::Internal
 

Detailed Description

Class combining a term and its expand weight.

Definition at line 42 of file esetinternal.h.

Constructor & Destructor Documentation

◆ ExpandTerm()

Xapian::Internal::ExpandTerm::ExpandTerm ( double  wt_,
const std::string &  term_ 
)
inline

Constructor.

Definition at line 54 of file esetinternal.h.

Member Function Documentation

◆ get_description()

string Xapian::Internal::ExpandTerm::get_description ( ) const

Return a string describing this object.

Definition at line 48 of file esetinternal.cc.

References description_append(), and Xapian::Internal::str().

Referenced by Xapian::ESet::Internal::Internal(), and operator<().

◆ operator<()

bool Xapian::Internal::ExpandTerm::operator< ( const ExpandTerm o) const
inline

Ordering relation for ESet contents.

Definition at line 64 of file esetinternal.h.

References get_description(), term, and wt.

◆ swap()

void Xapian::Internal::ExpandTerm::swap ( ExpandTerm o)
inline

Implement custom swap for ESet sorting efficiency.

Definition at line 58 of file esetinternal.h.

References term, and wt.

Friends And Related Function Documentation

◆ Xapian::ESet::Internal

friend class Xapian::ESet::Internal
friend

Definition at line 44 of file esetinternal.h.

◆ Xapian::ESetIterator

friend class Xapian::ESetIterator
friend

Definition at line 43 of file esetinternal.h.

Member Data Documentation

◆ term

std::string Xapian::Internal::ExpandTerm::term
private

The term.

Definition at line 50 of file esetinternal.h.

Referenced by operator<(), and swap().

◆ wt

double Xapian::Internal::ExpandTerm::wt
private

The expand weight calculated for this term.

Definition at line 47 of file esetinternal.h.

Referenced by operator<(), and swap().


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