VectorTermList Class Reference

#include <vectortermlist.h>

Inheritance diagram for VectorTermList:

Inheritance graph
[legend]
Collaboration diagram for VectorTermList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VectorTermList (vector< string >::const_iterator begin, vector< string >::const_iterator end)
 VectorTermList (list< string >::const_iterator begin, list< string >::const_iterator end)
Xapian::termcount get_approx_size () const
string get_termname () const
Xapian::termcount get_wdf () const
Xapian::doccount get_termfreq () const
TermListnext ()
 next() causes the TermList to move to the next term in the list.
TermListskip_to (const string &)
bool at_end () const
Xapian::PositionIterator positionlist_begin () const
Xapian::termcount positionlist_count () const

Private Attributes

vector< string > terms
vector< string >::size_type offset
bool before_start

Detailed Description

Definition at line 34 of file vectortermlist.h.


Constructor & Destructor Documentation

VectorTermList::VectorTermList ( vector< string >::const_iterator  begin,
vector< string >::const_iterator  end 
) [inline]

Definition at line 41 of file vectortermlist.h.

VectorTermList::VectorTermList ( list< string >::const_iterator  begin,
list< string >::const_iterator  end 
) [inline]

Definition at line 47 of file vectortermlist.h.


Member Function Documentation

Xapian::termcount VectorTermList::get_approx_size (  )  const [inline]

Definition at line 54 of file vectortermlist.h.

References terms.

string VectorTermList::get_termname (  )  const [inline]

Definition at line 59 of file vectortermlist.h.

References Assert, before_start, offset, and terms.

Xapian::termcount VectorTermList::get_wdf (  )  const [inline]

Definition at line 65 of file vectortermlist.h.

References Assert, before_start, offset, and terms.

Xapian::doccount VectorTermList::get_termfreq (  )  const [inline]

Definition at line 71 of file vectortermlist.h.

TermList* VectorTermList::next (  )  [inline]

next() causes the TermList to move to the next term in the list.

It must be called before any other methods. If next() returns a non-zero pointer P, then the original termlist should be deleted, and the original pointer replaced with P. In a leaf TermList, next() will always return 0.

Definition at line 82 of file vectortermlist.h.

References Assert, at_end(), before_start, and offset.

TermList* VectorTermList::skip_to ( const string &   )  [inline]

Definition at line 91 of file vectortermlist.h.

References Assert, and at_end().

bool VectorTermList::at_end (  )  const [inline]

Definition at line 99 of file vectortermlist.h.

References before_start, offset, and terms.

Referenced by next(), and skip_to().

Xapian::PositionIterator VectorTermList::positionlist_begin (  )  const [inline]

Definition at line 103 of file vectortermlist.h.

Xapian::termcount VectorTermList::positionlist_count (  )  const [inline]

Definition at line 107 of file vectortermlist.h.


Member Data Documentation

vector<string> VectorTermList::terms [private]

Reimplemented from TermList.

Definition at line 36 of file vectortermlist.h.

Referenced by at_end(), get_approx_size(), get_termname(), and get_wdf().

vector<string>::size_type VectorTermList::offset [private]

Definition at line 37 of file vectortermlist.h.

Referenced by at_end(), get_termname(), get_wdf(), and next().

bool VectorTermList::before_start [private]

Definition at line 38 of file vectortermlist.h.

Referenced by at_end(), get_termname(), get_wdf(), and next().


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