mosesdecoder/contrib/other-builds/moses2/TargetPhrase.h

36 lines
653 B
C
Raw Normal View History

2015-10-23 22:53:36 +03:00
/*
* TargetPhrase.h
*
* Created on: 23 Oct 2015
* Author: hieu
*/
#pragma once
2015-10-26 19:32:47 +03:00
#include <iostream>
2015-10-23 22:53:36 +03:00
#include "Phrase.h"
2015-10-28 19:11:12 +03:00
#include "MemPool.h"
2015-10-23 22:53:36 +03:00
class Scores;
class Manager;
2015-10-26 00:20:55 +03:00
class System;
2015-10-23 22:53:36 +03:00
class TargetPhrase : public Phrase
{
2015-10-26 19:32:47 +03:00
friend std::ostream& operator<<(std::ostream &, const TargetPhrase &);
2015-10-23 22:53:36 +03:00
public:
static TargetPhrase *CreateFromString(MemPool &pool, const System &system, const std::string &str);
TargetPhrase(MemPool &pool, const System &system, size_t size);
2015-10-24 04:02:50 +03:00
virtual ~TargetPhrase();
Scores &GetScores()
{ return *m_scores; }
2015-10-23 22:53:36 +03:00
2015-10-26 19:32:47 +03:00
const Scores &GetScores() const
{ return *m_scores; }
2015-10-23 22:53:36 +03:00
protected:
Scores *m_scores;
};