#include <ngramcache.h>

Public Member Functions | |
| int | cursize () |
| int | maxsize () |
| ngramcache (int n, int size, int maxentries) | |
| char * | get (const int *ngp, char *info=NULL) |
| ~ngramcache () | |
| void | reset (int n=0) |
| int | add (const int *ngp, const char *info) |
| int | isfull () |
| void | stat () |
Definition at line 29 of file ngramcache.h.
| ngramcache::ngramcache | ( | int | n, | |
| int | size, | |||
| int | maxentries | |||
| ) |
| ngramcache::~ngramcache | ( | ) |
Definition at line 49 of file ngramcache.cpp.
| int ngramcache::add | ( | const int * | ngp, | |
| const char * | info | |||
| ) |
Definition at line 81 of file ngramcache.cpp.
References mempool::allocate(), HT_ENTER, and htable::search().
Referenced by lmtable::clprob(), lmmacro::clprob(), lmtable::cmaxsuffptr(), and lmtable::get().


| int ngramcache::cursize | ( | ) | [inline] |
Definition at line 42 of file ngramcache.h.
Referenced by lmtable::check_cache_levels(), and lmtable::reset_caches().

| char * ngramcache::get | ( | const int * | ngp, | |
| char * | info = NULL | |||
| ) |
Definition at line 69 of file ngramcache.cpp.
References HT_FIND, and htable::search().
Referenced by lmtable::clprob(), lmmacro::clprob(), and lmtable::cmaxsuffptr().


| int ngramcache::isfull | ( | ) | [inline] |
Definition at line 49 of file ngramcache.h.
Referenced by lmtable::check_cache_levels().

| int ngramcache::maxsize | ( | ) | [inline] |
Definition at line 43 of file ngramcache.h.
Referenced by lmtable::reset_caches().

| void ngramcache::reset | ( | int | n = 0 |
) |
Definition at line 57 of file ngramcache.cpp.
Referenced by lmtable::check_cache_levels(), and lmtable::reset_caches().

| void ngramcache::stat | ( | ) |
Definition at line 92 of file ngramcache.cpp.
1.5.9