diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-12-12 00:03:30 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-12-12 00:03:30 +0400 |
commit | bc9ce334d0e432e210cc57c2a99e20e53e62f52e (patch) | |
tree | f73b7837d5e4bb8bc8a95cc475c02aa27638d232 /moses/RuleCube.h | |
parent | fb356606e9c0177a2618d036296424cd2783395b (diff) |
more debug functions
Diffstat (limited to 'moses/RuleCube.h')
-rw-r--r-- | moses/RuleCube.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/moses/RuleCube.h b/moses/RuleCube.h index 512a366ef..716ce8534 100644 --- a/moses/RuleCube.h +++ b/moses/RuleCube.h @@ -90,6 +90,8 @@ public: */ class RuleCube { + friend std::ostream& operator<<(std::ostream &out, const RuleCube &obj); + public: RuleCube(const ChartTranslationOptions &, const ChartCellCollection &, ChartManager &); @@ -112,6 +114,9 @@ public: return m_transOpt; } + size_t GetItemSetSize() const + { return m_covered.size(); } + private: #if defined(BOOST_VERSION) && (BOOST_VERSION >= 104200) typedef boost::unordered_set<RuleCubeItem*, |