diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-25 16:07:25 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-25 16:07:25 +0300 |
commit | 84b1c4b4c0c02362cdb35b55e08196d03b993baf (patch) | |
tree | 5b8526e6063ce08e0eb5c13bbef8d6e605f46748 /moses/Bitmaps.cpp | |
parent | eeff4fddc85c0edab1b2a3eb4ceecce243f52bc1 (diff) |
WordsBitmap -> Bitmap
Diffstat (limited to 'moses/Bitmaps.cpp')
-rw-r--r-- | moses/Bitmaps.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/moses/Bitmaps.cpp b/moses/Bitmaps.cpp index bb9bd20bd..9f59fac1c 100644 --- a/moses/Bitmaps.cpp +++ b/moses/Bitmaps.cpp @@ -8,21 +8,21 @@ namespace Moses { Bitmaps::Bitmaps(size_t inputSize, const std::vector<bool> &initSourceCompleted) { - m_initBitmap = new WordsBitmap(inputSize, initSourceCompleted); + m_initBitmap = new Bitmap(inputSize, initSourceCompleted); m_coll[m_initBitmap]; } Bitmaps::~Bitmaps() { BOOST_FOREACH (const Coll::value_type& myPair, m_coll) { - const WordsBitmap *bm = myPair.first; + const Bitmap *bm = myPair.first; delete bm; } } -const WordsBitmap &Bitmaps::GetNextBitmap(const WordsBitmap &bm, const WordsRange &range) +const Bitmap &Bitmaps::GetNextBitmap(const Bitmap &bm, const WordsRange &range) { - WordsBitmap *newBM = new WordsBitmap(bm); + Bitmap *newBM = new Bitmap(bm); newBM->SetValue(range, true); Coll::const_iterator iter = m_coll.find(newBM); @@ -35,12 +35,12 @@ const WordsBitmap &Bitmaps::GetNextBitmap(const WordsBitmap &bm, const WordsRang } } -const WordsBitmap &Bitmaps::GetBitmap(const WordsBitmap &bm, const WordsRange &range) +const Bitmap &Bitmaps::GetBitmap(const Bitmap &bm, const WordsRange &range) { Coll::iterator iter = m_coll.find(&bm); assert(iter != m_coll.end()); - const WordsBitmap *newBM; + const Bitmap *newBM; NextBitmaps &next = iter->second; NextBitmaps::const_iterator iterNext = next.find(range); if (iterNext == next.end()) { |