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-26 12:20:08 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-26 12:20:08 +0300
commit52f4086dbc5b5621600d07c3edf9dbca2e8cd38e (patch)
treeee6594d8438364e6e2663eda02bbc6153b13d700 /moses/Bitmap.cpp
parent486990fa3f8ed3150fe40f33f81c3c5ee2ccdd47 (diff)
move m_bitmaps into Search class. Cube pruning uses it too
Diffstat (limited to 'moses/Bitmap.cpp')
-rw-r--r--moses/Bitmap.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/moses/Bitmap.cpp b/moses/Bitmap.cpp
index 0a2815d80..2fe4c2987 100644
--- a/moses/Bitmap.cpp
+++ b/moses/Bitmap.cpp
@@ -27,12 +27,11 @@ namespace Moses
TO_STRING_BODY(Bitmap);
-bool Bitmap::IsAdjacent(size_t startPos, size_t endPos) const
+Bitmap::Bitmap(const Bitmap &copy, const Range &range)
+:m_bitmap(copy.m_bitmap)
+,m_firstGap(copy.m_firstGap)
{
- return
- GetNumWordsCovered() == 0 ||
- startPos == GetFirstGapPos() ||
- endPos == GetLastGapPos();
+ SetValue(range, true);
}
// for unordered_set in stack