Cambridge SMT System
ucam::fsttools::LRUCache Class Reference

#include <bleu.hpp>

Public Member Functions

 LRUCache (unsigned int cacheSize=10000)
 
void insert (const SentenceIdx &hyp, const BleuStats &bs)
 
bool contains (const SentenceIdx &hyp) const
 
bool get (const SentenceIdx &hyp, BleuStats &bs)
 
BleuStats get (const SentenceIdx &hyp)
 

Detailed Description

Definition at line 100 of file bleu.hpp.

Constructor & Destructor Documentation

ucam::fsttools::LRUCache::LRUCache ( unsigned int  cacheSize = 10000)
inline

Definition at line 106 of file bleu.hpp.

Member Function Documentation

bool ucam::fsttools::LRUCache::contains ( const SentenceIdx hyp) const
inline

Definition at line 126 of file bleu.hpp.

bool ucam::fsttools::LRUCache::get ( const SentenceIdx hyp,
BleuStats bs 
)
inline

Definition at line 131 of file bleu.hpp.

BleuStats ucam::fsttools::LRUCache::get ( const SentenceIdx hyp)
inline

Definition at line 144 of file bleu.hpp.

void ucam::fsttools::LRUCache::insert ( const SentenceIdx hyp,
const BleuStats bs 
)
inline

Definition at line 108 of file bleu.hpp.


The documentation for this class was generated from the following file: