InMemoryTermList Class Reference

#include <inmemory_database.h>

Inheritance diagram for InMemoryTermList:

Inheritance graph
[legend]
Collaboration diagram for InMemoryTermList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Xapian::termcount get_approx_size () const
void accumulate_stats (Xapian::Internal::ExpandStats &stats) const
 Collate weighting information for the current term.
string get_termname () const
Xapian::termcount get_wdf () const
Xapian::doccount get_termfreq () const
TermListnext ()
bool at_end () const
Xapian::termcount positionlist_count () const
Xapian::PositionIterator positionlist_begin () const

Private Member Functions

 InMemoryTermList (Xapian::Internal::RefCntPtr< const InMemoryDatabase > db, Xapian::docid did, const InMemoryDoc &doc, Xapian::doclength len)

Private Attributes

vector< InMemoryTermEntry
>::const_iterator 
pos
vector< InMemoryTermEntry
>::const_iterator 
end
Xapian::termcount terms
bool started
Xapian::Internal::RefCntPtr<
const InMemoryDatabase
db
Xapian::docid did
Xapian::doclength document_length

Friends

class InMemoryDatabase

Detailed Description

Definition at line 197 of file inmemory_database.h.


Constructor & Destructor Documentation

InMemoryTermList::InMemoryTermList ( Xapian::Internal::RefCntPtr< const InMemoryDatabase db,
Xapian::docid  did,
const InMemoryDoc doc,
Xapian::doclength  len 
) [private]

Definition at line 181 of file inmemory_database.cc.

References DEBUGLINE, document_length, pos, and terms.


Member Function Documentation

Xapian::termcount InMemoryTermList::get_approx_size (  )  const

Definition at line 211 of file inmemory_database.cc.

References terms.

void InMemoryTermList::accumulate_stats ( Xapian::Internal::ExpandStats stats  )  const

Collate weighting information for the current term.

Definition at line 217 of file inmemory_database.cc.

References Xapian::Internal::ExpandStats::accumulate(), Assert, at_end(), db, document_length, get_termfreq(), get_wdf(), and started.

string InMemoryTermList::get_termname (  )  const

Definition at line 227 of file inmemory_database.cc.

References Assert, at_end(), and started.

Xapian::termcount InMemoryTermList::get_wdf (  )  const

Definition at line 194 of file inmemory_database.cc.

References Assert, at_end(), and started.

Referenced by accumulate_stats().

Xapian::doccount InMemoryTermList::get_termfreq (  )  const

Definition at line 202 of file inmemory_database.cc.

References Assert, at_end(), db, and started.

Referenced by accumulate_stats().

TermList * InMemoryTermList::next (  ) 

Definition at line 235 of file inmemory_database.cc.

References Assert, at_end(), pos, and started.

bool InMemoryTermList::at_end (  )  const

Definition at line 247 of file inmemory_database.cc.

References Assert, end, pos, and started.

Referenced by accumulate_stats(), get_termfreq(), get_termname(), get_wdf(), and next().

Xapian::termcount InMemoryTermList::positionlist_count (  )  const

Definition at line 254 of file inmemory_database.cc.

References db, and did.

Xapian::PositionIterator InMemoryTermList::positionlist_begin (  )  const

Definition at line 260 of file inmemory_database.cc.

References db, and did.


Friends And Related Function Documentation

friend class InMemoryDatabase [friend]

Definition at line 198 of file inmemory_database.h.


Member Data Documentation

vector<InMemoryTermEntry>::const_iterator InMemoryTermList::pos [private]

Definition at line 200 of file inmemory_database.h.

Referenced by at_end(), InMemoryTermList(), and next().

vector<InMemoryTermEntry>::const_iterator InMemoryTermList::end [private]

Definition at line 201 of file inmemory_database.h.

Referenced by at_end().

Xapian::termcount InMemoryTermList::terms [private]

Reimplemented from TermList.

Definition at line 202 of file inmemory_database.h.

Referenced by get_approx_size(), and InMemoryTermList().

bool InMemoryTermList::started [private]

Definition at line 203 of file inmemory_database.h.

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

Xapian::Internal::RefCntPtr<const InMemoryDatabase> InMemoryTermList::db [private]

Definition at line 205 of file inmemory_database.h.

Referenced by accumulate_stats(), get_termfreq(), positionlist_begin(), and positionlist_count().

Xapian::docid InMemoryTermList::did [private]

Definition at line 206 of file inmemory_database.h.

Referenced by positionlist_begin(), and positionlist_count().

Xapian::doclength InMemoryTermList::document_length [private]

Definition at line 207 of file inmemory_database.h.

Referenced by accumulate_stats(), and InMemoryTermList().


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.