diff options
author | Chris Dyer <redpony@gmail.com> | 2014-04-01 00:19:19 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-04-01 00:19:19 -0400 |
commit | 8dc828ac79e14179e90280b4255449f620550e63 (patch) | |
tree | 40867e3307ff0293638381699e81fa0af897d6ac /decoder/tree_fragment.h | |
parent | 8372086f2fc4bd765fdd05e8cf95faeb147a6587 (diff) |
minimally tested t2s translator
Diffstat (limited to 'decoder/tree_fragment.h')
-rw-r--r-- | decoder/tree_fragment.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/tree_fragment.h b/decoder/tree_fragment.h index b83afc27..ceb7fa60 100644 --- a/decoder/tree_fragment.h +++ b/decoder/tree_fragment.h @@ -107,6 +107,7 @@ class BreadthFirstIterator : public std::iterator<std::forward_iterator_tag, uns bool operator!=(const BreadthFirstIterator& other) const { return (tf_ != other.tf_) || (q_ != other.q_); } + unsigned node_idx() const { return q_.front().node; } const BreadthFirstIterator& operator++() { TFIState& s = q_.front(); if (s.state == 0) { |