Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-12-10 02:05:00 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-12-10 02:05:00 +0300
commit240b88c6834c9c94e8a6448a34dc4ad33bdf3fbd (patch)
treee9f43dba3717e8a430557c16a1d6543a13628ddf /moses/InputType.cpp
parentad5e27ae56298564dfd73637c160a682b5f5f028 (diff)
Passing around AllOptions or references thereto everywhere,
strong them locally where appropriate, so that compontents can become independent of StaticData once instantiated.
Diffstat (limited to 'moses/InputType.cpp')
-rw-r--r--moses/InputType.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/InputType.cpp b/moses/InputType.cpp
index db269ea8b..a47c03ff7 100644
--- a/moses/InputType.cpp
+++ b/moses/InputType.cpp
@@ -29,8 +29,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
namespace Moses
{
-InputType::InputType(long translationId)
- : m_translationId(translationId)
+ InputType::InputType(AllOptions::ptr const& opts, long translationId)
+ : m_options(opts)
+ , m_translationId(translationId)
{
m_frontSpanCoveredLength = 0;
m_sourceCompleted.resize(0);