diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-01-15 19:42:02 +0400 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-01-15 19:42:02 +0400 |
commit | bd83999264407dd7970736ee3e70a6b39fb19014 (patch) | |
tree | 1a0a0d9bab2b8caf853c301187beb637b0a1af61 /moses/RuleCube.h | |
parent | a098550f33dd1eead0e72a98a4822ce924841550 (diff) |
beautify
Diffstat (limited to 'moses/RuleCube.h')
-rw-r--r-- | moses/RuleCube.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/moses/RuleCube.h b/moses/RuleCube.h index c2e4a9e33..204279f0f 100644 --- a/moses/RuleCube.h +++ b/moses/RuleCube.h @@ -74,7 +74,7 @@ class RuleCubeItemEqualityPred public: bool operator()(const RuleCubeItem *p, const RuleCubeItem *q) const { bool ret = p->GetHypothesisDimensions() == q->GetHypothesisDimensions() && - p->GetTranslationDimension() == q->GetTranslationDimension(); + p->GetTranslationDimension() == q->GetTranslationDimension(); return ret; } }; @@ -92,7 +92,7 @@ public: ~RuleCube(); float GetTopScore() const { - UTIL_THROW_IF2(m_queue.empty(), "Empty queue, nothing to pop"); + UTIL_THROW_IF2(m_queue.empty(), "Empty queue, nothing to pop"); RuleCubeItem *item = m_queue.top(); return item->GetScore(); } @@ -107,8 +107,9 @@ public: return m_transOpt; } - size_t GetItemSetSize() const - { return m_covered.size(); } + size_t GetItemSetSize() const { + return m_covered.size(); + } private: typedef boost::unordered_set<RuleCubeItem*, |