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

TermCache Class Reference

#include <TermCache.hpp>

List of all members.

Public Methods

 TermCache ()
void add (const char *term, int termID)
 add a term to the cache.

int find (const char *term) const
 lookup a term in the cache. Returns internal termid or -1 if not found.

void clear ()
 clear the cache.


Private Methods

int _hashFunction (const char *term) const

Private Attributes

cache_entry _termCache [TERMCACHE_SIZE/sizeof(struct cache_entry)]


Detailed Description

External to internal term id hash table for optimizing indexing with KeyfileIncIndex.


Constructor & Destructor Documentation

TermCache::TermCache  
 


Member Function Documentation

int TermCache::_hashFunction const char *    term const [private]
 

void TermCache::add const char *    term,
int    termID
 

add a term to the cache.

void TermCache::clear  
 

clear the cache.

int TermCache::find const char *    term const
 

lookup a term in the cache. Returns internal termid or -1 if not found.


Member Data Documentation

struct cache_entry TermCache::_termCache[ TERMCACHE_SIZE / sizeof (struct cache_entry) ] [private]
 


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