Moses::TPCollCache Class Reference

#include <TargetPhraseCollectionCache.h>

List of all members.

Public Types

typedef std::map< uint64_t,
SPTR< TPCollWrapper > > 
cache_t

Public Member Functions

 TPCollCache (size_t capacity=10000)
SPTR< TPCollWrapperget (uint64_t key, size_t revision)


Detailed Description

Definition at line 12 of file TargetPhraseCollectionCache.h.


Member Typedef Documentation

typedef std::map<uint64_t, SPTR<TPCollWrapper> > Moses::TPCollCache::cache_t

Definition at line 16 of file TargetPhraseCollectionCache.h.


Constructor & Destructor Documentation

Moses::TPCollCache::TPCollCache ( size_t  capacity = 10000  ) 

Definition at line 8 of file TargetPhraseCollectionCache.cc.

References UTIL_THROW_IF2.


Member Function Documentation

SPTR< TPCollWrapper > Moses::TPCollCache::get ( uint64_t  key,
size_t  revision 
)

Definition at line 17 of file TargetPhraseCollectionCache.cc.


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

Generated on Thu Jul 6 00:33:55 2017 for Moses by  doxygen 1.5.9