#include <TermCache.hpp>
Public Member Functions | |
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 Member Functions | |
int | _hashFunction (const char *term) const |
Private Attributes | |
cache_entry | _termCache [TERMCACHE_SIZE/sizeof(struct cache_entry)] |
|
|
|
|
|
add a term to the cache.
|
|
clear the cache.
|
|
lookup a term in the cache. Returns internal termid or -1 if not found.
|
|
|