mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
Added operator [] to TargetPhraseCollection.
This commit is contained in:
parent
c7a0520a18
commit
22ec93b85c
@ -44,6 +44,12 @@ public:
|
||||
typedef CollType::iterator iterator;
|
||||
typedef CollType::const_iterator const_iterator;
|
||||
|
||||
TargetPhrase const*
|
||||
operator[](size_t const i) const
|
||||
{
|
||||
return m_collection.at(i);
|
||||
}
|
||||
|
||||
iterator begin() {
|
||||
return m_collection.begin();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user