mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Reduce header pollution
This commit is contained in:
parent
630b4d4ea9
commit
dc31857bbc
@ -20,6 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#include <sstream>
|
||||
#include <boost/functional/hash.hpp>
|
||||
|
||||
#include "util/file_piece.hh"
|
||||
#include "util/tokenize_piece.hh"
|
||||
|
||||
#include "FeatureArray.h"
|
||||
@ -71,6 +72,8 @@ FeatureDataIterator::FeatureDataIterator(const string& filename) {
|
||||
readNext();
|
||||
}
|
||||
|
||||
FeatureDataIterator::~FeatureDataIterator() {}
|
||||
|
||||
void FeatureDataIterator::readNext() {
|
||||
m_next.clear();
|
||||
try {
|
||||
|
@ -32,11 +32,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#include <boost/iterator/iterator_facade.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "util/file_piece.hh"
|
||||
#include "util/exception.hh"
|
||||
#include "util/string_piece.hh"
|
||||
|
||||
#include "FeatureStats.h"
|
||||
|
||||
namespace util { class FilePiece; }
|
||||
|
||||
namespace MosesTuning
|
||||
{
|
||||
|
||||
@ -75,6 +77,7 @@ class FeatureDataIterator :
|
||||
public:
|
||||
FeatureDataIterator();
|
||||
explicit FeatureDataIterator(const std::string& filename);
|
||||
~FeatureDataIterator();
|
||||
|
||||
static FeatureDataIterator end() {
|
||||
return FeatureDataIterator();
|
||||
|
@ -18,6 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
***********************************************************************/
|
||||
#include <iostream>
|
||||
|
||||
#include "util/file_piece.hh"
|
||||
#include "util/tokenize_piece.hh"
|
||||
|
||||
#include "ScoreArray.h"
|
||||
@ -37,6 +38,8 @@ ScoreDataIterator::ScoreDataIterator(const string& filename) {
|
||||
readNext();
|
||||
}
|
||||
|
||||
ScoreDataIterator::~ScoreDataIterator() {}
|
||||
|
||||
void ScoreDataIterator::readNext() {
|
||||
m_next.clear();
|
||||
try {
|
||||
|
@ -29,11 +29,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#include <boost/iterator/iterator_facade.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "util/file_piece.hh"
|
||||
#include "util/string_piece.hh"
|
||||
|
||||
#include "FeatureDataIterator.h"
|
||||
|
||||
namespace util { class FilePiece; }
|
||||
|
||||
namespace MosesTuning
|
||||
{
|
||||
|
||||
@ -49,6 +50,8 @@ class ScoreDataIterator :
|
||||
ScoreDataIterator();
|
||||
explicit ScoreDataIterator(const std::string& filename);
|
||||
|
||||
~ScoreDataIterator();
|
||||
|
||||
static ScoreDataIterator end() {
|
||||
return ScoreDataIterator();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user