Debian Codegraph @

storage/mroonga/vendor/groonga/lib/dat/trie.hpp

raw symbols SCIP
1 /* -*- c-basic-offset: 2 -*- */cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/dat/trie.hpp`/
2 /*
3 Copyright(C) 2011-2016 Brazil
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License version 2.1 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
17 */
18
19 #pragma once
20
21 #include "array.hpp"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/dat/array.hpp`/
22 #include "header.hpp"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/dat/header.hpp`/
23 #include "node.hpp"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/dat/node.hpp`/
24 #include "block.hpp"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/dat/block.hpp`/
25 #include "entry.hpp"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/dat/entry.hpp`/
26 #include "key.hpp"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/dat/key.hpp`/
27 #include "file.hpp"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/dat/file.hpp`/
28
29 namespace grncxx . . $ grn/ {
30 namespace datcxx . . $ grn/dat/ {
31
32 class GRN_DAT_APIcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:41:11`! Triecxx . . $ grn/dat/Trie# {
33 public:
34 Triecxx . . $ grn/dat/Trie#Trie(49f6e7a06ebc5aa8).();
35 ~cxx . . $ grn/dat/Trie#`~Trie`(49f6e7a06ebc5aa8).Triecxx . . $ grn/dat/Trie#();
36
37 void createcxx . . $ grn/dat/Trie#create(effadf6d9e160e1f).(const char *file_name = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!,
38 UInt64cxx . . $ grn/dat/UInt64# file_size = 0,
39 UInt32cxx . . $ grn/dat/UInt32# max_num_keys = 0,
40 double num_nodes_per_key = 0.0,
41 double average_key_length = 0.0);
42
43 void createcxx . . $ grn/dat/Trie#create(f9e26080e2580924).(const Triecxx . . $ grn/dat/Trie# &trie,
44 const char *file_name = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!,
45 UInt64cxx . . $ grn/dat/UInt64# file_size = 0,
46 UInt32cxx . . $ grn/dat/UInt32# max_num_keys = 0,
47 double num_nodes_per_key = 0.0,
48 double average_key_length = 0.0);
49
50 void repaircxx . . $ grn/dat/Trie#repair(747e891cfe89c583).(const Triecxx . . $ grn/dat/Trie# &trie, const char *file_name = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
51
52 void opencxx . . $ grn/dat/Trie#open(85c52e162fed56f9).(const char *file_name);
53 void closecxx . . $ grn/dat/Trie#close(49f6e7a06ebc5aa8).();
54
55 void swapcxx . . $ grn/dat/Trie#swap(e01dee0d6759772e).(Triecxx . . $ grn/dat/Trie# *trie);
56
57 // Users can access a key by its position or ID.
58 const Keycxx . . $ grn/dat/Key# &get_keycxx . . $ grn/dat/Trie#get_key(ac1ad672cda84f14).(UInt32cxx . . $ grn/dat/UInt32# key_pos) const {
59 GRN_DAT_DEBUG_THROW_IFcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:239:10`!(key_pos >= next_key_pos());
60 return *reinterpret_cast<const Keycxx . . $ grn/dat/Key# *>(key_buf_cxx . . $ grn/dat/Trie#key_buf_..ptrcxx . . $ grn/dat/Array#ptr(5a2a78a048fb49a8).() + key_pos);
61 }
62 // If a specified ID is invalid, e.g. the key is already deleted, this
63 // function returns a reference to an invalid key object whose id() returns
64 // INVALID_KEY_ID.
65 const Keycxx . . $ grn/dat/Key# &ith_keycxx . . $ grn/dat/Trie#ith_key(ac1ad672cda84f14).(UInt32cxx . . $ grn/dat/UInt32# key_id) const {
66 if ((key_id >= min_key_idcxx . . $ grn/dat/Trie#min_key_id(ddd8539a2fcdd4ce).()) && (key_id <= max_key_idcxx . . $ grn/dat/Trie#max_key_id(ddd8539a2fcdd4ce).()) &&
67 ith_entrycxx . . $ grn/dat/Trie#ith_entry(4fe644a8fcf4134d).(key_id).is_validcxx . . $ grn/dat/Entry#is_valid(50ce9a9e25b4a850).()) {
68 return get_keycxx . . $ grn/dat/Trie#get_key(ac1ad672cda84f14).(ith_entrycxx . . $ grn/dat/Trie#ith_entry(4fe644a8fcf4134d).(key_id).key_poscxx . . $ grn/dat/Entry#key_pos(ddd8539a2fcdd4ce).());
69 }
70 return Keycxx . . $ grn/dat/Key#::invalid_keycxx . . $ grn/dat/Key#invalid_key(741ea5814372790).();
71 }
72
73 bool searchcxx . . $ grn/dat/Trie#search(7a1a0c33e94d66be).(const void *ptr, UInt32cxx . . $ grn/dat/UInt32# length, UInt32cxx . . $ grn/dat/UInt32# *key_pos = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) const {
74 return search_keycxx . . $ grn/dat/Trie#search_key(6e3e087186c1b682).(static_cast<const UInt8cxx . . $ grn/dat/UInt8# *>(ptr), length, key_pos);
75 }
76 // Longest prefix match search.
77 bool lcp_searchcxx . . $ grn/dat/Trie#lcp_search(7a1a0c33e94d66be).(const void *ptr, UInt32cxx . . $ grn/dat/UInt32# length,
78 UInt32cxx . . $ grn/dat/UInt32# *key_pos = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) const {
79 return lcp_search_keycxx . . $ grn/dat/Trie#lcp_search_key(6e3e087186c1b682).(static_cast<const UInt8cxx . . $ grn/dat/UInt8# *>(ptr), length, key_pos);
80 }
81
82 bool removecxx . . $ grn/dat/Trie#remove(dfa6e707f7696010).(UInt32cxx . . $ grn/dat/UInt32# key_id) {
83 const Keycxx . . $ grn/dat/Key# &key = ith_keycxx . . $ grn/dat/Trie#ith_key(ac1ad672cda84f14).(key_id);
84 if (key.is_validcxx . . $ grn/dat/Key#is_valid(50ce9a9e25b4a850).()) {
85 return removecxx . . $ grn/dat/Trie#remove(d56749dd304d51d2).(key.ptrcxx . . $ grn/dat/Key#ptr(3a8ef3fdc6e817ef).(), key.lengthcxx . . $ grn/dat/Key#length(ddd8539a2fcdd4ce).());
86 }
87 return false;
88 }
89 bool removecxx . . $ grn/dat/Trie#remove(d56749dd304d51d2).(const void *ptr, UInt32cxx . . $ grn/dat/UInt32# length) {
90 return remove_keycxx . . $ grn/dat/Trie#remove_key(41ee87f0602ae969).(static_cast<const UInt8cxx . . $ grn/dat/UInt8# *>(ptr), length);
91 }
92
93 bool insertcxx . . $ grn/dat/Trie#insert(ae4305a9e007baab).(const void *ptr, UInt32cxx . . $ grn/dat/UInt32# length, UInt32cxx . . $ grn/dat/UInt32# *key_pos = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
94 return insert_keycxx . . $ grn/dat/Trie#insert_key(72b38b1922c13078).(static_cast<const UInt8cxx . . $ grn/dat/UInt8# *>(ptr), length, key_pos);
95 }
96
97 bool updatecxx . . $ grn/dat/Trie#update(79b99470cec845e1).(UInt32cxx . . $ grn/dat/UInt32# key_id, const void *ptr, UInt32cxx . . $ grn/dat/UInt32# length,
98 UInt32cxx . . $ grn/dat/UInt32# *key_pos = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
99 return update_keycxx . . $ grn/dat/Trie#update_key(e88d0583c9a0e46c).(ith_keycxx . . $ grn/dat/Trie#ith_key(ac1ad672cda84f14).(key_id), static_cast<const UInt8cxx . . $ grn/dat/UInt8# *>(ptr),
100 length, key_pos);
101 }
102 bool updatecxx . . $ grn/dat/Trie#update(f81369781b5607b4).(const void *src_ptr, UInt32cxx . . $ grn/dat/UInt32# src_length,
103 const void *dest_ptr, UInt32cxx . . $ grn/dat/UInt32# dest_length,
104 UInt32cxx . . $ grn/dat/UInt32# *key_pos = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
105 UInt32cxx . . $ grn/dat/UInt32# src_key_pos;
106 if (!searchcxx . . $ grn/dat/Trie#search(7a1a0c33e94d66be).(src_ptr, src_length, &src_key_pos)) {
107 return false;
108 }
109 const Keycxx . . $ grn/dat/Key# &src_key = get_keycxx . . $ grn/dat/Trie#get_key(ac1ad672cda84f14).(src_key_pos);
110 return update_keycxx . . $ grn/dat/Trie#update_key(e88d0583c9a0e46c).(src_key, static_cast<const UInt8cxx . . $ grn/dat/UInt8# *>(dest_ptr),
111 dest_length, key_pos);
112 }
113
114 const Nodecxx . . $ grn/dat/Node# &ith_nodecxx . . $ grn/dat/Trie#ith_node(cc2414b1dc013100).(UInt32cxx . . $ grn/dat/UInt32# i) const {
115 GRN_DAT_DEBUG_THROW_IFcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:239:10`!(i >= num_nodes());
116 return nodes_cxx . . $ grn/dat/Trie#nodes_.[cxx . . $ grn/dat/Array#`operator[]`(324713ecd9036b86).i];
117 }
118 const Blockcxx . . $ grn/dat/Block# &ith_blockcxx . . $ grn/dat/Trie#ith_block(f32ad7510a8dec00).(UInt32cxx . . $ grn/dat/UInt32# i) const {
119 GRN_DAT_DEBUG_THROW_IFcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:239:10`!(i >= num_blocks());
120 return blocks_cxx . . $ grn/dat/Trie#blocks_.[cxx . . $ grn/dat/Array#`operator[]`(324713ecd9036b86).i];
121 }
122 const Entrycxx . . $ grn/dat/Entry# &ith_entrycxx . . $ grn/dat/Trie#ith_entry(4fe644a8fcf4134d).(UInt32cxx . . $ grn/dat/UInt32# i) const {
123 GRN_DAT_DEBUG_THROW_IFcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:239:10`!(i < min_key_id());
124 GRN_DAT_DEBUG_THROW_IFcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:239:10`!(i > max_key_id());
125 return entries_cxx . . $ grn/dat/Trie#entries_.[cxx . . $ grn/dat/Array#`operator[]`(324713ecd9036b86).i];
126 }
127
128 const Headercxx . . $ grn/dat/Header# &headercxx . . $ grn/dat/Trie#header(6078b5dde486d212).() const {
129 return *header_cxx . . $ grn/dat/Trie#header_.;
130 }
131
132 UInt64cxx . . $ grn/dat/UInt64# file_sizecxx . . $ grn/dat/Trie#file_size(fe4d2d262d4164a8).() const {
133 return header_cxx . . $ grn/dat/Trie#header_.->file_sizecxx . . $ grn/dat/Header#file_size(fe4d2d262d4164a8).();
134 }
135 UInt64cxx . . $ grn/dat/UInt64# virtual_sizecxx . . $ grn/dat/Trie#virtual_size(fe4d2d262d4164a8).() const {
136 return sizeof(Headercxx . . $ grn/dat/Header#)
137 + (sizeof(Entrycxx . . $ grn/dat/Entry#) * num_keyscxx . . $ grn/dat/Trie#num_keys(ddd8539a2fcdd4ce).())
138 + (sizeof(Blockcxx . . $ grn/dat/Block#) * num_blockscxx . . $ grn/dat/Trie#num_blocks(ddd8539a2fcdd4ce).())
139 + (sizeof(Nodecxx . . $ grn/dat/Node#) * num_nodescxx . . $ grn/dat/Trie#num_nodes(ddd8539a2fcdd4ce).())
140 + total_key_lengthcxx . . $ grn/dat/Trie#total_key_length(ddd8539a2fcdd4ce).();
141 }
142 UInt32cxx . . $ grn/dat/UInt32# total_key_lengthcxx . . $ grn/dat/Trie#total_key_length(ddd8539a2fcdd4ce).() const {
143 return header_cxx . . $ grn/dat/Trie#header_.->total_key_lengthcxx . . $ grn/dat/Header#total_key_length(ddd8539a2fcdd4ce).();
144 }
145 UInt32cxx . . $ grn/dat/UInt32# num_keyscxx . . $ grn/dat/Trie#num_keys(ddd8539a2fcdd4ce).() const {
146 return header_cxx . . $ grn/dat/Trie#header_.->num_keyscxx . . $ grn/dat/Header#num_keys(ddd8539a2fcdd4ce).();
147 }
148 UInt32cxx . . $ grn/dat/UInt32# min_key_idcxx . . $ grn/dat/Trie#min_key_id(ddd8539a2fcdd4ce).() const {
149 return header_cxx . . $ grn/dat/Trie#header_.->min_key_idcxx . . $ grn/dat/Header#min_key_id(ddd8539a2fcdd4ce).();
150 }
151 UInt32cxx . . $ grn/dat/UInt32# next_key_idcxx . . $ grn/dat/Trie#next_key_id(ddd8539a2fcdd4ce).() const {
152 return header_cxx . . $ grn/dat/Trie#header_.->next_key_idcxx . . $ grn/dat/Header#next_key_id(ddd8539a2fcdd4ce).();
153 }
154 UInt32cxx . . $ grn/dat/UInt32# max_key_idcxx . . $ grn/dat/Trie#max_key_id(ddd8539a2fcdd4ce).() const {
155 return header_cxx . . $ grn/dat/Trie#header_.->max_key_idcxx . . $ grn/dat/Header#max_key_id(ddd8539a2fcdd4ce).();
156 }
157 UInt32cxx . . $ grn/dat/UInt32# max_num_keyscxx . . $ grn/dat/Trie#max_num_keys(ddd8539a2fcdd4ce).() const {
158 return header_cxx . . $ grn/dat/Trie#header_.->max_num_keyscxx . . $ grn/dat/Header#max_num_keys(ddd8539a2fcdd4ce).();
159 }
160 UInt32cxx . . $ grn/dat/UInt32# num_nodescxx . . $ grn/dat/Trie#num_nodes(ddd8539a2fcdd4ce).() const {
161 return header_cxx . . $ grn/dat/Trie#header_.->num_nodescxx . . $ grn/dat/Header#num_nodes(ddd8539a2fcdd4ce).();
162 }
163 UInt32cxx . . $ grn/dat/UInt32# num_phantomscxx . . $ grn/dat/Trie#num_phantoms(ddd8539a2fcdd4ce).() const {
164 return header_cxx . . $ grn/dat/Trie#header_.->num_phantomscxx . . $ grn/dat/Header#num_phantoms(ddd8539a2fcdd4ce).();
165 }
166 UInt32cxx . . $ grn/dat/UInt32# num_zombiescxx . . $ grn/dat/Trie#num_zombies(ddd8539a2fcdd4ce).() const {
167 return header_cxx . . $ grn/dat/Trie#header_.->num_zombiescxx . . $ grn/dat/Header#num_zombies(ddd8539a2fcdd4ce).();
168 }
169 UInt32cxx . . $ grn/dat/UInt32# max_num_nodescxx . . $ grn/dat/Trie#max_num_nodes(ddd8539a2fcdd4ce).() const {
170 return header_cxx . . $ grn/dat/Trie#header_.->max_num_nodescxx . . $ grn/dat/Header#max_num_nodes(ddd8539a2fcdd4ce).();
171 }
172 UInt32cxx . . $ grn/dat/UInt32# num_blockscxx . . $ grn/dat/Trie#num_blocks(ddd8539a2fcdd4ce).() const {
173 return header_cxx . . $ grn/dat/Trie#header_.->num_blockscxx . . $ grn/dat/Header#num_blocks(ddd8539a2fcdd4ce).();
174 }
175 UInt32cxx . . $ grn/dat/UInt32# max_num_blockscxx . . $ grn/dat/Trie#max_num_blocks(ddd8539a2fcdd4ce).() const {
176 return header_cxx . . $ grn/dat/Trie#header_.->max_num_blockscxx . . $ grn/dat/Header#max_num_blocks(ddd8539a2fcdd4ce).();
177 }
178 UInt32cxx . . $ grn/dat/UInt32# next_key_poscxx . . $ grn/dat/Trie#next_key_pos(ddd8539a2fcdd4ce).() const {
179 return header_cxx . . $ grn/dat/Trie#header_.->next_key_poscxx . . $ grn/dat/Header#next_key_pos(ddd8539a2fcdd4ce).();
180 }
181 UInt32cxx . . $ grn/dat/UInt32# key_buf_sizecxx . . $ grn/dat/Trie#key_buf_size(ddd8539a2fcdd4ce).() const {
182 return header_cxx . . $ grn/dat/Trie#header_.->key_buf_sizecxx . . $ grn/dat/Header#key_buf_size(ddd8539a2fcdd4ce).();
183 }
184 UInt32cxx . . $ grn/dat/UInt32# status_flagscxx . . $ grn/dat/Trie#status_flags(ddd8539a2fcdd4ce).() const {
185 return header_cxx . . $ grn/dat/Trie#header_.->status_flagscxx . . $ grn/dat/Header#status_flags(ddd8539a2fcdd4ce).();
186 }
187
188 void clear_status_flagscxx . . $ grn/dat/Trie#clear_status_flags(49f6e7a06ebc5aa8).() {
189 header_cxx . . $ grn/dat/Trie#header_.->set_status_flagscxx . . $ grn/dat/Header#set_status_flags(cb2f890c2fdad230).(status_flagscxx . . $ grn/dat/Trie#status_flags(ddd8539a2fcdd4ce).() & ~CHANGING_MASKcxx . . $ grn/dat/CHANGING_MASK.);
190 }
191
192 void flushcxx . . $ grn/dat/Trie#flush(49f6e7a06ebc5aa8).();
193
194 private:
195 Filecxx . . $ grn/dat/File# file_cxx . . $ grn/dat/Trie#file_.;
196 Headercxx . . $ grn/dat/Header# *header_cxx . . $ grn/dat/Trie#header_.;
197 Arraycxx . . $ grn/dat/Array#<Nodecxx . . $ grn/dat/Node#> nodes_cxx . . $ grn/dat/Trie#nodes_.;
198 Arraycxx . . $ grn/dat/Array#<Blockcxx . . $ grn/dat/Block#> blocks_cxx . . $ grn/dat/Trie#blocks_.;
199 Arraycxx . . $ grn/dat/Array#<Entrycxx . . $ grn/dat/Entry#> entries_cxx . . $ grn/dat/Trie#entries_.;
200 Arraycxx . . $ grn/dat/Array#<UInt32cxx . . $ grn/dat/UInt32#> key_buf_cxx . . $ grn/dat/Trie#key_buf_.;
201
202 void create_filecxx . . $ grn/dat/Trie#create_file(effadf6d9e160e1f).(const char *file_name,
203 UInt64cxx . . $ grn/dat/UInt64# file_size,
204 UInt32cxx . . $ grn/dat/UInt32# max_num_keys,
205 double num_nodes_per_key,
206 double average_key_length);
207 void create_filecxx . . $ grn/dat/Trie#create_file(9790cea5b3a5c247).(const char *file_name,
208 UInt64cxx . . $ grn/dat/UInt64# file_size,
209 UInt32cxx . . $ grn/dat/UInt32# max_num_keys,
210 UInt32cxx . . $ grn/dat/UInt32# max_num_blocks,
211 UInt32cxx . . $ grn/dat/UInt32# key_buf_size);
212
213 void open_filecxx . . $ grn/dat/Trie#open_file(85c52e162fed56f9).(const char *file_name);
214
215 void map_addresscxx . . $ grn/dat/Trie#map_address(5d22bdacc48458e8).(void *address);
216
217 void build_from_triecxx . . $ grn/dat/Trie#build_from_trie(47c3eab575beacb0).(const Triecxx . . $ grn/dat/Trie# &trie);
218 void build_from_triecxx . . $ grn/dat/Trie#build_from_trie(a88efb538d233dc2).(const Triecxx . . $ grn/dat/Trie# &trie, UInt32cxx . . $ grn/dat/UInt32# src, UInt32cxx . . $ grn/dat/UInt32# dest);
219
220 void repair_triecxx . . $ grn/dat/Trie#repair_trie(47c3eab575beacb0).(const Triecxx . . $ grn/dat/Trie# &trie);
221 void build_from_keyscxx . . $ grn/dat/Trie#build_from_keys(4517b282e5acf643).(const UInt32cxx . . $ grn/dat/UInt32# *begin, const UInt32cxx . . $ grn/dat/UInt32# *end,
222 UInt32cxx . . $ grn/dat/UInt32# depth, UInt32cxx . . $ grn/dat/UInt32# node_id);
223
224 void mkq_sortcxx . . $ grn/dat/Trie#mkq_sort(1b48257950641a0d).(UInt32cxx . . $ grn/dat/UInt32# *l, UInt32cxx . . $ grn/dat/UInt32# *r, UInt32cxx . . $ grn/dat/UInt32# depth);
225 void insertion_sortcxx . . $ grn/dat/Trie#insertion_sort(1b48257950641a0d).(UInt32cxx . . $ grn/dat/UInt32# *l, UInt32cxx . . $ grn/dat/UInt32# *r, UInt32cxx . . $ grn/dat/UInt32# depth);
226
227 inline int get_labelcxx . . $ grn/dat/Trie#get_label(f3c4abd0428a43c1).(UInt32cxx . . $ grn/dat/UInt32# key_id, UInt32cxx . . $ grn/dat/UInt32# depth) const;
228 inline int get_mediancxx . . $ grn/dat/Trie#get_median(63a5c3b276ccf2c0).(UInt32cxx . . $ grn/dat/UInt32# a, UInt32cxx . . $ grn/dat/UInt32# b, UInt32cxx . . $ grn/dat/UInt32# c, UInt32cxx . . $ grn/dat/UInt32# depth) const;
229 inline bool less_thancxx . . $ grn/dat/Trie#less_than(971ac2092be9c647).(UInt32cxx . . $ grn/dat/UInt32# lhs, UInt32cxx . . $ grn/dat/UInt32# rhs, UInt32cxx . . $ grn/dat/UInt32# depth) const;
230 inline static void swap_idscxx . . $ grn/dat/Trie#swap_ids(ce04c39653c001b6).(UInt32cxx . . $ grn/dat/UInt32# *lhs, UInt32cxx . . $ grn/dat/UInt32# *rhs);
231
232 bool search_keycxx . . $ grn/dat/Trie#search_key(6e3e087186c1b682).(const UInt8cxx . . $ grn/dat/UInt8# *ptr, UInt32cxx . . $ grn/dat/UInt32# length, UInt32cxx . . $ grn/dat/UInt32# *key_pos) const;
233 bool search_linkercxx . . $ grn/dat/Trie#search_linker(fcb4dcaf17b413c9).(const UInt8cxx . . $ grn/dat/UInt8# *ptr, UInt32cxx . . $ grn/dat/UInt32# length,
234 UInt32cxx . . $ grn/dat/UInt32# &node_id, UInt32cxx . . $ grn/dat/UInt32# &query_pos) const;
235
236 bool lcp_search_keycxx . . $ grn/dat/Trie#lcp_search_key(6e3e087186c1b682).(const UInt8cxx . . $ grn/dat/UInt8# *ptr, UInt32cxx . . $ grn/dat/UInt32# length, UInt32cxx . . $ grn/dat/UInt32# *key_pos) const;
237
238 bool remove_keycxx . . $ grn/dat/Trie#remove_key(41ee87f0602ae969).(const UInt8cxx . . $ grn/dat/UInt8# *ptr, UInt32cxx . . $ grn/dat/UInt32# length);
239
240 bool insert_keycxx . . $ grn/dat/Trie#insert_key(72b38b1922c13078).(const UInt8cxx . . $ grn/dat/UInt8# *ptr, UInt32cxx . . $ grn/dat/UInt32# length, UInt32cxx . . $ grn/dat/UInt32# *key_pos);
241 bool insert_linkercxx . . $ grn/dat/Trie#insert_linker(4a6d4260483f12ab).(const UInt8cxx . . $ grn/dat/UInt8# *ptr, UInt32cxx . . $ grn/dat/UInt32# length,
242 UInt32cxx . . $ grn/dat/UInt32# &node_id, UInt32cxx . . $ grn/dat/UInt32# query_pos);
243
244 bool update_keycxx . . $ grn/dat/Trie#update_key(e88d0583c9a0e46c).(const Keycxx . . $ grn/dat/Key# &key, const UInt8cxx . . $ grn/dat/UInt8# *ptr, UInt32cxx . . $ grn/dat/UInt32# length,
245 UInt32cxx . . $ grn/dat/UInt32# *key_pos);
246
247 UInt32cxx . . $ grn/dat/UInt32# insert_nodecxx . . $ grn/dat/Trie#insert_node(d18a354f71bab922).(UInt32cxx . . $ grn/dat/UInt32# node_id, UInt16cxx . . $ grn/dat/UInt16# label);
248 UInt32cxx . . $ grn/dat/UInt32# append_keycxx . . $ grn/dat/Trie#append_key(173b885284429e69).(const UInt8cxx . . $ grn/dat/UInt8# *ptr, UInt32cxx . . $ grn/dat/UInt32# length, UInt32cxx . . $ grn/dat/UInt32# key_id);
249
250 UInt32cxx . . $ grn/dat/UInt32# separatecxx . . $ grn/dat/Trie#separate(16fef09ca7e23a84).(const UInt8cxx . . $ grn/dat/UInt8# *ptr, UInt32cxx . . $ grn/dat/UInt32# length,
251 UInt32cxx . . $ grn/dat/UInt32# node_id, UInt32cxx . . $ grn/dat/UInt32# i);
252 void resolvecxx . . $ grn/dat/Trie#resolve(272d193675e92631).(UInt32cxx . . $ grn/dat/UInt32# node_id, UInt16cxx . . $ grn/dat/UInt16# label);
253 void migrate_nodescxx . . $ grn/dat/Trie#migrate_nodes(5a50487d8a975787).(UInt32cxx . . $ grn/dat/UInt32# node_id, UInt32cxx . . $ grn/dat/UInt32# dest_offset,
254 const UInt16cxx . . $ grn/dat/UInt16# *labels, UInt32cxx . . $ grn/dat/UInt32# num_labels);
255
256 UInt32cxx . . $ grn/dat/UInt32# find_offsetcxx . . $ grn/dat/Trie#find_offset(d1a687133290a15f).(const UInt16cxx . . $ grn/dat/UInt16# *labels, UInt32cxx . . $ grn/dat/UInt32# num_labels);
257
258 void reserve_nodecxx . . $ grn/dat/Trie#reserve_node(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# node_id);
259 void reserve_blockcxx . . $ grn/dat/Trie#reserve_block(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# block_id);
260
261 void update_block_levelcxx . . $ grn/dat/Trie#update_block_level(b4d55b1286ff73e8).(UInt32cxx . . $ grn/dat/UInt32# block_id, UInt32cxx . . $ grn/dat/UInt32# level);
262 void set_block_levelcxx . . $ grn/dat/Trie#set_block_level(b4d55b1286ff73e8).(UInt32cxx . . $ grn/dat/UInt32# block_id, UInt32cxx . . $ grn/dat/UInt32# level);
263 void unset_block_levelcxx . . $ grn/dat/Trie#unset_block_level(cb2f890c2fdad230).(UInt32cxx . . $ grn/dat/UInt32# block_id);
264
265 Nodecxx . . $ grn/dat/Node# &ith_nodecxx . . $ grn/dat/Trie#ith_node(945db613494e192f).(UInt32cxx . . $ grn/dat/UInt32# i) {
266 GRN_DAT_DEBUG_THROW_IFcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:239:10`!(i >= num_nodes());
267 return nodes_cxx . . $ grn/dat/Trie#nodes_.[cxx . . $ grn/dat/Array#`operator[]`(cbb7c2c208bf2972).i];
268 }
269 Blockcxx . . $ grn/dat/Block# &ith_blockcxx . . $ grn/dat/Trie#ith_block(95549d8a1402ec44).(UInt32cxx . . $ grn/dat/UInt32# i) {
270 GRN_DAT_DEBUG_THROW_IFcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:239:10`!(i >= num_blocks());
271 return blocks_cxx . . $ grn/dat/Trie#blocks_.[cxx . . $ grn/dat/Array#`operator[]`(cbb7c2c208bf2972).i];
272 }
273 Entrycxx . . $ grn/dat/Entry# &ith_entrycxx . . $ grn/dat/Trie#ith_entry(23ff61182d9f5125).(UInt32cxx . . $ grn/dat/UInt32# i) {
274 GRN_DAT_DEBUG_THROW_IFcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:239:10`!(i < min_key_id());
275 GRN_DAT_DEBUG_THROW_IFcxx . . $ `storage/mroonga/vendor/groonga/lib/dat/dat.hpp:239:10`!(i > (max_key_id() + 1));
276 return entries_cxx . . $ grn/dat/Trie#entries_.[cxx . . $ grn/dat/Array#`operator[]`(cbb7c2c208bf2972).i];
277 }
278
279 // Disallows copy and assignment.
280 Triecxx . . $ grn/dat/Trie#Trie(47c3eab575beacb0).(const Triecxx . . $ grn/dat/Trie# &);
281 Triecxx . . $ grn/dat/Trie# &operatorcxx . . $ grn/dat/Trie#`operator=`(8362e5fa6c35e643).=(const Triecxx . . $ grn/dat/Trie# &);
282 };
283
284 } // namespace dat
285 } // namespace grn