22 #ifndef XAPIAN_INCLUDED_ESET_H 23 #define XAPIAN_INCLUDED_ESET_H 25 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD 26 # error Never use <xapian/eset.h> directly; include <xapian.h> instead. 64 #ifdef XAPIAN_MOVE_SEMANTICS 85 bool empty()
const {
return size() == 0; }
110 std::string get_description()
const;
164 : eset(eset_), off_from_end(off_from_end_) { }
262 return difference_type(o.
off_from_end) - difference_type(off_from_end);
266 double get_weight()
const;
269 std::string get_description()
const;
368 #endif // XAPIAN_INCLUDED_ESET_H difference_type operator-(const ESetIterator &o) const
Return the number of positions between o and this iterator.
std::random_access_iterator_tag iterator_category
The Xapian namespace contains public interfaces for the Xapian library.
bool operator>=(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
Xapian::ESetIterator value_type
Xapian::termcount_diff difference_type
ESetIterator back() const
Return iterator pointing to the last object in this ESet.
void swap(ESet &o)
Efficiently swap this ESet object with another.
Class which actually implements Xapian::ESet.
ESetIterator operator--(int)
Move the iterator to the previous position (postfix version).
Compiler attribute macros.
bool operator!=(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
bool operator==(const ESetIterator &a, const ESetIterator &b)
Equality test for ESetIterator objects.
#define XAPIAN_VISIBILITY_DEFAULT
bool operator<(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
ESetIterator & operator--()
Move the iterator to the previous position.
ESetIterator & operator+=(difference_type n)
Move the iterator forwards by n positions.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
ESetIterator begin() const
Return iterator pointing to the first item in this ESet.
ESetIterator operator++(int)
Advance the iterator to the next position (postfix version).
ESetIterator operator-(difference_type n) const
Return the iterator decremented by n positions.
bool operator<=(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
Define XAPIAN_VISIBILITY_* macros.
ESetIterator operator+(difference_type n) const
Return the iterator incremented by n positions.
ESetIterator()
Create an unpositioned ESetIterator.
bool operator>(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
Xapian::ESetIterator const_iterator
ESetIterator operator[](Xapian::doccount i) const
Return iterator pointing to the i-th object in this ESet.
Iterator over a Xapian::ESet.
Xapian::Internal::intrusive_ptr< Internal > internal
Xapian::doccount max_size() const
XAPIAN_TERMCOUNT_BASE_TYPE termcount_diff
A signed difference between two counts of terms.
Xapian::termcount size_type
const Query operator*(double factor, const Query &q)
Scale a Xapian::Query object using OP_SCALE_WEIGHT.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
ESetIterator operator+(ESetIterator::difference_type n, const ESetIterator &it)
Return ESetIterator it incremented by n positions.
Xapian::ESet::size_type off_from_end
ESetIterator(const Xapian::ESet &eset_, Xapian::doccount off_from_end_)
Xapian::termcount_diff difference_type
const value_type * const_pointer
Class representing a list of search results.
ESetIterator & operator++()
Advance the iterator to the next position.
const value_type & const_reference
bool empty() const
Return true if this ESet object is empty.
ESetIterator & operator-=(difference_type n)
Move the iterator back by n positions.
A smart pointer that uses intrusive reference counting.
ESetIterator end() const
Return iterator pointing to just after the last item in this ESet.
Xapian::ESetIterator iterator