Public Member Functions | |
SentIdSet | get (const std::string &phrase) |
void | put (const std::string &phrase, const SentIdSet set) |
void | prune () |
Static Public Member Functions | |
static void | set_max_cache (size_t max_cache) |
Definition at line 71 of file filter-pt.cc.
SentIdSet Cache::get | ( | const std::string & | phrase | ) | [inline] |
Definition at line 77 of file filter-pt.cc.
Referenced by lookup_phrase().
void Cache::prune | ( | ) | [inline] |
Definition at line 96 of file filter-pt.cc.
References sort().
void Cache::put | ( | const std::string & | phrase, | |
const SentIdSet | set | |||
) | [inline] |
Definition at line 87 of file filter-pt.cc.
Referenced by lookup_phrase().
static void Cache::set_max_cache | ( | size_t | max_cache | ) | [inline, static] |
Definition at line 92 of file filter-pt.cc.
Referenced by main().