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

ExpandDecider subclass which rejects terms using two ExpandDeciders. More...

#include <expanddecider.h>

+ Inheritance diagram for Xapian::ExpandDeciderAnd:
+ Collaboration diagram for Xapian::ExpandDeciderAnd:

Public Member Functions

 ExpandDeciderAnd (const ExpandDecider &first_, const ExpandDecider &second_)
 Terms will be checked with first, and if accepted, then checked with second. More...
 
 ExpandDeciderAnd (const ExpandDecider *first_, const ExpandDecider *second_)
 Compatibility method. 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

Internal::opt_intrusive_ptr< const ExpandDeciderfirst
 
Internal::opt_intrusive_ptr< const ExpandDecidersecond
 

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 rejects terms using two ExpandDeciders.

Terms are only accepted if they are accepted by both of the specified ExpandDecider objects.

Definition at line 88 of file expanddecider.h.

Constructor & Destructor Documentation

◆ ExpandDeciderAnd() [1/2]

Xapian::ExpandDeciderAnd::ExpandDeciderAnd ( const ExpandDecider first_,
const ExpandDecider second_ 
)
inline

Terms will be checked with first, and if accepted, then checked with second.

Parameters
first_First ExpandDecider object to test with.
second_ExpandDecider object to test with if first_ accepts.

Definition at line 98 of file expanddecider.h.

◆ ExpandDeciderAnd() [2/2]

Xapian::ExpandDeciderAnd::ExpandDeciderAnd ( const ExpandDecider first_,
const ExpandDecider second_ 
)
inline

Compatibility method.

Parameters
first_First ExpandDecider object to test with.
second_ExpandDecider object to test with if first_ accepts.

Definition at line 107 of file expanddecider.h.

Member Function Documentation

◆ operator()()

bool Xapian::ExpandDeciderAnd::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 33 of file expanddecider.cc.

Member Data Documentation

◆ first

Internal::opt_intrusive_ptr<const ExpandDecider> Xapian::ExpandDeciderAnd::first
private

Definition at line 89 of file expanddecider.h.

◆ second

Internal::opt_intrusive_ptr<const ExpandDecider> Xapian::ExpandDeciderAnd::second
private

Definition at line 89 of file expanddecider.h.


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