Xapian::ESetIterator Class Reference

Iterate through terms in the ESet. More...

#include <enquire.h>

Collaboration diagram for Xapian::ESetIterator:

Collaboration graph
[legend]
List of all members.

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).
ESetIteratoroperator++ ()
 Advance the iterator.
ESetIterator operator++ (int)
 Advance the iterator (postfix variant).
ESetIteratoroperator-- ()
 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)

Detailed Description

Iterate through terms in the ESet.

Definition at line 443 of file enquire.h.


Member Typedef Documentation

typedef std::bidirectional_iterator_tag Xapian::ESetIterator::iterator_category

Allow use as an STL iterator.

Definition at line 512 of file enquire.h.

typedef std::string Xapian::ESetIterator::value_type

Definition at line 513 of file enquire.h.

typedef Xapian::termcount_diff Xapian::ESetIterator::difference_type

Definition at line 514 of file enquire.h.

typedef std::string* Xapian::ESetIterator::pointer

Definition at line 515 of file enquire.h.

typedef std::string& Xapian::ESetIterator::reference

Definition at line 516 of file enquire.h.


Constructor & Destructor Documentation

Xapian::ESetIterator::ESetIterator ( Xapian::termcount  index_,
const ESet eset_ 
) [inline, private]

Definition at line 449 of file enquire.h.

Xapian::ESetIterator::ESetIterator (  )  [inline]

Create an uninitialised iterator; this cannot be used, but is convenient syntactically.

Definition at line 459 of file enquire.h.

Xapian::ESetIterator::~ESetIterator (  )  [inline]

Definition at line 461 of file enquire.h.

Xapian::ESetIterator::ESetIterator ( const ESetIterator other  )  [inline]

Copying is allowed (and is cheap).

Definition at line 464 of file enquire.h.

References eset, and index.


Member Function Documentation

void Xapian::ESetIterator::operator= ( const ESetIterator other  )  [inline]

Assignment is allowed (and is cheap).

Definition at line 470 of file enquire.h.

References eset, and index.

ESetIterator& Xapian::ESetIterator::operator++ (  )  [inline]

Advance the iterator.

Definition at line 476 of file enquire.h.

ESetIterator Xapian::ESetIterator::operator++ ( int   )  [inline]

Advance the iterator (postfix variant).

Definition at line 482 of file enquire.h.

ESetIterator& Xapian::ESetIterator::operator-- (  )  [inline]

Decrement the iterator.

Definition at line 489 of file enquire.h.

ESetIterator Xapian::ESetIterator::operator-- ( int   )  [inline]

Decrement the iterator (postfix variant).

Definition at line 495 of file enquire.h.

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().


Friends And Related Function Documentation

friend class ESet [friend]

Definition at line 445 of file enquire.h.

bool operator== ( const ESetIterator a,
const ESetIterator b 
) [friend]

Definition at line 520 of file enquire.h.

bool operator!= ( const ESetIterator a,
const ESetIterator b 
) [friend]

Definition at line 525 of file enquire.h.


Member Data Documentation

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=().


The documentation for this class was generated from the following files:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.