xapian-core  2.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
HoneySynonymTermList Class Reference

#include <honey_synonym.h>

+ Inheritance diagram for HoneySynonymTermList:
+ Collaboration diagram for HoneySynonymTermList:

Public Member Functions

 HoneySynonymTermList (const HoneyDatabase *database_, HoneyCursor *cursor_, std::string_view prefix_)
 
 ~HoneySynonymTermList ()
 Destructor. More...
 
Xapian::termcount get_approx_size () const
 Return approximate size of this termlist. More...
 
Xapian::doccount get_termfreq () const
 Return the term frequency for the term at the current position. More...
 
TermListnext ()
 Advance to the next term in the list. More...
 
TermListskip_to (std::string_view term)
 Advance to the first term which is >= term. More...
 
- Public Member Functions inherited from AllTermsList
virtual Xapian::termcount get_wdf () const
 Return the wdf for the term at the current position. More...
 
virtual Xapian::termcount positionlist_count () const
 Return true if the current position is past the last term in this list. More...
 
virtual PositionListpositionlist_begin () const
 Return a PositionIterator for the current position. More...
 
- Public Member Functions inherited from Xapian::TermIterator::Internal
virtual ~Internal ()
 We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor. More...
 
virtual void accumulate_stats (Xapian::Internal::ExpandStats &stats) const
 Collate weighting information for the current term. More...
 
const std::string & get_termname () const
 Return the termname at the current position. More...
 
virtual const Xapian::VecCOW< Xapian::termpos > * get_vec_termpos () const
 Get pointer to VecCOW<termpos> if that's the internal representation. More...
 
- Public Member Functions inherited from Xapian::Internal::intrusive_base
 intrusive_base ()
 Construct with no references. More...
 

Private Member Functions

 HoneySynonymTermList (const HoneySynonymTermList &)
 Copying is not allowed. More...
 
void operator= (const HoneySynonymTermList &)
 Assignment is not allowed. More...
 

Private Attributes

Xapian::Internal::intrusive_ptr< const HoneyDatabasedatabase
 Keep a reference to our database to stop it being deleted. More...
 
HoneyCursorcursor
 A cursor which runs through the synonym table reading termnames from the keys. More...
 
std::string prefix
 The prefix to restrict the terms to. More...
 

Additional Inherited Members

- Public Attributes inherited from Xapian::TermIterator::Internal
size_t shard_index = 0
 Which shard of a multidatabase this is from. More...
 
- Public Attributes inherited from Xapian::Internal::intrusive_base
unsigned _refs
 Reference count. More...
 
- Protected Member Functions inherited from AllTermsList
 AllTermsList ()
 Only constructable as a base class for derived classes. More...
 
- Protected Member Functions inherited from Xapian::TermIterator::Internal
 Internal ()
 Only constructable as a base class for derived classes. More...
 
- Protected Attributes inherited from Xapian::TermIterator::Internal
std::string current_term
 The current term. More...
 

Detailed Description

Definition at line 124 of file honey_synonym.h.

Constructor & Destructor Documentation

◆ HoneySynonymTermList() [1/2]

HoneySynonymTermList::HoneySynonymTermList ( const HoneySynonymTermList )
private

Copying is not allowed.

◆ HoneySynonymTermList() [2/2]

HoneySynonymTermList::HoneySynonymTermList ( const HoneyDatabase database_,
HoneyCursor cursor_,
std::string_view  prefix_ 
)
inline

Definition at line 143 of file honey_synonym.h.

References cursor, and HoneyCursor::to_end().

◆ ~HoneySynonymTermList()

HoneySynonymTermList::~HoneySynonymTermList ( )

Destructor.

Definition at line 171 of file honey_synonym.cc.

References LOGCALL_DTOR.

Member Function Documentation

◆ get_approx_size()

Xapian::termcount HoneySynonymTermList::get_approx_size ( ) const
virtual

Return approximate size of this termlist.

Implements AllTermsList.

Definition at line 178 of file honey_synonym.cc.

◆ get_termfreq()

Xapian::doccount HoneySynonymTermList::get_termfreq ( ) const
virtual

Return the term frequency for the term at the current position.

Implements AllTermsList.

Definition at line 186 of file honey_synonym.cc.

◆ next()

TermList * HoneySynonymTermList::next ( )
virtual

Advance to the next term in the list.

Implements AllTermsList.

Definition at line 193 of file honey_synonym.cc.

References LOGCALL, RETURN, and startswith().

◆ operator=()

void HoneySynonymTermList::operator= ( const HoneySynonymTermList )
private

Assignment is not allowed.

◆ skip_to()

TermList * HoneySynonymTermList::skip_to ( std::string_view  term)
virtual

Advance to the first term which is >= term.

Implements AllTermsList.

Definition at line 213 of file honey_synonym.cc.

References LOGCALL, RETURN, startswith(), and term.

Member Data Documentation

◆ cursor

HoneyCursor* HoneySynonymTermList::cursor
private

A cursor which runs through the synonym table reading termnames from the keys.

Definition at line 137 of file honey_synonym.h.

Referenced by HoneySynonymTermList().

◆ database

Xapian::Internal::intrusive_ptr<const HoneyDatabase> HoneySynonymTermList::database
private

Keep a reference to our database to stop it being deleted.

Definition at line 132 of file honey_synonym.h.

◆ prefix

std::string HoneySynonymTermList::prefix
private

The prefix to restrict the terms to.

Definition at line 140 of file honey_synonym.h.


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