xapian-core  1.4.27
Public Member Functions | Private Attributes | List of all members
Xapian::ExpandDeciderFilterPrefix Class Reference

ExpandDecider subclass which restrict terms to a particular prefix. More...

#include <expanddecider.h>

+ Inheritance diagram for Xapian::ExpandDeciderFilterPrefix:
+ Collaboration diagram for Xapian::ExpandDeciderFilterPrefix:

Public Member Functions

 ExpandDeciderFilterPrefix (const std::string &prefix_)
 The parameter specify the prefix of terms to be retained. More...
 
virtual bool operator() (const std::string &term) const
 Do we want this term in the ESet? More...
 
- Public Member Functions inherited from Xapian::ExpandDecider
 ExpandDecider ()
 Default constructor. More...
 
virtual ~ExpandDecider ()
 Virtual destructor, because we have virtual methods. More...
 
ExpandDeciderrelease ()
 Start reference counting this object. More...
 
const ExpandDeciderrelease () const
 Start reference counting this object. More...
 
- Public Member Functions inherited from Xapian::Internal::opt_intrusive_base
 opt_intrusive_base (const opt_intrusive_base &)
 
opt_intrusive_baseoperator= (const opt_intrusive_base &)
 
 opt_intrusive_base ()
 Construct object which is initially not reference counted. More...
 
virtual ~opt_intrusive_base ()
 
void ref () const
 
void unref () const
 

Private Attributes

std::string prefix
 

Additional Inherited Members

- Public Attributes inherited from Xapian::Internal::opt_intrusive_base
unsigned _refs
 Reference count. More...
 
- Protected Member Functions inherited from Xapian::Internal::opt_intrusive_base
void release () const
 Start reference counting. More...
 

Detailed Description

ExpandDecider subclass which restrict terms to a particular prefix.

ExpandDeciderFilterPrefix provides an easy way to choose terms with a particular prefix when generating an ESet.

Definition at line 143 of file expanddecider.h.

Constructor & Destructor Documentation

◆ ExpandDeciderFilterPrefix()

Xapian::ExpandDeciderFilterPrefix::ExpandDeciderFilterPrefix ( const std::string &  prefix_)
inlineexplicit

The parameter specify the prefix of terms to be retained.

Parameters
prefix_restrict terms to the particular prefix_

Definition at line 150 of file expanddecider.h.

Member Function Documentation

◆ operator()()

bool Xapian::ExpandDeciderFilterPrefix::operator() ( const std::string &  term) const
virtual

Do we want this term in the ESet?

Parameters
termThe term to test.

Implements Xapian::ExpandDecider.

Definition at line 50 of file expanddecider.cc.

References startswith().

Member Data Documentation

◆ prefix

std::string Xapian::ExpandDeciderFilterPrefix::prefix
private

Definition at line 144 of file expanddecider.h.


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