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.h | |
parent | eeff4fddc85c0edab1b2a3eb4ceecce243f52bc1 (diff) |
WordsBitmap -> Bitmap
Diffstat (limited to 'moses/Bitmaps.h')
-rw-r--r-- | moses/Bitmaps.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/moses/Bitmaps.h b/moses/Bitmaps.h index 4f2337e39..ce43c6a03 100644 --- a/moses/Bitmaps.h +++ b/moses/Bitmaps.h @@ -3,7 +3,7 @@ #include <boost/unordered_set.hpp> #include <boost/unordered_map.hpp> #include <set> -#include "WordsBitmap.h" +#include "Bitmap.h" #include "Util.h" namespace Moses @@ -11,21 +11,21 @@ namespace Moses class Bitmaps { - typedef boost::unordered_map<WordsRange, const WordsBitmap*> NextBitmaps; - typedef boost::unordered_map<const WordsBitmap*, NextBitmaps, UnorderedComparer<WordsBitmap>, UnorderedComparer<WordsBitmap> > Coll; - //typedef std::set<const WordsBitmap*, OrderedComparer<WordsBitmap> > Coll; + typedef boost::unordered_map<WordsRange, const Bitmap*> NextBitmaps; + typedef boost::unordered_map<const Bitmap*, NextBitmaps, UnorderedComparer<Bitmap>, UnorderedComparer<Bitmap> > Coll; + //typedef std::set<const Bitmap*, OrderedComparer<Bitmap> > Coll; Coll m_coll; - const WordsBitmap *m_initBitmap; + const Bitmap *m_initBitmap; - const WordsBitmap &GetNextBitmap(const WordsBitmap &bm, const WordsRange &range); + const Bitmap &GetNextBitmap(const Bitmap &bm, const WordsRange &range); public: Bitmaps(size_t inputSize, const std::vector<bool> &initSourceCompleted); virtual ~Bitmaps(); - const WordsBitmap &GetInitialBitmap() const { + const Bitmap &GetInitialBitmap() const { return *m_initBitmap; } - const WordsBitmap &GetBitmap(const WordsBitmap &bm, const WordsRange &range); + const Bitmap &GetBitmap(const Bitmap &bm, const WordsRange &range); }; |