3 // Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the terms
7 // of the GNU General Public License as published by the Free Software
8 // Foundation; either version 3, or (at your option) any later
11 // This library is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Public License for more details.
16 // Under Section 7 of GPL version 3, you are granted additional
17 // permissions described in the GCC Runtime Library Exception, version
18 // 3.1, as published by the Free Software Foundation.
20 // You should have received a copy of the GNU General Public License and
21 // a copy of the GCC Runtime Library Exception along with this program;
22 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23 // <http://www.gnu.org/licenses/>.
25 // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
27 // Permission to use, copy, modify, sell, and distribute this software
28 // is hereby granted without fee, provided that the above copyright
29 // notice appears in all copies, and that both that copyright notice
30 // and this permission notice appear in supporting documentation. None
31 // of the above authors, nor IBM Haifa Research Laboratories, make any
32 // representation about the suitability of this software for any
33 // purpose. It is provided "as is" without express or implied
38 * Contains an implementation class for pat_trie_.
41 #ifndef PB_DS_PAT_TRIE_NODE_AND_IT_TRAITS_HPP
42 #define PB_DS_PAT_TRIE_NODE_AND_IT_TRAITS_HPP
44 #include <ext/pb_ds/detail/pat_trie_/node_base.hpp>
45 #include <ext/pb_ds/detail/pat_trie_/head.hpp>
46 #include <ext/pb_ds/detail/pat_trie_/leaf.hpp>
47 #include <ext/pb_ds/detail/pat_trie_/internal_node.hpp>
48 #include <ext/pb_ds/detail/pat_trie_/point_iterators.hpp>
49 #include <ext/pb_ds/detail/pat_trie_/node_iterators.hpp>
50 #include <ext/pb_ds/detail/pat_trie_/synth_e_access_traits.hpp>
57 template<typename Key,
59 class E_Access_Traits,
60 template<typename Const_Node_Iterator,
75 typedef types_traits< Key, Mapped, Allocator, false> type_traits;
79 typename trie_node_metadata_selector<
87 typedef E_Access_Traits e_access_traits;
90 __gnu_pbds::detail::synth_e_access_traits<
94 synth_e_access_traits;
99 synth_e_access_traits,
107 synth_e_access_traits,
115 synth_e_access_traits,
121 pat_trie_internal_node<
123 synth_e_access_traits,
159 const_reverse_iterator;
173 pat_trie_const_node_it_<
180 synth_e_access_traits,
192 synth_e_access_traits,
205 __gnu_pbds::null_trie_node_update<
210 null_node_update_pointer;
213 template<typename Key,
214 class E_Access_Traits,
215 template<typename Const_Node_Iterator,
240 typename trie_node_metadata_selector<
248 typedef E_Access_Traits e_access_traits;
251 __gnu_pbds::detail::synth_e_access_traits<
255 synth_e_access_traits;
260 synth_e_access_traits,
268 synth_e_access_traits,
276 synth_e_access_traits,
282 pat_trie_internal_node<
284 synth_e_access_traits,
300 typedef const_iterator iterator;
311 const_reverse_iterator;
313 typedef const_reverse_iterator reverse_iterator;
316 pat_trie_const_node_it_<
323 synth_e_access_traits,
327 typedef const_node_iterator node_iterator;
338 __gnu_pbds::null_trie_node_update<
343 null_node_update_pointer;
346 } // namespace detail
347 } // namespace __gnu_pbds
349 #endif // #ifndef PB_DS_PAT_TRIE_NODE_AND_IT_TRAITS_HPP