mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 12:52:29 +03:00
Added another constructor to TSA_tree_iterator.
This commit is contained in:
parent
f5d969ab37
commit
84299006da
@ -59,6 +59,7 @@ namespace ugdiss
|
||||
|
||||
// TSA_tree_iterator(TSA_tree_iterator const& other);
|
||||
TSA_tree_iterator(TSA<Token> const* s);
|
||||
TSA_tree_iterator(TSA<Token> const* r, id_type const* s, size_t const len);
|
||||
// TSA_tree_iterator(TSA<Token> const* s, Token const& t);
|
||||
TSA_tree_iterator(TSA<Token> const* s,
|
||||
Token const* kstart,
|
||||
@ -312,6 +313,17 @@ namespace ugdiss
|
||||
: root(s)
|
||||
{};
|
||||
|
||||
template<typename Token>
|
||||
TSA_tree_iterator<Token>::
|
||||
TSA_tree_iterator
|
||||
(TSA<Token> const* r,
|
||||
id_type const* s,
|
||||
size_t const len)
|
||||
: root(r)
|
||||
{
|
||||
for (id_type const* e = s + len; s < e && extend(*s); ++s);
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user