Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-10-20 01:40:09 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-20 01:40:09 +0300
commitdd21c2c83b3ce8003c83fab5be1dcc3761998684 (patch)
treedf68742ae865615385237c29cb56a51c93a3544b /moses/BitmapContainer.h
parentbb1304f7250d287e153e2fb3183310ea558c9065 (diff)
segfault
Diffstat (limited to 'moses/BitmapContainer.h')
-rw-r--r--moses/BitmapContainer.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/moses/BitmapContainer.h b/moses/BitmapContainer.h
index 0bfba950c..5860c111a 100644
--- a/moses/BitmapContainer.h
+++ b/moses/BitmapContainer.h
@@ -202,7 +202,7 @@ public:
class BitmapContainer
{
private:
- const WordsBitmap &m_bitmap;
+ const WordsBitmap *m_bitmap;
HypothesisStackCubePruning &m_stack;
HypothesisSet m_hypotheses;
BackwardsEdgeSet m_edges;
@@ -214,8 +214,7 @@ private:
BitmapContainer();
BitmapContainer(const BitmapContainer &);
public:
- BitmapContainer(const WordsBitmap &bitmap
- , HypothesisStackCubePruning &stack
+ BitmapContainer(HypothesisStackCubePruning &stack
, bool deterministic_sort = false);
// The destructor will also delete all the edges that are
@@ -229,6 +228,11 @@ public:
bool Empty() const;
const WordsBitmap &GetWordsBitmap();
+ void SetWordsBitmap(const WordsBitmap &bitmap)
+ {
+ m_bitmap = &bitmap;
+ }
+
const HypothesisSet &GetHypotheses() const;
size_t GetHypothesesSize() const;
const BackwardsEdgeSet &GetBackwardsEdges();