Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

InvFPTermList Class Reference

#include <InvFPTermList.hpp>

Inheritance diagram for InvFPTermList:

TermInfoList InvFPTermPropList List of all members.

Public Methods

 InvFPTermList ()
 InvFPTermList (int did, int len, vector< LocatedTerm > &tls)
 ~InvFPTermList ()
void startIteration ()
 prepare iteration

bool hasMore ()
 has more entries

TermInfonextEntry ()
 Get a pointer to the next entry (pointer to a local static memory).

int docLength ()
 Get the length of this document.

int termCount ()
 Get the number of terms in this document.

int docID ()
 Get the docid this list is for.

bool binRead (ifstream &infile)
bool binReadC (ifstream &infile)
 Read in a compressed TermInfoList object from a file.

void binWriteC (ofstream &ofile)
 Write a compressed TermInfoList object to a file.

bool binReadC (File &infile)
void binWriteC (File &outfile)
virtual void deltaDecode ()
virtual void deltaEncode ()
void countTerms ()
 Change our default sequence of words representation to be bag of words.


Protected Attributes

DOCID_T uid
int length
LocatedTermlist
LLTermlistcounted
int listlen
int index
int * counts
InvFPTerm entry
vector< int > loclist

Constructor & Destructor Documentation

InvFPTermList::InvFPTermList  
 

InvFPTermList::InvFPTermList int    did,
int    len,
vector< LocatedTerm > &    tls
 

InvFPTermList::~InvFPTermList  
 


Member Function Documentation

bool InvFPTermList::binRead ifstream &    infile
 

Read in a TermInfoList object from a file Assumes the following format: DOCID DOCLENGTH UNIQUE_TERM_COUNT [TERM LOC]..[]

bool InvFPTermList::binReadC File   infile
 

bool InvFPTermList::binReadC ifstream &    infile
 

Read in a compressed TermInfoList object from a file.

void InvFPTermList::binWriteC File   outfile
 

void InvFPTermList::binWriteC ofstream &    ofile
 

Write a compressed TermInfoList object to a file.

void InvFPTermList::countTerms  
 

Change our default sequence of words representation to be bag of words.

void InvFPTermList::deltaDecode   [virtual]
 

delta decode termids and positions from begin through end call after read

void InvFPTermList::deltaEncode   [virtual]
 

delta encode termids and positions from begin through end call before write

int InvFPTermList::docID   [inline]
 

Get the docid this list is for.

int InvFPTermList::docLength   [inline]
 

Get the length of this document.

bool InvFPTermList::hasMore   [virtual]
 

has more entries

Implements TermInfoList.

TermInfo * InvFPTermList::nextEntry   [virtual]
 

Get a pointer to the next entry (pointer to a local static memory).

Implements TermInfoList.

void InvFPTermList::startIteration   [virtual]
 

prepare iteration

Implements TermInfoList.

int InvFPTermList::termCount   [inline]
 

Get the number of terms in this document.


Member Data Documentation

int* InvFPTermList::counts [protected]
 

InvFPTerm InvFPTermList::entry [protected]
 

int InvFPTermList::index [protected]
 

int InvFPTermList::length [protected]
 

LocatedTerm* InvFPTermList::list [protected]
 

LLTerm* InvFPTermList::listcounted [protected]
 

int InvFPTermList::listlen [protected]
 

vector<int> InvFPTermList::loclist [protected]
 

DOCID_T InvFPTermList::uid [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:02 2004 for LEMUR by doxygen1.2.16