diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 21:35:39 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 21:35:39 +0300 |
commit | 8ee350af2ffd195025507183da101b8b184cca12 (patch) | |
tree | 79d078a12951601513f109bf753099f763374355 /moses/HypothesisStackCubePruning.h | |
parent | 4e691e496903dab2d04cadd3488a77118cc230bd (diff) |
encapsulate adding BitmapContainer!
Diffstat (limited to 'moses/HypothesisStackCubePruning.h')
-rw-r--r-- | moses/HypothesisStackCubePruning.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/moses/HypothesisStackCubePruning.h b/moses/HypothesisStackCubePruning.h index 5be283be7..2e3c81cde 100644 --- a/moses/HypothesisStackCubePruning.h +++ b/moses/HypothesisStackCubePruning.h @@ -37,7 +37,7 @@ class BitmapContainer; class TranslationOptionList; class Manager; -typedef boost::unordered_map<const WordsBitmap*, BitmapContainer*, UnorderedComparer<WordsBitmap>, UnorderedComparer<WordsBitmap> > _BMType; +typedef boost::unordered_map<WordsBitmap, BitmapContainer*, UnorderedComparer<WordsBitmap>, UnorderedComparer<WordsBitmap> > _BMType; /** A stack for phrase-based decoding with cube-pruning. */ class HypothesisStackCubePruning : public HypothesisStack @@ -63,6 +63,8 @@ protected: /** destroy all instances of Hypothesis in this collection */ void RemoveAll(); + BitmapContainer *AddBitmapContainer(const WordsBitmap &bitmap, HypothesisStackCubePruning &stack); + public: HypothesisStackCubePruning(Manager& manager); ~HypothesisStackCubePruning() { |