diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-14 14:07:42 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-14 14:07:42 +0300 |
commit | 05ead45e71916c5763c5c4b6375e2ca6838f3995 (patch) | |
tree | c279bd4aacfb31758720ffbaf5aaf62022574a52 /moses/BaseManager.h | |
parent | 91cb549ccf09fc33122f3d531f47c38ad0e99b3d (diff) |
beautify
Diffstat (limited to 'moses/BaseManager.h')
-rw-r--r-- | moses/BaseManager.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/moses/BaseManager.h b/moses/BaseManager.h index fe88d6412..c0b6d22c1 100644 --- a/moses/BaseManager.h +++ b/moses/BaseManager.h @@ -17,23 +17,22 @@ protected: const InputType &m_source; /**< source sentence to be translated */ BaseManager(const InputType &source) - :m_source(source) - {} + :m_source(source) { + } // output typedef std::vector<std::pair<Moses::Word, Moses::WordsRange> > ApplicationContext; typedef std::set< std::pair<size_t, size_t> > Alignments; void OutputSurface(std::ostream &out, - const Phrase &phrase, - const std::vector<FactorType> &outputFactorOrder, - bool reportAllFactors) const; + const Phrase &phrase, + const std::vector<FactorType> &outputFactorOrder, + bool reportAllFactors) const; void WriteApplicationContext(std::ostream &out, - const ApplicationContext &context) const; + const ApplicationContext &context) const; template <class T> - void ShiftOffsets(std::vector<T> &offsets, T shift) const - { + void ShiftOffsets(std::vector<T> &offsets, T shift) const { T currPos = shift; for (size_t i = 0; i < offsets.size(); ++i) { if (offsets[i] == 0) { @@ -46,8 +45,8 @@ protected: } public: - virtual ~BaseManager() - {} + virtual ~BaseManager() { + } //! the input sentence being decoded const InputType& GetSource() const { |