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_)
 Constructor.
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)
 Skip forward to the specified term.
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
string prefix


Detailed Description

class for alltermslists over several databases

Definition at line 29 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_ 
) [inline]

Constructor.

Definition at line 48 of file inmemory_alltermslist.h.


Member Function Documentation

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 97 of file inmemory_alltermslist.cc.

References Assert, database, it, and tmap.

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

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

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

Implements AllTermsList.

Definition at line 47 of file inmemory_alltermslist.cc.

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

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

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

Implements AllTermsList.

Definition at line 37 of file inmemory_alltermslist.cc.

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

string InMemoryAllTermsList::get_termname (  )  const [virtual]

Return the termname at the current position.

Implements AllTermsList.

Definition at line 28 of file inmemory_alltermslist.cc.

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

TermList * InMemoryAllTermsList::next (  )  [virtual]

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

Implements AllTermsList.

Definition at line 81 of file inmemory_alltermslist.cc.

References Assert, database, it, prefix, startswith(), and tmap.

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

Assignment is not allowed.

TermList * InMemoryAllTermsList::skip_to ( const string &  term  )  [virtual]

Skip forward to the specified term.

If the specified term isn't in the list, position ourselves on the first term after term (or at_end() if no terms after term exist).

Implements AllTermsList.

Definition at line 56 of file inmemory_alltermslist.cc.

References Assert, database, it, prefix, startswith(), and tmap.


Member Data Documentation

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

string InMemoryAllTermsList::prefix [private]

Definition at line 44 of file inmemory_alltermslist.h.

Referenced by next(), and skip_to().

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

Definition at line 38 of file inmemory_alltermslist.h.

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


The documentation for this class was generated from the following files:

Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.