diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-02 13:45:24 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-02 13:45:24 +0300 |
commit | cc8c6b7b10abd8118014635609f7658f6a7a1857 (patch) | |
tree | cab374bcbf73ff97782e9131380e4f32dbeb1e67 /moses/TranslationTask.h | |
parent | a4a7c14593766ab188e1d6ae1c29e67ed201d412 (diff) |
beautify
Diffstat (limited to 'moses/TranslationTask.h')
-rw-r--r-- | moses/TranslationTask.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/moses/TranslationTask.h b/moses/TranslationTask.h index df1cf9f48..2b75c47d5 100644 --- a/moses/TranslationTask.h +++ b/moses/TranslationTask.h @@ -40,7 +40,9 @@ class TranslationTask : public Moses::Task TranslationTask(TranslationTask const& other) { } TranslationTask const& - operator=(TranslationTask const& other) { return *this; } + operator=(TranslationTask const& other) { + return *this; + } protected: boost::weak_ptr<TranslationTask> m_self; // weak ptr to myself @@ -48,7 +50,7 @@ protected: // pointer to ContextScope, which stores context-specific information TranslationTask() { } ; TranslationTask(boost::shared_ptr<Moses::InputType> const& source, - boost::shared_ptr<Moses::IOWrapper> const& ioWrapper); + boost::shared_ptr<Moses::IOWrapper> const& ioWrapper); // Yes, the constructor is protected. // // TranslationTasks can only be created through the creator @@ -68,11 +70,15 @@ protected: public: boost::shared_ptr<TranslationTask> - self() { return m_self.lock(); } + self() { + return m_self.lock(); + } virtual boost::shared_ptr<TranslationTask const> - self() const { return m_self.lock(); } + self() const { + return m_self.lock(); + } // creator functions static boost::shared_ptr<TranslationTask> create(); @@ -84,7 +90,7 @@ public: static boost::shared_ptr<TranslationTask> create(boost::shared_ptr<Moses::InputType> const& source, - boost::shared_ptr<Moses::IOWrapper> const& ioWrapper); + boost::shared_ptr<Moses::IOWrapper> const& ioWrapper); ~TranslationTask(); /** Translate one sentence @@ -92,15 +98,16 @@ public: virtual void Run(); boost::shared_ptr<Moses::InputType> - GetSource() const { return m_source; } + GetSource() const { + return m_source; + } boost::shared_ptr<BaseManager> SetupManager(SearchAlgorithm algo = DefaultSearchAlgorithm); boost::shared_ptr<ContextScope> const& - GetScope() const - { + GetScope() const { UTIL_THROW_IF2(m_scope == NULL, "No context scope!"); return m_scope; } |