|
Boost-Commit : |
From: chintanraoh_at_[hidden]
Date: 2008-06-02 15:16:36
Author: chintanraoh
Date: 2008-06-02 15:16:36 EDT (Mon, 02 Jun 2008)
New Revision: 46051
URL: http://svn.boost.org/trac/boost/changeset/46051
Log:
completed , tested and fixed trie iterator.
Text files modified:
sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/trie_iterator.hpp | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
Modified: sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/trie_iterator.hpp
==============================================================================
--- sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/trie_iterator.hpp (original)
+++ sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/trie_iterator.hpp 2008-06-02 15:16:36 EDT (Mon, 02 Jun 2008)
@@ -5,6 +5,7 @@
//forces the thing to be bidirectional horizontally.
//TODO:Add specializations for ascending cursors without use of stack.
+//iterator not convertible to const iterator
namespace boost{
namespace dsearch{
@@ -135,7 +136,16 @@
cur_st.push(c);
to_left_most();
}
-
+ template<class It>
+ trie_iterator(const It &begin,const It &end):end_flag(0)
+ {
+ It it=begin;
+ while(it!=end)
+ {
+ cur_st.push(*it);
+ it++;
+ }
+ }
};
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk