diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-06-08 14:08:27 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-06-08 14:08:27 +0300 |
commit | 26e4cee9b18135400e1fa34e574af80f3c87d84b (patch) | |
tree | 18621724e82839df9a42fa750b70917812b41426 /moses/TranslationTask.cpp | |
parent | b682a0663645ae5ccbf279ff72ac581d9ec28fb0 (diff) |
New create function that includes scope. New member function to exposure IOWrapper.
Diffstat (limited to 'moses/TranslationTask.cpp')
-rw-r--r-- | moses/TranslationTask.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/moses/TranslationTask.cpp b/moses/TranslationTask.cpp index 61cdfc162..bf0228b14 100644 --- a/moses/TranslationTask.cpp +++ b/moses/TranslationTask.cpp @@ -61,6 +61,18 @@ TranslationTask return ret; } +boost::shared_ptr<TranslationTask> +TranslationTask +::create(boost::shared_ptr<InputType> const& source, + boost::shared_ptr<IOWrapper> const& ioWrapper, + boost::shared_ptr<ContextScope> const& scope) +{ + boost::shared_ptr<TranslationTask> ret(new TranslationTask(source, ioWrapper)); + ret->m_self = ret; + ret->m_scope = scope; + return ret; +} + TranslationTask ::TranslationTask(boost::shared_ptr<InputType> const& source, boost::shared_ptr<IOWrapper> const& ioWrapper) |