InMemoryAllTermsList Class Reference

class for alltermslists over several databases More...

#include <inmemory_alltermslist.h>

Inheritance diagram for InMemoryAllTermsList:

Inheritance graph
[legend]
Collaboration diagram for InMemoryAllTermsList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InMemoryAllTermsList (const std::map< string, InMemoryTerm > *tmap_, Xapian::Internal::RefCntPtr< const InMemoryDatabase > database_, const string &prefix)
 Standard constructor for base class.
 ~InMemoryAllTermsList ()
 Standard destructor for base class.
string get_termname () const
 Return the termname at the current position.
Xapian::doccount get_termfreq () const
 Return the term frequency for the term at the current position.
Xapian::termcount get_collection_freq () const
 Return the collection frequency for the term at the current position.
TermListskip_to (const string &tname)
TermListnext ()
 next() causes the AllTermsList to move to the next term in the list.
bool at_end () const
 Return true if the current position is past the last term in this list.

Private Member Functions

 InMemoryAllTermsList (const InMemoryAllTermsList &)
 Copying is not allowed.
void operator= (const InMemoryAllTermsList &)
 Assignment is not allowed.

Private Attributes

const std::map< string, InMemoryTerm > * tmap
std::map< string, InMemoryTerm
>::const_iterator 
it
Xapian::Internal::RefCntPtr<
const InMemoryDatabase
database
bool started
string prefix

Detailed Description

class for alltermslists over several databases

Definition at line 31 of file inmemory_alltermslist.h.


Constructor & Destructor Documentation

InMemoryAllTermsList::InMemoryAllTermsList ( const InMemoryAllTermsList  )  [private]

Copying is not allowed.

InMemoryAllTermsList::InMemoryAllTermsList ( const std::map< string, InMemoryTerm > *  tmap_,
Xapian::Internal::RefCntPtr< const InMemoryDatabase database_,
const string &  prefix 
)

Standard constructor for base class.

Definition at line 27 of file inmemory_alltermslist.cc.

InMemoryAllTermsList::~InMemoryAllTermsList (  ) 

Standard destructor for base class.

Definition at line 34 of file inmemory_alltermslist.cc.


Member Function Documentation

void InMemoryAllTermsList::operator= ( const InMemoryAllTermsList  )  [private]

Assignment is not allowed.

string InMemoryAllTermsList::get_termname (  )  const [virtual]

Return the termname at the current position.

Implements AllTermsList.

Definition at line 39 of file inmemory_alltermslist.cc.

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

Referenced by skip_to().

Xapian::doccount InMemoryAllTermsList::get_termfreq (  )  const [virtual]

Return the term frequency for the term at the current position.

Implements AllTermsList.

Definition at line 47 of file inmemory_alltermslist.cc.

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

Xapian::termcount InMemoryAllTermsList::get_collection_freq (  )  const [virtual]

Return the collection frequency for the term at the current position.

Implements AllTermsList.

Definition at line 56 of file inmemory_alltermslist.cc.

References Assert, at_end(), and started.

TermList * InMemoryAllTermsList::skip_to ( const string &  tname  ) 

Definition at line 64 of file inmemory_alltermslist.cc.

References Assert, at_end(), get_termname(), it, prefix, started, startswith(), and tmap.

TermList * InMemoryAllTermsList::next (  )  [virtual]

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

Implements AllTermsList.

Definition at line 84 of file inmemory_alltermslist.cc.

References Assert, at_end(), it, prefix, started, startswith(), and tmap.

bool InMemoryAllTermsList::at_end (  )  const [virtual]

Return true if the current position is past the last term in this list.

Implements AllTermsList.

Definition at line 100 of file inmemory_alltermslist.cc.

References Assert, it, started, and tmap.

Referenced by get_collection_freq(), get_termfreq(), get_termname(), next(), and skip_to().


Member Data Documentation

const std::map<string, InMemoryTerm>* InMemoryAllTermsList::tmap [private]

Definition at line 40 of file inmemory_alltermslist.h.

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

std::map<string, InMemoryTerm>::const_iterator InMemoryAllTermsList::it [private]

Definition at line 42 of file inmemory_alltermslist.h.

Referenced by at_end(), get_termfreq(), get_termname(), next(), and skip_to().

Xapian::Internal::RefCntPtr<const InMemoryDatabase> InMemoryAllTermsList::database [private]

Definition at line 44 of file inmemory_alltermslist.h.

bool InMemoryAllTermsList::started [private]

Definition at line 46 of file inmemory_alltermslist.h.

Referenced by at_end(), get_collection_freq(), get_termfreq(), get_termname(), next(), and skip_to().

string InMemoryAllTermsList::prefix [private]

Definition at line 48 of file inmemory_alltermslist.h.

Referenced by next(), and skip_to().


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.