#include <enquire.h>
Collaboration diagram for Xapian::ESetIterator:
Public Types | |
typedef std::bidirectional_iterator_tag | iterator_category |
Allow use as an STL iterator. | |
typedef std::string | value_type |
typedef Xapian::termcount_diff | difference_type |
typedef std::string * | pointer |
typedef std::string & | reference |
Public Member Functions | |
ESetIterator () | |
Create an uninitialised iterator; this cannot be used, but is convenient syntactically. | |
~ESetIterator () | |
ESetIterator (const ESetIterator &other) | |
Copying is allowed (and is cheap). | |
void | operator= (const ESetIterator &other) |
Assignment is allowed (and is cheap). | |
ESetIterator & | operator++ () |
Advance the iterator. | |
ESetIterator | operator++ (int) |
Advance the iterator (postfix variant). | |
ESetIterator & | operator-- () |
Decrement the iterator. | |
ESetIterator | operator-- (int) |
Decrement the iterator (postfix variant). | |
const std::string & | operator * () const |
Get the term for the current position. | |
Xapian::weight | get_weight () const |
Get the weight of the term at the current position. | |
std::string | get_description () const |
Return a string describing this object. | |
Private Member Functions | |
ESetIterator (Xapian::termcount index_, const ESet &eset_) | |
Private Attributes | |
Xapian::termcount | index |
ESet | eset |
Friends | |
class | ESet |
bool | operator== (const ESetIterator &a, const ESetIterator &b) |
bool | operator!= (const ESetIterator &a, const ESetIterator &b) |
Definition at line 443 of file enquire.h.
typedef std::bidirectional_iterator_tag Xapian::ESetIterator::iterator_category |
typedef std::string Xapian::ESetIterator::value_type |
typedef std::string* Xapian::ESetIterator::pointer |
typedef std::string& Xapian::ESetIterator::reference |
Xapian::ESetIterator::ESetIterator | ( | Xapian::termcount | index_, | |
const ESet & | eset_ | |||
) | [inline, private] |
Xapian::ESetIterator::ESetIterator | ( | ) | [inline] |
Xapian::ESetIterator::ESetIterator | ( | const ESetIterator & | other | ) | [inline] |
void Xapian::ESetIterator::operator= | ( | const ESetIterator & | other | ) | [inline] |
ESetIterator& Xapian::ESetIterator::operator++ | ( | ) | [inline] |
ESetIterator Xapian::ESetIterator::operator++ | ( | int | ) | [inline] |
ESetIterator& Xapian::ESetIterator::operator-- | ( | ) | [inline] |
ESetIterator Xapian::ESetIterator::operator-- | ( | int | ) | [inline] |
const string & Xapian::ESetIterator::operator * | ( | ) | const |
Get the term for the current position.
Definition at line 545 of file omenquire.cc.
References eset, index, and Xapian::ESet::internal.
Xapian::weight Xapian::ESetIterator::get_weight | ( | ) | const |
Get the weight of the term at the current position.
Definition at line 551 of file omenquire.cc.
References eset, index, and Xapian::ESet::internal.
Referenced by DEFINE_TESTCASE(), and main().
string Xapian::ESetIterator::get_description | ( | ) | const |
Return a string describing this object.
Definition at line 557 of file omenquire.cc.
References index, and om_tostring().
bool operator== | ( | const ESetIterator & | a, | |
const ESetIterator & | b | |||
) | [friend] |
bool operator!= | ( | const ESetIterator & | a, | |
const ESetIterator & | b | |||
) | [friend] |
Xapian::termcount Xapian::ESetIterator::index [private] |
Definition at line 452 of file enquire.h.
Referenced by ESetIterator(), get_description(), get_weight(), operator *(), Xapian::operator!=(), operator=(), and Xapian::operator==().
ESet Xapian::ESetIterator::eset [private] |
Definition at line 453 of file enquire.h.
Referenced by ESetIterator(), get_weight(), operator *(), and operator=().