File size: 814 Bytes
fd49381 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
/*
* InputPaths.h
*
* Created on: 23 Oct 2015
* Author: hieu
*/
#pragma once
#include <vector>
#include "MemPool.h"
namespace Moses2
{
class InputType;
class System;
class ManagerBase;
class InputPathBase;
class InputPathsBase
{
typedef std::vector<InputPathBase*> Coll;
public:
InputPathsBase() {
}
virtual ~InputPathsBase();
//! iterators
typedef Coll::iterator iterator;
typedef Coll::const_iterator const_iterator;
const_iterator begin() const {
return m_inputPaths.begin();
}
const_iterator end() const {
return m_inputPaths.end();
}
iterator begin() {
return m_inputPaths.begin();
}
iterator end() {
return m_inputPaths.end();
}
virtual void Init(const InputType &input, const ManagerBase &mgr) = 0;
protected:
Coll m_inputPaths;
};
}
|