43 template<
class T,
class Comp>
46 : claw::binary_node< typename claw::trie<T, Comp>::trie_node >(), value(val),
57 template<
class T,
class Comp>
59 : claw::binary_node< typename claw::trie<T, Comp>::trie_node >(that),
60 value(that.value), count(that.count)
68 template<
class T,
class Comp>
69 typename claw::trie<T, Comp>::value_equal_to
77 template<
class T,
class Comp>
90 template<
class T,
class Comp>
94 m_tree =
new trie_node( *that.m_tree );
105 template<
class T,
class Comp>
116 template<
class T,
class Comp>
126 template<
class T,
class Comp>
137 template<
class T,
class Comp>
158 template<
class T,
class Comp>
159 template<
class InputIterator>
162 assert( first != last );
164 trie_node_ptr* p = &m_tree;
165 trie_node_ptr last_node = NULL;
168 while ( *p && (first!=last) )
169 if ( s_value_equal_to((*p)->value, *first) )
180 while (first != last)
182 *p =
new trie_node(*first);
189 ++(last_node->count);
204 template<
class T,
class Comp>
205 template <
class InputIterator>
209 assert( first != last );
211 trie_node_ptr* p = & m_tree;
212 trie_node_ptr last_node = NULL;
215 while ( *p && (first!=last) )
216 if ( s_value_equal_to((*p)->value, *first) )
227 return last_node->count;