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>2013-12-12 00:03:30 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-12-12 00:03:30 +0400
commitbc9ce334d0e432e210cc57c2a99e20e53e62f52e (patch)
treef73b7837d5e4bb8bc8a95cc475c02aa27638d232 /moses/RuleCube.h
parentfb356606e9c0177a2618d036296424cd2783395b (diff)
more debug functions
Diffstat (limited to 'moses/RuleCube.h')
-rw-r--r--moses/RuleCube.h5
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*,