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

#include <queryinternal.h>

+ Inheritance diagram for Xapian::Internal::QueryTerm:
+ Collaboration diagram for Xapian::Internal::QueryTerm:

Public Member Functions

 QueryTerm ()
 
 QueryTerm (const std::string &term_, Xapian::termcount wqf_, Xapian::termpos pos_)
 
Xapian::Query::op get_type () const
 
const std::string & get_term () const
 
PostingIterator::Internalpostlist (QueryOptimiser *qopt, double factor) const
 
termcount get_length () const
 
void serialise (std::string &result) const
 
std::string get_description () const
 
void gather_terms (void *void_terms) const
 
- Public Member Functions inherited from Xapian::Query::Internal
 Internal ()
 
virtual ~Internal ()
 
virtual void postlist_sub_and_like (Xapian::Internal::AndContext &ctx, QueryOptimiser *qopt, double factor) const
 
virtual void postlist_sub_or_like (Xapian::Internal::OrContext &ctx, QueryOptimiser *qopt, double factor) const
 
virtual void postlist_sub_xor (Xapian::Internal::XorContext &ctx, QueryOptimiser *qopt, double factor) const
 
virtual size_t get_num_subqueries () const
 
virtual const Query get_subquery (size_t n) const
 
- Public Member Functions inherited from Xapian::Internal::intrusive_base
 intrusive_base ()
 Construct with no references. More...
 

Private Attributes

std::string term
 
Xapian::termcount wqf
 
Xapian::termpos pos
 

Additional Inherited Members

- Static Public Member Functions inherited from Xapian::Query::Internal
static Query::Internalunserialise (const char **p, const char *end, const Registry &reg)
 
- Public Attributes inherited from Xapian::Internal::intrusive_base
unsigned _refs
 Reference count. More...
 

Detailed Description

Definition at line 37 of file queryinternal.h.

Constructor & Destructor Documentation

◆ QueryTerm() [1/2]

Xapian::Internal::QueryTerm::QueryTerm ( )
inline

Definition at line 46 of file queryinternal.h.

◆ QueryTerm() [2/2]

Xapian::Internal::QueryTerm::QueryTerm ( const std::string &  term_,
Xapian::termcount  wqf_,
Xapian::termpos  pos_ 
)
inline

Definition at line 48 of file queryinternal.h.

References get_type(), XAPIAN_NOEXCEPT, and XAPIAN_PURE_FUNCTION.

Member Function Documentation

◆ gather_terms()

void Xapian::Internal::QueryTerm::gather_terms ( void *  void_terms) const
virtual

◆ get_description()

string Xapian::Internal::QueryTerm::get_description ( ) const
virtual

◆ get_length()

termcount Xapian::Internal::QueryTerm::get_length ( ) const
inlinevirtual

◆ get_term()

const std::string& Xapian::Internal::QueryTerm::get_term ( ) const
inline

Definition at line 55 of file queryinternal.h.

References postlist(), and term.

Referenced by Xapian::check_query().

◆ get_type()

Query::op Xapian::Internal::QueryTerm::get_type ( ) const
virtual

◆ postlist()

PostingIterator::Internal * Xapian::Internal::QueryTerm::postlist ( QueryOptimiser qopt,
double  factor 
) const
virtual

◆ serialise()

void Xapian::Internal::QueryTerm::serialise ( std::string &  result) const
virtual

Member Data Documentation

◆ pos

Xapian::termpos Xapian::Internal::QueryTerm::pos
private

Definition at line 42 of file queryinternal.h.

◆ term

std::string Xapian::Internal::QueryTerm::term
private

Definition at line 38 of file queryinternal.h.

Referenced by get_term().

◆ wqf

Xapian::termcount Xapian::Internal::QueryTerm::wqf
private

Definition at line 40 of file queryinternal.h.

Referenced by get_length().


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