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 | c80f10eed03430423c00a94b19ce7d3e68c8c65a (patch) | |
tree | 7438423c591b347b5f9bbf27742d31b2f8fcae03 /decoder/tree_fragment.h | |
parent | 58c50cc49721445751499298d9e935601baaf7ca (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) { |