#include <RandLMCache.h>


Public Types | |
| typedef std::map< wordID_t, CacheNode< T > * >::iterator | childPtr |
Public Member Functions | |
| Cache (T unknown_value, T null_value) | |
| ~Cache () | |
| bool | setCacheNgram (const wordID_t *ngram, int len, T value, const void *state) |
| bool | checkCacheNgram (const wordID_t *ngram, int len, T *value, const void **state) |
| int | getCache2 (const wordID_t *ngram, int len, T **values, int *found) |
| int | getCache (const wordID_t *ngram, int len, T **values, int *found) |
| bool | clear () |
| int | nodes () |
| int | nodeSize () |
Definition at line 42 of file RandLMCache.h.
| typedef std::map<wordID_t, CacheNode<T>* >::iterator randlm::Cache< T >::childPtr |
Definition at line 45 of file RandLMCache.h.
| randlm::Cache< T >::Cache | ( | T | unknown_value, | |
| T | null_value | |||
| ) | [inline] |
Definition at line 49 of file RandLMCache.h.
| randlm::Cache< T >::~Cache | ( | ) | [inline] |
Definition at line 53 of file RandLMCache.h.
| bool randlm::Cache< T >::checkCacheNgram | ( | const wordID_t * | ngram, | |
| int | len, | |||
| T * | value, | |||
| const void ** | state | |||
| ) | [inline] |
Definition at line 81 of file RandLMCache.h.
Referenced by OnlineRLM< T >::getProb(), and OnlineRLM< T >::markPrefix().

| bool randlm::Cache< T >::clear | ( | ) | [inline] |
Definition at line 164 of file RandLMCache.h.
Referenced by OnlineRLM< T >::clearCache(), OnlineRLM< T >::markPrefix(), and randlm::Cache< float >::~Cache().

| int randlm::Cache< T >::getCache | ( | const wordID_t * | ngram, | |
| int | len, | |||
| T ** | values, | |||
| int * | found | |||
| ) | [inline] |
Definition at line 131 of file RandLMCache.h.
| int randlm::Cache< T >::getCache2 | ( | const wordID_t * | ngram, | |
| int | len, | |||
| T ** | values, | |||
| int * | found | |||
| ) | [inline] |
Definition at line 99 of file RandLMCache.h.
| int randlm::Cache< T >::nodes | ( | ) | [inline] |
Definition at line 169 of file RandLMCache.h.
Referenced by OnlineRLM< T >::markPrefix().

| int randlm::Cache< T >::nodeSize | ( | ) | [inline] |
Definition at line 173 of file RandLMCache.h.
Referenced by randlm::Cache< float >::clear().

| bool randlm::Cache< T >::setCacheNgram | ( | const wordID_t * | ngram, | |
| int | len, | |||
| T | value, | |||
| const void * | state | |||
| ) | [inline] |
Definition at line 61 of file RandLMCache.h.
Referenced by OnlineRLM< T >::getProb(), and OnlineRLM< T >::markPrefix().

1.5.9