diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
commit | 6249432407af8730c10bccc7894c0725fcaf5e47 (patch) | |
tree | 3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /moses/RuleCubeItem.h | |
parent | 59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff) |
beautify
Diffstat (limited to 'moses/RuleCubeItem.h')
-rw-r--r-- | moses/RuleCubeItem.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/moses/RuleCubeItem.h b/moses/RuleCubeItem.h index 612079172..75669598b 100644 --- a/moses/RuleCubeItem.h +++ b/moses/RuleCubeItem.h @@ -39,14 +39,16 @@ typedef std::vector<const ChartHypothesis*> HypoList; */ class TranslationDimension { - public: +public: TranslationDimension(std::size_t pos, const std::vector<TargetPhrase*> &orderedTargetPhrases) : m_pos(pos) , m_orderedTargetPhrases(&orderedTargetPhrases) {} - std::size_t IncrementPos() { return m_pos++; } + std::size_t IncrementPos() { + return m_pos++; + } bool HasMoreTranslations() const { return m_pos+1 < m_orderedTargetPhrases->size(); @@ -64,7 +66,7 @@ class TranslationDimension return GetTargetPhrase() == compare.GetTargetPhrase(); } - private: +private: std::size_t m_pos; const std::vector<TargetPhrase*> *m_orderedTargetPhrases; }; @@ -81,7 +83,9 @@ public: , m_orderedHypos(&orderedHypos) {} - std::size_t IncrementPos() { return m_pos++; } + std::size_t IncrementPos() { + return m_pos++; + } bool HasMoreHypo() const { return m_pos+1 < m_orderedHypos->size(); @@ -109,7 +113,7 @@ std::size_t hash_value(const HypothesisDimension &); /** @todo How is this used. Split out into separate source file */ class RuleCubeItem { - public: +public: RuleCubeItem(const ChartTranslationOptions &, const ChartCellCollection &); RuleCubeItem(const RuleCubeItem &, int); ~RuleCubeItem(); @@ -122,7 +126,9 @@ class RuleCubeItem return m_hypothesisDimensions; } - float GetScore() const { return m_score; } + float GetScore() const { + return m_score; + } void EstimateScore(); @@ -132,7 +138,7 @@ class RuleCubeItem bool operator<(const RuleCubeItem &) const; - private: +private: RuleCubeItem(const RuleCubeItem &); // Not implemented RuleCubeItem &operator=(const RuleCubeItem &); // Not implemented |