Debian Codegraph @

lib/obj.c

raw symbols SCIP
1 /*
2 Copyright (C) 2015-2018 Brazil
3 Copyright (C) 2018-2026 Sutou Kouhei <[email protected]>
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 as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include "grn.h"cxx . . $ `<file>/lib/grn.h`/
21 #include "grn_accessor.h"cxx . . $ `<file>/lib/grn_accessor.h`/
22 #include "grn_ctx_impl.h"cxx . . $ `<file>/lib/grn_ctx_impl.h`/
23 #include "grn_expr.h"cxx . . $ `<file>/lib/grn_expr.h`/
24 #include "grn_dat.h"cxx . . $ `<file>/lib/grn_dat.h`/
25 #include "grn_float.h"cxx . . $ `<file>/lib/grn_float.h`/
26 #include "grn_hash.h"cxx . . $ `<file>/lib/grn_hash.h`/
27 #include "grn_ii.h"cxx . . $ `<file>/lib/grn_ii.h`/
28 #include "grn_index_column.h"cxx . . $ `<file>/lib/grn_index_column.h`/
29 #include "grn_pat.h"cxx . . $ `<file>/lib/grn_pat.h`/
30 #include "grn_store.h"cxx . . $ `<file>/lib/grn_store.h`/
31 #include "grn_table.h"cxx . . $ `<file>/lib/grn_table.h`/
32 #include "grn_token_column.h"cxx . . $ `<file>/lib/grn_token_column.h`/
33
34 const char *
35 grn_obj_set_flag_to_stringcxx . . $ grn_obj_set_flag_to_string(f7ae7e56280f18ae).(int flags)
36 {
37 const char *message = "invalid set flag";
38
39 switch (flags & GRN_OBJ_SET_MASKcxx . . $ `include/groonga/groonga.h:1462:9`!) {
40 case GRN_OBJ_SETcxx . . $ `include/groonga/groonga.h:1466:9`!:
41 message = "set";
42 break;
43 case GRN_OBJ_INCRcxx . . $ `include/groonga/groonga.h:1470:9`!:
44 message = "increment";
45 break;
46 case GRN_OBJ_DECRcxx . . $ `include/groonga/groonga.h:1474:9`!:
47 message = "decrement";
48 break;
49 case GRN_OBJ_APPENDcxx . . $ `include/groonga/groonga.h:1478:9`!:
50 message = "append";
51 break;
52 case GRN_OBJ_PREPENDcxx . . $ `include/groonga/groonga.h:1482:9`!:
53 message = "prepend";
54 break;
55 default:
56 break;
57 }
58
59 return message;
60 }
61
62 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
63 grn_obj_is_truecxx . . $ grn_obj_is_true(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
64 {
65 if (!obj) {
66 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
67 }
68
69 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
70 case GRN_BULKcxx . . $ `include/groonga/groonga.h:868:9`!:
71 switch (obj->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.) {
72 case GRN_DB_BOOLcxx . . $ GRN_DB_BOOL.:
73 return GRN_BOOL_VALUEcxx . . $ `include/groonga/groonga.h:3097:9`!(obj);
74 case GRN_DB_INT32cxx . . $ GRN_DB_INT32.:
75 return GRN_INT32_VALUEcxx . . $ `include/groonga/groonga.h:3102:9`!(obj) != 0;
76 case GRN_DB_UINT32cxx . . $ GRN_DB_UINT32.:
77 return GRN_UINT32_VALUEcxx . . $ `include/groonga/groonga.h:3103:9`!(obj) != 0;
78 #ifdef GRN_HAVE_BFLOAT16
79 case GRN_DB_BFLOAT16:
80 {
81 grn_bfloat16 bfloat16_value;
82 bfloat16_value = GRN_BFLOAT16_VALUE(obj);
83 return grn_bfloat16_is_zero(bfloat16_value);
84 }
85 #endif
86 case GRN_DB_FLOAT32cxx . . $ GRN_DB_FLOAT32.:
87 {
88 float float_value;
89 float_value = GRN_FLOAT32_VALUEcxx . . $ `include/groonga/groonga.h:3107:9`!(obj);
90 return grn_float32_is_zerocxx . . $ grn_float32_is_zero(4e2b510d3867ab27).(float_value);
91 }
92 case GRN_DB_FLOATcxx . . $ GRN_DB_FLOAT.:
93 {
94 double float_value;
95 float_value = GRN_FLOAT_VALUEcxx . . $ `include/groonga/groonga.h:3108:9`!(obj);
96 return grn_float_is_zerocxx . . $ grn_float_is_zero(f8197d536af80c96).(float_value);
97 }
98 case GRN_DB_SHORT_TEXTcxx . . $ GRN_DB_SHORT_TEXT.:
99 case GRN_DB_TEXTcxx . . $ GRN_DB_TEXT.:
100 case GRN_DB_LONG_TEXTcxx . . $ GRN_DB_LONG_TEXT.:
101 return GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(obj) != 0;
102 default:
103 if (grn_id_maybe_tablecxx . . $ grn_id_maybe_table(a2a496425acc5b40).(ctx, obj->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.)) {
104 return GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(obj) > 0 && GRN_PTR_VALUEcxx . . $ `include/groonga/groonga.h:3111:9`!(obj) != GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!;
105 } else {
106 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
107 }
108 }
109 break;
110 case GRN_VECTORcxx . . $ `include/groonga/groonga.h:877:9`!:
111 if (grn_ctx_get_command_versioncxx . . $ grn_ctx_get_command_version(13d588302524a02f).(ctx) < GRN_COMMAND_VERSION_3cxx . . $ GRN_COMMAND_VERSION_3.) {
112 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
113 } else {
114 return grn_vector_sizecxx . . $ grn_vector_size(8dd58acc9865e889).(ctx, obj) > 0;
115 }
116 case GRN_UVECTORcxx . . $ `include/groonga/groonga.h:875:9`!:
117 if (grn_ctx_get_command_versioncxx . . $ grn_ctx_get_command_version(13d588302524a02f).(ctx) < GRN_COMMAND_VERSION_3cxx . . $ GRN_COMMAND_VERSION_3.) {
118 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
119 } else {
120 return grn_uvector_sizecxx . . $ grn_uvector_size(8dd58acc9865e889).(ctx, obj) > 0;
121 }
122 default:
123 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
124 }
125 }
126
127 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
128 grn_obj_is_temporarycxx . . $ grn_obj_is_temporary(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
129 {
130 if (!obj) {
131 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
132 }
133
134 if (!GRN_DB_OBJPcxx . . $ `lib/grn_db.h:371:9`!(obj)) {
135 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
136 }
137
138 if (DB_OBJcxx . . $ `lib/grn_db.h:62:9`!(obj)->idcxx . . $ $anonymous_type_4a7c1014017e4c5d_0#id. & GRN_OBJ_TMP_OBJECTcxx . . $ `lib/grn_db.h:368:9`!) {
139 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
140 }
141
142 if (DB_OBJcxx . . $ `lib/grn_db.h:62:9`!(obj)->idcxx . . $ $anonymous_type_4a7c1014017e4c5d_0#id. == GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!) {
143 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
144 }
145
146 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
147 }
148
149 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
150 grn_obj_is_builtincxx . . $ grn_obj_is_builtin(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
151 {
152 grn_idcxx . . $ grn_id# id;
153
154 if (!obj) {
155 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
156 }
157
158 id = grn_obj_idcxx . . $ grn_obj_id(8dd58acc9865e889).(ctx, obj);
159 return grn_id_is_builtincxx . . $ grn_id_is_builtin(a2a496425acc5b40).(ctx, id);
160 }
161
162 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
163 grn_obj_is_bulkcxx . . $ grn_obj_is_bulk(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
164 {
165 if (!obj) {
166 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
167 }
168
169 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_BULKcxx . . $ `include/groonga/groonga.h:868:9`!;
170 }
171
172 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
173 grn_obj_is_text_family_bulkcxx . . $ grn_obj_is_text_family_bulk(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
174 {
175 if (!grn_obj_is_bulkcxx . . $ grn_obj_is_bulk(a5760e5c319a06ee).(ctx, obj)) {
176 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
177 }
178
179 return grn_type_id_is_text_familycxx . . $ grn_type_id_is_text_family(a2a496425acc5b40).(ctx, obj->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.);
180 }
181
182 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
183 grn_obj_is_binary_family_bulkcxx . . $ grn_obj_is_binary_family_bulk(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
184 {
185 if (!grn_obj_is_bulkcxx . . $ grn_obj_is_bulk(a5760e5c319a06ee).(ctx, obj)) {
186 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
187 }
188
189 return grn_type_id_is_binary_familycxx . . $ grn_type_id_is_binary_family(a2a496425acc5b40).(ctx, obj->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.);
190 }
191
192 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
193 grn_obj_is_number_family_bulkcxx . . $ grn_obj_is_number_family_bulk(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
194 {
195 if (!grn_obj_is_bulkcxx . . $ grn_obj_is_bulk(a5760e5c319a06ee).(ctx, obj)) {
196 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
197 }
198
199 return grn_type_id_is_number_familycxx . . $ grn_type_id_is_number_family(a2a496425acc5b40).(ctx, obj->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.);
200 }
201
202 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
203 grn_obj_maybe_record_bulkcxx . . $ grn_obj_maybe_record_bulk(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
204 {
205 if (!grn_obj_is_bulkcxx . . $ grn_obj_is_bulk(a5760e5c319a06ee).(ctx, obj)) {
206 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
207 }
208
209 return grn_id_maybe_tablecxx . . $ grn_id_maybe_table(a2a496425acc5b40).(ctx, obj->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.);
210 }
211
212 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
213 grn_obj_is_vectorcxx . . $ grn_obj_is_vector(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
214 {
215 if (!obj) {
216 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
217 }
218
219 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_VECTORcxx . . $ `include/groonga/groonga.h:877:9`!;
220 }
221
222 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
223 grn_obj_is_text_family_vectorcxx . . $ grn_obj_is_text_family_vector(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
224 {
225 if (!grn_obj_is_vectorcxx . . $ grn_obj_is_vector(a5760e5c319a06ee).(ctx, obj)) {
226 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
227 }
228
229 return grn_type_id_is_text_familycxx . . $ grn_type_id_is_text_family(a2a496425acc5b40).(ctx, obj->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.);
230 }
231
232 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
233 grn_obj_is_binary_family_vectorcxx . . $ grn_obj_is_binary_family_vector(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
234 {
235 if (!grn_obj_is_vectorcxx . . $ grn_obj_is_vector(a5760e5c319a06ee).(ctx, obj)) {
236 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
237 }
238
239 return grn_type_id_is_binary_familycxx . . $ grn_type_id_is_binary_family(a2a496425acc5b40).(ctx, obj->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.);
240 }
241
242 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
243 grn_obj_is_number_family_vectorcxx . . $ grn_obj_is_number_family_vector(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
244 {
245 if (!grn_obj_is_uvectorcxx . . $ grn_obj_is_uvector(a5760e5c319a06ee).(ctx, obj)) {
246 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
247 }
248
249 return grn_type_id_is_number_familycxx . . $ grn_type_id_is_number_family(a2a496425acc5b40).(ctx, obj->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.);
250 }
251
252 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
253 grn_obj_is_weight_vectorcxx . . $ grn_obj_is_weight_vector(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
254 {
255 if (!grn_obj_is_vectorcxx . . $ grn_obj_is_vector(a5760e5c319a06ee).(ctx, obj)) {
256 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
257 }
258
259 return obj->headercxx . . $ _grn_obj#header..flagscxx . . $ _grn_obj_header#flags. & GRN_OBJ_WITH_WEIGHTcxx . . $ `include/groonga/groonga.h:785:9`!;
260 }
261
262 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
263 grn_obj_is_uvectorcxx . . $ grn_obj_is_uvector(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
264 {
265 if (!obj) {
266 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
267 }
268
269 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_UVECTORcxx . . $ `include/groonga/groonga.h:875:9`!;
270 }
271
272 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
273 grn_obj_is_weight_uvectorcxx . . $ grn_obj_is_weight_uvector(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
274 {
275 if (!grn_obj_is_uvectorcxx . . $ grn_obj_is_uvector(a5760e5c319a06ee).(ctx, obj)) {
276 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
277 }
278
279 return obj->headercxx . . $ _grn_obj#header..flagscxx . . $ _grn_obj_header#flags. & GRN_OBJ_WITH_WEIGHTcxx . . $ `include/groonga/groonga.h:785:9`!;
280 }
281
282 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
283 grn_obj_is_dbcxx . . $ grn_obj_is_db(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
284 {
285 if (!obj) {
286 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
287 }
288
289 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_DBcxx . . $ `include/groonga/groonga.h:899:9`!;
290 }
291
292 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
293 grn_obj_is_tablecxx . . $ grn_obj_is_table(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
294 {
295 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! is_table = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
296
297 if (!obj) {
298 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
299 }
300
301 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
302 case GRN_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:898:9`!:
303 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
304 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
305 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
306 is_table = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
307 break;
308 default:
309 break;
310 }
311
312 return is_table;
313 }
314
315 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
316 grn_obj_is_table_with_keycxx . . $ grn_obj_is_table_with_key(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
317 {
318 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! is_table_with_key = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
319
320 if (!obj) {
321 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
322 }
323
324 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
325 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
326 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
327 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
328 is_table_with_key = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
329 default:
330 break;
331 }
332
333 return is_table_with_key;
334 }
335
336 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
337 grn_obj_is_table_with_valuecxx . . $ grn_obj_is_table_with_value(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
338 {
339 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! is_table_with_value = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
340
341 if (!obj) {
342 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
343 }
344
345 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
346 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
347 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
348 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
349 case GRN_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:898:9`!:
350 is_table_with_value = DB_OBJcxx . . $ `lib/grn_db.h:62:9`!(obj)->rangecxx . . $ $anonymous_type_4a7c1014017e4c5d_0#range. != GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!;
351 default:
352 break;
353 }
354
355 return is_table_with_value;
356 }
357
358 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
359 grn_obj_is_lexiconcxx . . $ grn_obj_is_lexicon(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
360 {
361 if (!grn_obj_is_table_with_keycxx . . $ grn_obj_is_table_with_key(a5760e5c319a06ee).(ctx, obj)) {
362 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
363 }
364
365 grn_hashcxx . . $ grn_hash# *columns = grn_hash_createcxx . . $ grn_hash_create(db1bba7e0d64660).(ctx,
366 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!,
367 sizeof(grn_idcxx . . $ grn_id#),
368 0,
369 GRN_OBJ_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:688:9`! | GRN_HASH_TINYcxx . . $ `include/groonga/hash.h:26:9`!);
370 if (!columns) {
371 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
372 }
373 grn_table_columnscxx . . $ grn_table_columns(1e71eba22593aee7).(ctx, obj, "", 0, (grn_objcxx . . $ grn_obj# *)columns);
374 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! is_lexicon = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
375 if (grn_hash_sizecxx . . $ grn_hash_size(f05d4ba70b6338a4).(ctx, columns) > 0) {
376 GRN_HASH_EACH_BEGINcxx . . $ `include/groonga/hash.h:141:9`!(ctx, columns, cursor, id)
377 {
378 void *key;
379 grn_hash_cursor_get_keycxx . . $ grn_hash_cursor_get_key(248c0d78df691c42).(ctx, cursor, &key);
380 grn_idcxx . . $ grn_id# column_id = *((grn_idcxx . . $ grn_id# *)key);
381 grn_objcxx . . $ grn_obj# *column = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, column_id);
382 if (grn_obj_is_index_columncxx . . $ grn_obj_is_index_column(a5760e5c319a06ee).(ctx, column)) {
383 is_lexicon = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
384 }
385 grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, column);
386 if (is_lexicon) {
387 break;
388 }
389 }
390 GRN_HASH_EACH_ENDcxx . . $ `include/groonga/hash.h:159:9`!(ctx, cursor);
391 }
392 grn_hash_closecxx . . $ grn_hash_close(c005d027d163fb0b).(ctx, columns);
393 return is_lexicon;
394 }
395
396 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
397 grn_obj_is_lexicon_without_data_columncxx . . $ grn_obj_is_lexicon_without_data_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
398 {
399 if (!grn_obj_is_table_with_keycxx . . $ grn_obj_is_table_with_key(a5760e5c319a06ee).(ctx, obj)) {
400 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
401 }
402
403 grn_hashcxx . . $ grn_hash# *columns = grn_hash_createcxx . . $ grn_hash_create(db1bba7e0d64660).(ctx,
404 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!,
405 sizeof(grn_idcxx . . $ grn_id#),
406 0,
407 GRN_OBJ_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:688:9`! | GRN_HASH_TINYcxx . . $ `include/groonga/hash.h:26:9`!);
408 if (!columns) {
409 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
410 }
411 grn_table_columnscxx . . $ grn_table_columns(1e71eba22593aee7).(ctx, obj, "", 0, (grn_objcxx . . $ grn_obj# *)columns);
412 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! is_lexicon_without_data_column;
413 if (grn_hash_sizecxx . . $ grn_hash_size(f05d4ba70b6338a4).(ctx, columns) == 0) {
414 is_lexicon_without_data_column = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
415 } else {
416 is_lexicon_without_data_column = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
417 GRN_HASH_EACH_BEGINcxx . . $ `include/groonga/hash.h:141:9`!(ctx, columns, cursor, id)
418 {
419 void *key;
420 grn_hash_cursor_get_keycxx . . $ grn_hash_cursor_get_key(248c0d78df691c42).(ctx, cursor, &key);
421 grn_idcxx . . $ grn_id# column_id = *((grn_idcxx . . $ grn_id# *)key);
422 grn_objcxx . . $ grn_obj# *column = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, column_id);
423 if (!grn_obj_is_index_columncxx . . $ grn_obj_is_index_column(a5760e5c319a06ee).(ctx, column)) {
424 is_lexicon_without_data_column = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
425 }
426 grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, column);
427 if (!is_lexicon_without_data_column) {
428 break;
429 }
430 }
431 GRN_HASH_EACH_ENDcxx . . $ `include/groonga/hash.h:159:9`!(ctx, cursor);
432 }
433 grn_hash_closecxx . . $ grn_hash_close(c005d027d163fb0b).(ctx, columns);
434 return is_lexicon_without_data_column;
435 }
436
437 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
438 grn_obj_is_tiny_hash_tablecxx . . $ grn_obj_is_tiny_hash_table(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
439 {
440 if (!obj) {
441 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
442 }
443
444 if (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. != GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!) {
445 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
446 }
447
448 return obj->headercxx . . $ _grn_obj#header..flagscxx . . $ _grn_obj_header#flags. & GRN_HASH_TINYcxx . . $ `include/groonga/hash.h:26:9`!;
449 }
450
451 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
452 grn_obj_is_patricia_triecxx . . $ grn_obj_is_patricia_trie(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
453 {
454 if (!obj) {
455 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
456 }
457
458 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!;
459 }
460
461 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
462 grn_obj_is_result_setcxx . . $ grn_obj_is_result_set(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
463 {
464 if (!grn_obj_is_temporarycxx . . $ grn_obj_is_temporary(a5760e5c319a06ee).(ctx, obj)) {
465 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
466 }
467
468 if (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. != GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!) {
469 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
470 }
471
472 grn_table_flagscxx . . $ grn_table_flags# flags = 0;
473 grn_table_get_infocxx . . $ grn_table_get_info(a1e4a6d36d3aee7c).(ctx, obj, &flags, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
474 return flags & GRN_OBJ_WITH_SUBRECcxx . . $ `include/groonga/groonga.h:812:9`!;
475 }
476
477 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
478 grn_obj_is_columncxx . . $ grn_obj_is_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
479 {
480 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! is_column = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
481
482 if (!obj) {
483 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
484 }
485
486 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
487 case GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`!:
488 case GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!:
489 case GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!:
490 is_column = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
491 default:
492 break;
493 }
494
495 return is_column;
496 }
497
498 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
499 grn_obj_is_number_family_columncxx . . $ grn_obj_is_number_family_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
500 {
501 if (!grn_obj_is_columncxx . . $ grn_obj_is_column(a5760e5c319a06ee).(ctx, obj)) {
502 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
503 }
504
505 return grn_type_id_is_number_familycxx . . $ grn_type_id_is_number_family(a2a496425acc5b40).(ctx, grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, obj));
506 }
507
508 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
509 grn_obj_is_scalar_columncxx . . $ grn_obj_is_scalar_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
510 {
511 if (!grn_obj_is_columncxx . . $ grn_obj_is_column(a5760e5c319a06ee).(ctx, obj)) {
512 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
513 }
514
515 return (obj->headercxx . . $ _grn_obj#header..flagscxx . . $ _grn_obj_header#flags. & GRN_OBJ_COLUMN_TYPE_MASKcxx . . $ `include/groonga/groonga.h:726:9`!) ==
516 GRN_OBJ_COLUMN_SCALARcxx . . $ `include/groonga/groonga.h:731:9`!;
517 }
518
519 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
520 grn_obj_is_text_family_scalar_columncxx . . $ grn_obj_is_text_family_scalar_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
521 {
522 if (!grn_obj_is_scalar_columncxx . . $ grn_obj_is_scalar_column(a5760e5c319a06ee).(ctx, obj)) {
523 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
524 }
525
526 return grn_type_id_is_text_familycxx . . $ grn_type_id_is_text_family(a2a496425acc5b40).(ctx, grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, obj));
527 }
528
529 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
530 grn_obj_is_binary_family_scalar_columncxx . . $ grn_obj_is_binary_family_scalar_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
531 {
532 if (!grn_obj_is_scalar_columncxx . . $ grn_obj_is_scalar_column(a5760e5c319a06ee).(ctx, obj)) {
533 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
534 }
535
536 return grn_type_id_is_binary_familycxx . . $ grn_type_id_is_binary_family(a2a496425acc5b40).(ctx, grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, obj));
537 }
538
539 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
540 grn_obj_is_number_family_scalar_columncxx . . $ grn_obj_is_number_family_scalar_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
541 {
542 if (!grn_obj_is_scalar_columncxx . . $ grn_obj_is_scalar_column(a5760e5c319a06ee).(ctx, obj)) {
543 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
544 }
545
546 return grn_type_id_is_number_familycxx . . $ grn_type_id_is_number_family(a2a496425acc5b40).(ctx, grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, obj));
547 }
548
549 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
550 grn_obj_is_vector_columncxx . . $ grn_obj_is_vector_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
551 {
552 if (!grn_obj_is_columncxx . . $ grn_obj_is_column(a5760e5c319a06ee).(ctx, obj)) {
553 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
554 }
555
556 return (
557 (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!) &&
558 ((obj->headercxx . . $ _grn_obj#header..flagscxx . . $ _grn_obj_header#flags. & GRN_OBJ_COLUMN_TYPE_MASKcxx . . $ `include/groonga/groonga.h:726:9`!) == GRN_OBJ_COLUMN_VECTORcxx . . $ `include/groonga/groonga.h:736:9`!));
559 }
560
561 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
562 grn_obj_is_text_family_vector_columncxx . . $ grn_obj_is_text_family_vector_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
563 {
564 if (!grn_obj_is_vector_columncxx . . $ grn_obj_is_vector_column(a5760e5c319a06ee).(ctx, obj)) {
565 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
566 }
567
568 return grn_type_id_is_text_familycxx . . $ grn_type_id_is_text_family(a2a496425acc5b40).(ctx, grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, obj));
569 }
570
571 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
572 grn_obj_is_binary_family_vector_columncxx . . $ grn_obj_is_binary_family_vector_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
573 {
574 if (!grn_obj_is_vector_columncxx . . $ grn_obj_is_vector_column(a5760e5c319a06ee).(ctx, obj)) {
575 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
576 }
577
578 return grn_type_id_is_binary_familycxx . . $ grn_type_id_is_binary_family(a2a496425acc5b40).(ctx, grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, obj));
579 }
580
581 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
582 grn_obj_is_weight_vector_columncxx . . $ grn_obj_is_weight_vector_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
583 {
584 if (!grn_obj_is_vector_columncxx . . $ grn_obj_is_vector_column(a5760e5c319a06ee).(ctx, obj)) {
585 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
586 }
587
588 return (obj->headercxx . . $ _grn_obj#header..flagscxx . . $ _grn_obj_header#flags. & GRN_OBJ_WITH_WEIGHTcxx . . $ `include/groonga/groonga.h:785:9`!) == GRN_OBJ_WITH_WEIGHTcxx . . $ `include/groonga/groonga.h:785:9`!;
589 }
590
591 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
592 grn_obj_is_reference_columncxx . . $ grn_obj_is_reference_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
593 {
594 if (!grn_obj_is_columncxx . . $ grn_obj_is_column(a5760e5c319a06ee).(ctx, obj)) {
595 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
596 }
597
598 const grn_idcxx . . $ grn_id# range_id = grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, obj);
599 if (grn_id_is_builtincxx . . $ grn_id_is_builtin(a2a496425acc5b40).(ctx, range_id)) {
600 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
601 }
602
603 grn_objcxx . . $ grn_obj# *range = range = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, range_id);
604 if (!range) {
605 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
606 }
607
608 uint8_tcxx . . $ uint8_t# range_type = range->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.;
609 grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, range);
610
611 switch (range_type) {
612 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
613 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
614 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
615 case GRN_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:898:9`!:
616 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
617 default:
618 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
619 }
620 }
621
622 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
623 grn_obj_is_data_columncxx . . $ grn_obj_is_data_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
624 {
625 if (!grn_obj_is_columncxx . . $ grn_obj_is_column(a5760e5c319a06ee).(ctx, obj)) {
626 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
627 }
628
629 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`! ||
630 obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!;
631 }
632
633 /**
634 * \brief Check whether the specified object is an index column or not.
635 *
636 * \param ctx The context object
637 * \param obj The target object to check
638 *
639 * \return `true` if the object is exactly an index column, `false` otherwise.
640 */
641 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
642 grn_obj_is_index_columncxx . . $ grn_obj_is_index_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
643 {
644 if (!grn_obj_is_columncxx . . $ grn_obj_is_column(a5760e5c319a06ee).(ctx, obj)) {
645 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
646 }
647
648 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!;
649 }
650
651 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
652 grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
653 {
654 if (!obj) {
655 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
656 }
657
658 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_ACCESSORcxx . . $ `include/groonga/groonga.h:880:9`!;
659 }
660
661 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
662 grn_obj_is_id_accessorcxx . . $ grn_obj_is_id_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
663 {
664 grn_accessorcxx . . $ grn_accessor# *accessor;
665
666 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
667 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
668 }
669
670 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
671 if (accessor->nextcxx . . $ _grn_accessor#next.) {
672 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
673 }
674
675 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_IDcxx . . $ GRN_ACCESSOR_GET_ID.;
676 }
677
678 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
679 grn_obj_is_key_accessorcxx . . $ grn_obj_is_key_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
680 {
681 grn_accessorcxx . . $ grn_accessor# *accessor;
682
683 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
684 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
685 }
686
687 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
688 if (accessor->nextcxx . . $ _grn_accessor#next.) {
689 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
690 }
691
692 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_KEYcxx . . $ GRN_ACCESSOR_GET_KEY.;
693 }
694
695 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
696 grn_obj_is_value_accessorcxx . . $ grn_obj_is_value_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
697 {
698 grn_accessorcxx . . $ grn_accessor# *accessor;
699
700 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
701 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
702 }
703
704 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
705 if (accessor->nextcxx . . $ _grn_accessor#next.) {
706 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
707 }
708
709 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_VALUEcxx . . $ GRN_ACCESSOR_GET_VALUE.;
710 }
711
712 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
713 grn_obj_is_score_accessorcxx . . $ grn_obj_is_score_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
714 {
715 grn_accessorcxx . . $ grn_accessor# *accessor;
716
717 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
718 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
719 }
720
721 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
722 if (accessor->nextcxx . . $ _grn_accessor#next.) {
723 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
724 }
725
726 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_SCOREcxx . . $ GRN_ACCESSOR_GET_SCORE.;
727 }
728
729 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
730 grn_obj_is_referable_score_accessorcxx . . $ grn_obj_is_referable_score_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
731 {
732 if (!grn_obj_is_score_accessorcxx . . $ grn_obj_is_score_accessor(a5760e5c319a06ee).(ctx, obj)) {
733 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
734 }
735
736 grn_accessorcxx . . $ grn_accessor# *accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
737 grn_idcxx . . $ grn_id# parent_domain = accessor->objcxx . . $ _grn_accessor#obj.->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.;
738 if (!(parent_domain & GRN_OBJ_TMP_OBJECTcxx . . $ `lib/grn_db.h:368:9`!)) {
739 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
740 }
741
742 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! need_recursive_collect = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
743 grn_objcxx . . $ grn_obj# *parent = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, parent_domain);
744 if (parent) {
745 if (parent->headercxx . . $ _grn_obj#header..flagscxx . . $ _grn_obj_header#flags. & GRN_OBJ_WITH_SUBRECcxx . . $ `include/groonga/groonga.h:812:9`!) {
746 need_recursive_collect = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
747 }
748 grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, parent);
749 }
750
751 return !need_recursive_collect;
752 }
753
754 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
755 grn_obj_is_nsubrecs_accessorcxx . . $ grn_obj_is_nsubrecs_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
756 {
757 grn_accessorcxx . . $ grn_accessor# *accessor;
758
759 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
760 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
761 }
762
763 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
764 if (accessor->nextcxx . . $ _grn_accessor#next.) {
765 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
766 }
767
768 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_NSUBRECScxx . . $ GRN_ACCESSOR_GET_NSUBRECS.;
769 }
770
771 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
772 grn_obj_is_max_accessorcxx . . $ grn_obj_is_max_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
773 {
774 grn_accessorcxx . . $ grn_accessor# *accessor;
775
776 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
777 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
778 }
779
780 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
781 if (accessor->nextcxx . . $ _grn_accessor#next.) {
782 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
783 }
784
785 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_MAXcxx . . $ GRN_ACCESSOR_GET_MAX.;
786 }
787
788 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
789 grn_obj_is_min_accessorcxx . . $ grn_obj_is_min_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
790 {
791 grn_accessorcxx . . $ grn_accessor# *accessor;
792
793 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
794 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
795 }
796
797 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
798 if (accessor->nextcxx . . $ _grn_accessor#next.) {
799 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
800 }
801
802 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_MINcxx . . $ GRN_ACCESSOR_GET_MIN.;
803 }
804
805 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
806 grn_obj_is_sum_accessorcxx . . $ grn_obj_is_sum_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
807 {
808 grn_accessorcxx . . $ grn_accessor# *accessor;
809
810 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
811 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
812 }
813
814 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
815 if (accessor->nextcxx . . $ _grn_accessor#next.) {
816 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
817 }
818
819 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_SUMcxx . . $ GRN_ACCESSOR_GET_SUM.;
820 }
821
822 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
823 grn_obj_is_avg_accessorcxx . . $ grn_obj_is_avg_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
824 {
825 grn_accessorcxx . . $ grn_accessor# *accessor;
826
827 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
828 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
829 }
830
831 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
832 if (accessor->nextcxx . . $ _grn_accessor#next.) {
833 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
834 }
835
836 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_AVGcxx . . $ GRN_ACCESSOR_GET_AVG.;
837 }
838
839 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
840 grn_obj_is_mean_accessorcxx . . $ grn_obj_is_mean_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
841 {
842 grn_accessorcxx . . $ grn_accessor# *accessor;
843
844 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
845 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
846 }
847
848 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
849 if (accessor->nextcxx . . $ _grn_accessor#next.) {
850 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
851 }
852
853 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_MEANcxx . . $ GRN_ACCESSOR_GET_MEAN.;
854 }
855
856 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
857 grn_obj_is_column_value_accessorcxx . . $ grn_obj_is_column_value_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
858 {
859 grn_accessorcxx . . $ grn_accessor# *accessor;
860
861 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
862 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
863 }
864
865 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
866 if (accessor->nextcxx . . $ _grn_accessor#next.) {
867 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
868 }
869
870 return accessor->actioncxx . . $ _grn_accessor#action. == GRN_ACCESSOR_GET_COLUMN_VALUEcxx . . $ GRN_ACCESSOR_GET_COLUMN_VALUE.;
871 }
872
873 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
874 grn_obj_is_scalar_accessorcxx . . $ grn_obj_is_scalar_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
875 {
876 grn_accessorcxx . . $ grn_accessor# *accessor;
877
878 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
879 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
880 }
881
882 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
883 while (accessor->nextcxx . . $ _grn_accessor#next.) {
884 accessor = accessor->nextcxx . . $ _grn_accessor#next.;
885 }
886
887 switch (accessor->actioncxx . . $ _grn_accessor#action.) {
888 case GRN_ACCESSOR_GET_IDcxx . . $ GRN_ACCESSOR_GET_ID.:
889 case GRN_ACCESSOR_GET_SCOREcxx . . $ GRN_ACCESSOR_GET_SCORE.:
890 case GRN_ACCESSOR_GET_NSUBRECScxx . . $ GRN_ACCESSOR_GET_NSUBRECS.:
891 case GRN_ACCESSOR_GET_MAXcxx . . $ GRN_ACCESSOR_GET_MAX.:
892 case GRN_ACCESSOR_GET_MINcxx . . $ GRN_ACCESSOR_GET_MIN.:
893 case GRN_ACCESSOR_GET_SUMcxx . . $ GRN_ACCESSOR_GET_SUM.:
894 case GRN_ACCESSOR_GET_AVGcxx . . $ GRN_ACCESSOR_GET_AVG.:
895 case GRN_ACCESSOR_GET_MEANcxx . . $ GRN_ACCESSOR_GET_MEAN.:
896 case GRN_ACCESSOR_GET_VALUEcxx . . $ GRN_ACCESSOR_GET_VALUE.:
897 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
898 case GRN_ACCESSOR_GET_COLUMN_VALUEcxx . . $ GRN_ACCESSOR_GET_COLUMN_VALUE.:
899 return grn_obj_is_scalar_columncxx . . $ grn_obj_is_scalar_column(a5760e5c319a06ee).(ctx, accessor->objcxx . . $ _grn_accessor#obj.);
900 default:
901 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
902 }
903 }
904
905 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
906 grn_obj_is_text_family_scalar_accessorcxx . . $ grn_obj_is_text_family_scalar_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
907 {
908 grn_accessorcxx . . $ grn_accessor# *accessor;
909
910 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
911 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
912 }
913
914 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
915 while (accessor->nextcxx . . $ _grn_accessor#next.) {
916 accessor = accessor->nextcxx . . $ _grn_accessor#next.;
917 }
918
919 switch (accessor->actioncxx . . $ _grn_accessor#action.) {
920 case GRN_ACCESSOR_GET_IDcxx . . $ GRN_ACCESSOR_GET_ID.:
921 case GRN_ACCESSOR_GET_SCOREcxx . . $ GRN_ACCESSOR_GET_SCORE.:
922 case GRN_ACCESSOR_GET_NSUBRECScxx . . $ GRN_ACCESSOR_GET_NSUBRECS.:
923 case GRN_ACCESSOR_GET_MAXcxx . . $ GRN_ACCESSOR_GET_MAX.:
924 case GRN_ACCESSOR_GET_MINcxx . . $ GRN_ACCESSOR_GET_MIN.:
925 case GRN_ACCESSOR_GET_SUMcxx . . $ GRN_ACCESSOR_GET_SUM.:
926 case GRN_ACCESSOR_GET_AVGcxx . . $ GRN_ACCESSOR_GET_AVG.:
927 case GRN_ACCESSOR_GET_MEANcxx . . $ GRN_ACCESSOR_GET_MEAN.:
928 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
929 case GRN_ACCESSOR_GET_VALUEcxx . . $ GRN_ACCESSOR_GET_VALUE.:
930 return grn_type_id_is_text_familycxx . . $ grn_type_id_is_text_family(a2a496425acc5b40).(ctx,
931 grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, accessor->objcxx . . $ _grn_accessor#obj.));
932 case GRN_ACCESSOR_GET_COLUMN_VALUEcxx . . $ GRN_ACCESSOR_GET_COLUMN_VALUE.:
933 return grn_obj_is_text_family_scalar_columncxx . . $ grn_obj_is_text_family_scalar_column(a5760e5c319a06ee).(ctx, accessor->objcxx . . $ _grn_accessor#obj.);
934 default:
935 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
936 }
937 }
938
939 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
940 grn_obj_is_binary_family_scalar_accessorcxx . . $ grn_obj_is_binary_family_scalar_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
941 {
942 grn_accessorcxx . . $ grn_accessor# *accessor;
943
944 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
945 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
946 }
947
948 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
949 while (accessor->nextcxx . . $ _grn_accessor#next.) {
950 accessor = accessor->nextcxx . . $ _grn_accessor#next.;
951 }
952
953 switch (accessor->actioncxx . . $ _grn_accessor#action.) {
954 case GRN_ACCESSOR_GET_IDcxx . . $ GRN_ACCESSOR_GET_ID.:
955 case GRN_ACCESSOR_GET_SCOREcxx . . $ GRN_ACCESSOR_GET_SCORE.:
956 case GRN_ACCESSOR_GET_NSUBRECScxx . . $ GRN_ACCESSOR_GET_NSUBRECS.:
957 case GRN_ACCESSOR_GET_MAXcxx . . $ GRN_ACCESSOR_GET_MAX.:
958 case GRN_ACCESSOR_GET_MINcxx . . $ GRN_ACCESSOR_GET_MIN.:
959 case GRN_ACCESSOR_GET_SUMcxx . . $ GRN_ACCESSOR_GET_SUM.:
960 case GRN_ACCESSOR_GET_AVGcxx . . $ GRN_ACCESSOR_GET_AVG.:
961 case GRN_ACCESSOR_GET_MEANcxx . . $ GRN_ACCESSOR_GET_MEAN.:
962 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
963 case GRN_ACCESSOR_GET_VALUEcxx . . $ GRN_ACCESSOR_GET_VALUE.:
964 return grn_type_id_is_binary_familycxx . . $ grn_type_id_is_binary_family(a2a496425acc5b40).(ctx,
965 grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, accessor->objcxx . . $ _grn_accessor#obj.));
966 case GRN_ACCESSOR_GET_COLUMN_VALUEcxx . . $ GRN_ACCESSOR_GET_COLUMN_VALUE.:
967 return grn_obj_is_binary_family_scalar_columncxx . . $ grn_obj_is_binary_family_scalar_column(a5760e5c319a06ee).(ctx, accessor->objcxx . . $ _grn_accessor#obj.);
968 default:
969 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
970 }
971 }
972
973 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
974 grn_obj_is_number_family_scalar_accessorcxx . . $ grn_obj_is_number_family_scalar_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
975 {
976 grn_accessorcxx . . $ grn_accessor# *accessor;
977
978 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
979 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
980 }
981
982 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
983 while (accessor->nextcxx . . $ _grn_accessor#next.) {
984 accessor = accessor->nextcxx . . $ _grn_accessor#next.;
985 }
986
987 switch (accessor->actioncxx . . $ _grn_accessor#action.) {
988 case GRN_ACCESSOR_GET_IDcxx . . $ GRN_ACCESSOR_GET_ID.:
989 case GRN_ACCESSOR_GET_SCOREcxx . . $ GRN_ACCESSOR_GET_SCORE.:
990 case GRN_ACCESSOR_GET_NSUBRECScxx . . $ GRN_ACCESSOR_GET_NSUBRECS.:
991 case GRN_ACCESSOR_GET_MAXcxx . . $ GRN_ACCESSOR_GET_MAX.:
992 case GRN_ACCESSOR_GET_MINcxx . . $ GRN_ACCESSOR_GET_MIN.:
993 case GRN_ACCESSOR_GET_SUMcxx . . $ GRN_ACCESSOR_GET_SUM.:
994 case GRN_ACCESSOR_GET_AVGcxx . . $ GRN_ACCESSOR_GET_AVG.:
995 case GRN_ACCESSOR_GET_MEANcxx . . $ GRN_ACCESSOR_GET_MEAN.:
996 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
997 case GRN_ACCESSOR_GET_VALUEcxx . . $ GRN_ACCESSOR_GET_VALUE.:
998 return grn_type_id_is_number_familycxx . . $ grn_type_id_is_number_family(a2a496425acc5b40).(ctx,
999 grn_obj_get_rangecxx . . $ grn_obj_get_range(8dd58acc9865e889).(ctx, accessor->objcxx . . $ _grn_accessor#obj.));
1000 case GRN_ACCESSOR_GET_COLUMN_VALUEcxx . . $ GRN_ACCESSOR_GET_COLUMN_VALUE.:
1001 return grn_obj_is_number_family_scalar_columncxx . . $ grn_obj_is_number_family_scalar_column(a5760e5c319a06ee).(ctx, accessor->objcxx . . $ _grn_accessor#obj.);
1002 default:
1003 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1004 }
1005 }
1006
1007 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1008 grn_obj_is_vector_accessorcxx . . $ grn_obj_is_vector_accessor(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1009 {
1010 grn_accessorcxx . . $ grn_accessor# *accessor;
1011
1012 if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, obj)) {
1013 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1014 }
1015
1016 accessor = (grn_accessorcxx . . $ grn_accessor# *)obj;
1017 while (accessor->nextcxx . . $ _grn_accessor#next.) {
1018 accessor = accessor->nextcxx . . $ _grn_accessor#next.;
1019 }
1020
1021 switch (accessor->actioncxx . . $ _grn_accessor#action.) {
1022 case GRN_ACCESSOR_GET_COLUMN_VALUEcxx . . $ GRN_ACCESSOR_GET_COLUMN_VALUE.:
1023 return grn_obj_is_vector_columncxx . . $ grn_obj_is_vector_column(a5760e5c319a06ee).(ctx, accessor->objcxx . . $ _grn_accessor#obj.);
1024 default:
1025 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1026 }
1027 }
1028
1029 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1030 grn_obj_is_typecxx . . $ grn_obj_is_type(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1031 {
1032 if (!obj) {
1033 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1034 }
1035
1036 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_TYPEcxx . . $ `include/groonga/groonga.h:892:9`!;
1037 }
1038
1039 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1040 grn_obj_is_text_family_typecxx . . $ grn_obj_is_text_family_type(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1041 {
1042 if (!grn_obj_is_typecxx . . $ grn_obj_is_type(a5760e5c319a06ee).(ctx, obj)) {
1043 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1044 }
1045
1046 return grn_type_id_is_text_familycxx . . $ grn_type_id_is_text_family(a2a496425acc5b40).(ctx, grn_obj_idcxx . . $ grn_obj_id(8dd58acc9865e889).(ctx, obj));
1047 }
1048
1049 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1050 grn_obj_is_binary_family_typecxx . . $ grn_obj_is_binary_family_type(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1051 {
1052 if (!grn_obj_is_typecxx . . $ grn_obj_is_type(a5760e5c319a06ee).(ctx, obj)) {
1053 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1054 }
1055
1056 return grn_type_id_is_binary_familycxx . . $ grn_type_id_is_binary_family(a2a496425acc5b40).(ctx, grn_obj_idcxx . . $ grn_obj_id(8dd58acc9865e889).(ctx, obj));
1057 }
1058
1059 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1060 grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1061 {
1062 if (!obj) {
1063 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1064 }
1065
1066 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_PROCcxx . . $ `include/groonga/groonga.h:893:9`!;
1067 }
1068
1069 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1070 grn_obj_is_tokenizer_proccxx . . $ grn_obj_is_tokenizer_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1071 {
1072 grn_proccxx . . $ grn_proc# *proc;
1073
1074 if (!grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(ctx, obj)) {
1075 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1076 }
1077
1078 proc = (grn_proccxx . . $ grn_proc# *)obj;
1079 return proc->typecxx . . $ _grn_proc#type. == GRN_PROC_TOKENIZERcxx . . $ GRN_PROC_TOKENIZER.;
1080 }
1081
1082 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1083 grn_obj_is_command_proccxx . . $ grn_obj_is_command_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1084 {
1085 if (!grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(ctx, obj)) {
1086 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1087 }
1088
1089 grn_proccxx . . $ grn_proc# *proc = (grn_proccxx . . $ grn_proc# *)obj;
1090 return proc->typecxx . . $ _grn_proc#type. == GRN_PROC_COMMANDcxx . . $ GRN_PROC_COMMAND.;
1091 }
1092
1093 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1094 grn_obj_is_function_proccxx . . $ grn_obj_is_function_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1095 {
1096 grn_proccxx . . $ grn_proc# *proc;
1097
1098 if (!grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(ctx, obj)) {
1099 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1100 }
1101
1102 proc = (grn_proccxx . . $ grn_proc# *)obj;
1103 return proc->typecxx . . $ _grn_proc#type. == GRN_PROC_FUNCTIONcxx . . $ GRN_PROC_FUNCTION.;
1104 }
1105
1106 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1107 grn_obj_is_selector_proccxx . . $ grn_obj_is_selector_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1108 {
1109 grn_proccxx . . $ grn_proc# *proc;
1110
1111 if (!grn_obj_is_function_proccxx . . $ grn_obj_is_function_proc(a5760e5c319a06ee).(ctx, obj)) {
1112 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1113 }
1114
1115 proc = (grn_proccxx . . $ grn_proc# *)obj;
1116 return proc->callbackscxx . . $ _grn_proc#callbacks..functioncxx . . $ _grn_proc#$anonymous_type_5#function..selectorcxx . . $ _grn_proc#$anonymous_type_5#$anonymous_type_6#selector. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1117 }
1118
1119 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1120 grn_obj_is_selector_only_proccxx . . $ grn_obj_is_selector_only_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1121 {
1122 grn_proccxx . . $ grn_proc# *proc;
1123
1124 if (!grn_obj_is_selector_proccxx . . $ grn_obj_is_selector_proc(a5760e5c319a06ee).(ctx, obj)) {
1125 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1126 }
1127
1128 proc = (grn_proccxx . . $ grn_proc# *)obj;
1129 return proc->funcscxx . . $ _grn_proc#funcs.[PROC_INITcxx . . $ PROC_INIT.] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1130 }
1131
1132 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1133 grn_obj_is_applier_proccxx . . $ grn_obj_is_applier_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1134 {
1135 if (!grn_obj_is_function_proccxx . . $ grn_obj_is_function_proc(a5760e5c319a06ee).(ctx, obj)) {
1136 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1137 }
1138
1139 grn_proccxx . . $ grn_proc# *proc = (grn_proccxx . . $ grn_proc# *)obj;
1140 return proc->callbackscxx . . $ _grn_proc#callbacks..functioncxx . . $ _grn_proc#$anonymous_type_5#function..appliercxx . . $ _grn_proc#$anonymous_type_5#$anonymous_type_6#applier. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1141 }
1142
1143 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1144 grn_obj_is_sorter_proccxx . . $ grn_obj_is_sorter_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1145 {
1146 if (!grn_obj_is_function_proccxx . . $ grn_obj_is_function_proc(a5760e5c319a06ee).(ctx, obj)) {
1147 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1148 }
1149
1150 grn_proccxx . . $ grn_proc# *proc = (grn_proccxx . . $ grn_proc# *)obj;
1151 return proc->callbackscxx . . $ _grn_proc#callbacks..functioncxx . . $ _grn_proc#$anonymous_type_5#function..sortercxx . . $ _grn_proc#$anonymous_type_5#$anonymous_type_6#sorter. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1152 }
1153
1154 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1155 grn_obj_is_normalizer_proccxx . . $ grn_obj_is_normalizer_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1156 {
1157 grn_proccxx . . $ grn_proc# *proc;
1158
1159 if (!grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(ctx, obj)) {
1160 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1161 }
1162
1163 proc = (grn_proccxx . . $ grn_proc# *)obj;
1164 return proc->typecxx . . $ _grn_proc#type. == GRN_PROC_NORMALIZERcxx . . $ GRN_PROC_NORMALIZER.;
1165 }
1166
1167 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1168 grn_obj_is_token_filter_proccxx . . $ grn_obj_is_token_filter_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1169 {
1170 grn_proccxx . . $ grn_proc# *proc;
1171
1172 if (!grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(ctx, obj)) {
1173 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1174 }
1175
1176 proc = (grn_proccxx . . $ grn_proc# *)obj;
1177 return proc->typecxx . . $ _grn_proc#type. == GRN_PROC_TOKEN_FILTERcxx . . $ GRN_PROC_TOKEN_FILTER.;
1178 }
1179
1180 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1181 grn_obj_is_extractor_proccxx . . $ grn_obj_is_extractor_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1182 {
1183 grn_proccxx . . $ grn_proc# *proc;
1184
1185 if (!grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(ctx, obj)) {
1186 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1187 }
1188
1189 proc = (grn_proccxx . . $ grn_proc# *)obj;
1190 return proc->typecxx . . $ _grn_proc#type. == GRN_PROC_EXTRACTORcxx . . $ GRN_PROC_EXTRACTOR.;
1191 }
1192
1193 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1194 grn_obj_is_scorer_proccxx . . $ grn_obj_is_scorer_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1195 {
1196 grn_proccxx . . $ grn_proc# *proc;
1197
1198 if (!grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(ctx, obj)) {
1199 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1200 }
1201
1202 proc = (grn_proccxx . . $ grn_proc# *)obj;
1203 return proc->typecxx . . $ _grn_proc#type. == GRN_PROC_SCORERcxx . . $ GRN_PROC_SCORER.;
1204 }
1205
1206 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1207 grn_obj_is_window_function_proccxx . . $ grn_obj_is_window_function_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1208 {
1209 grn_proccxx . . $ grn_proc# *proc;
1210
1211 if (!grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(ctx, obj)) {
1212 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1213 }
1214
1215 proc = (grn_proccxx . . $ grn_proc# *)obj;
1216 return proc->typecxx . . $ _grn_proc#type. == GRN_PROC_WINDOW_FUNCTIONcxx . . $ GRN_PROC_WINDOW_FUNCTION.;
1217 }
1218
1219 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1220 grn_obj_is_aggregator_proccxx . . $ grn_obj_is_aggregator_proc(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1221 {
1222 grn_proccxx . . $ grn_proc# *proc;
1223
1224 if (!grn_obj_is_proccxx . . $ grn_obj_is_proc(a5760e5c319a06ee).(ctx, obj)) {
1225 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1226 }
1227
1228 proc = (grn_proccxx . . $ grn_proc# *)obj;
1229 return proc->typecxx . . $ _grn_proc#type. == GRN_PROC_AGGREGATORcxx . . $ GRN_PROC_AGGREGATOR.;
1230 }
1231
1232 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1233 grn_obj_is_exprcxx . . $ grn_obj_is_expr(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1234 {
1235 if (!obj) {
1236 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1237 }
1238
1239 return obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_EXPRcxx . . $ `include/groonga/groonga.h:894:9`!;
1240 }
1241
1242 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1243 grn_obj_is_visiblecxx . . $ grn_obj_is_visible(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1244 {
1245 if (!obj) {
1246 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1247 }
1248
1249 uint32_tcxx . . $ uint32_t# flags = 0;
1250 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
1251 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
1252 flags = ((grn_hashcxx . . $ grn_hash# *)obj)->headercxx . . $ _grn_hash#header..commoncxx . . $ _grn_hash#$anonymous_type_0#common.->flagscxx . . $ _grn_hash_header_common#flags.;
1253 break;
1254 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
1255 flags = ((grn_patcxx . . $ grn_pat# *)obj)->headercxx . . $ _grn_pat#header.->flagscxx . . $ grn_pat_header#flags.;
1256 break;
1257 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
1258 flags = ((grn_datcxx . . $ grn_dat# *)obj)->headercxx . . $ _grn_dat#header.->flagscxx . . $ grn_dat_header#flags.;
1259 break;
1260 case GRN_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:898:9`!:
1261 flags = grn_array_get_flagscxx . . $ grn_array_get_flags(8562ca5b89859874).(ctx, ((grn_arraycxx . . $ grn_array# *)obj));
1262 break;
1263 case GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`!:
1264 flags = ((grn_racxx . . $ grn_ra# *)obj)->headercxx . . $ _grn_ra#header.->flagscxx . . $ grn_ra_header#flags.;
1265 break;
1266 case GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!:
1267 flags = grn_ja_get_flagscxx . . $ grn_ja_get_flags(6709984c0d145bf7).(ctx, (grn_jacxx . . $ grn_ja# *)obj);
1268 break;
1269 case GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!:
1270 flags = ((grn_iicxx . . $ grn_ii# *)obj)->headercxx . . $ _grn_ii#header..commoncxx . . $ _grn_ii#$anonymous_type_0#common.->flagscxx . . $ _grn_ii_header_common#flags.;
1271 break;
1272 default:
1273 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1274 break;
1275 }
1276
1277 return !(flags & GRN_OBJ_INVISIBLEcxx . . $ `include/groonga/groonga.h:859:9`!);
1278 }
1279
1280 grn_rccxx . . $ grn_rc#
1281 grn_obj_set_visibilitycxx . . $ grn_obj_set_visibility(7f588588f63dc99e).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj, boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! is_visible)
1282 {
1283 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
1284
1285 if (!obj) {
1286 ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, "[obj][set-visibility] must not be NULL");
1287 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
1288 }
1289
1290 if (!(grn_obj_is_index_columncxx . . $ grn_obj_is_index_column(a5760e5c319a06ee).(ctx, obj) ||
1291 grn_obj_is_token_columncxx . . $ grn_obj_is_token_column(a5760e5c319a06ee).(ctx, obj) ||
1292 grn_obj_is_generated_columncxx . . $ grn_obj_is_generated_column(a5760e5c319a06ee).(ctx, obj))) {
1293 grn_objcxx . . $ grn_obj# inspected;
1294 GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&inspected, 0);
1295 grn_inspect_limitedcxx . . $ grn_inspect_limited(88456f97fe0d41a).(ctx, &inspected, obj);
1296 ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT,
1297 "[obj][set-visibility] "
1298 "must be an index column, a token column or a generated column: <%.*s>",
1299 (int)(GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&inspected)),
1300 GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&inspected));
1301 GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &inspected);
1302 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
1303 }
1304
1305 if (grn_obj_is_index_columncxx . . $ grn_obj_is_index_column(a5760e5c319a06ee).(ctx, obj)) {
1306 grn_ii_set_visibilitycxx . . $ grn_ii_set_visibility(beeb29eff0983613).(ctx, (grn_iicxx . . $ grn_ii# *)obj, is_visible);
1307 } else if (grn_obj_is_token_columncxx . . $ grn_obj_is_token_column(a5760e5c319a06ee).(ctx, obj)) {
1308 grn_ja_set_visibilitycxx . . $ grn_ja_set_visibility(862f3262ce6eb556).(ctx, (grn_jacxx . . $ grn_ja# *)obj, is_visible);
1309 }
1310
1311 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(GRN_SUCCESS);
1312 }
1313
1314 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1315 grn_obj_have_sourcecxx . . $ grn_obj_have_source(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1316 {
1317 if (!obj) {
1318 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1319 }
1320
1321 if (!GRN_DB_OBJPcxx . . $ `lib/grn_db.h:371:9`!(obj)) {
1322 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1323 }
1324
1325 return DB_OBJcxx . . $ `lib/grn_db.h:62:9`!(obj)->source_sizecxx . . $ $anonymous_type_4a7c1014017e4c5d_0#source_size. > 0;
1326 }
1327
1328 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1329 grn_obj_is_token_columncxx . . $ grn_obj_is_token_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1330 {
1331 return grn_obj_is_vector_columncxx . . $ grn_obj_is_vector_column(a5760e5c319a06ee).(ctx, obj) && grn_obj_have_sourcecxx . . $ grn_obj_have_source(a5760e5c319a06ee).(ctx, obj) &&
1332 ((grn_jacxx . . $ grn_ja# *)obj)->generatorcxx . . $ _grn_ja#generator..lengthcxx . . $ $anonymous_type_7f733dd816802915_0#length. == 0;
1333 }
1334
1335 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1336 grn_obj_is_generated_columncxx . . $ grn_obj_is_generated_column(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1337 {
1338 if (!obj) {
1339 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1340 }
1341
1342 grn_raw_stringcxx . . $ grn_raw_string# *generator = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1343 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
1344 case GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`!:
1345 generator = &(((grn_racxx . . $ grn_ra# *)obj)->generatorcxx . . $ _grn_ra#generator.);
1346 break;
1347 case GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!:
1348 generator = &(((grn_jacxx . . $ grn_ja# *)obj)->generatorcxx . . $ _grn_ja#generator.);
1349 break;
1350 default:
1351 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1352 }
1353 if (!grn_obj_have_sourcecxx . . $ grn_obj_have_source(a5760e5c319a06ee).(ctx, obj)) {
1354 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1355 }
1356
1357 return generator->lengthcxx . . $ $anonymous_type_7f733dd816802915_0#length. > 0;
1358 }
1359
1360 static void
1361 grn_db_reindexcxx . . $ grn_db_reindex(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *db)
1362 {
1363 grn_table_cursorcxx . . $ grn_table_cursor# *cursor;
1364 grn_idcxx . . $ grn_id# id;
1365
1366 cursor =
1367 grn_table_cursor_opencxx . . $ grn_table_cursor_open(a4cddc3087c69e91).(ctx, db, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, 0, 0, -1, GRN_CURSOR_BY_IDcxx . . $ `include/groonga/table.h:280:9`!);
1368 if (!cursor) {
1369 return;
1370 }
1371
1372 while ((id = grn_table_cursor_nextcxx . . $ grn_table_cursor_next(8dd58acc9865e889).(ctx, cursor)) != GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!) {
1373 grn_objcxx . . $ grn_obj# *object;
1374
1375 object = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, id);
1376 if (!object) {
1377 ERRCLRcxx . . $ `lib/grn_error.h:37:9`!(ctx);
1378 continue;
1379 }
1380
1381 switch (object->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
1382 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
1383 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
1384 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
1385 grn_obj_reindexcxx . . $ grn_obj_reindex(4865d068a46d0f83).(ctx, object);
1386 break;
1387 default:
1388 break;
1389 }
1390
1391 grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, object);
1392
1393 if (ctx->rccxx . . $ _grn_ctx#rc. != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1394 break;
1395 }
1396 }
1397 grn_table_cursor_closecxx . . $ grn_table_cursor_close(4865d068a46d0f83).(ctx, cursor);
1398 }
1399
1400 static void
1401 grn_table_reindexcxx . . $ grn_table_reindex(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table)
1402 {
1403 grn_hashcxx . . $ grn_hash# *columns;
1404
1405 columns = grn_hash_createcxx . . $ grn_hash_create(db1bba7e0d64660).(ctx,
1406 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!,
1407 sizeof(grn_idcxx . . $ grn_id#),
1408 0,
1409 GRN_OBJ_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:688:9`! | GRN_HASH_TINYcxx . . $ `include/groonga/hash.h:26:9`!);
1410 if (!columns) {
1411 ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_NO_MEMORY_AVAILABLE,
1412 "[table][reindex] failed to create a table to store columns");
1413 return;
1414 }
1415
1416 if (grn_table_columnscxx . . $ grn_table_columns(1e71eba22593aee7).(ctx, table, "", 0, (grn_objcxx . . $ grn_obj# *)columns) > 0) {
1417 grn_idcxx . . $ grn_id# *key;
1418 GRN_HASH_EACHcxx . . $ `include/groonga/hash.h:121:9`!(ctx, columns, id, &key, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, {
1419 grn_obj *column = grn_ctx_at(ctx, *key);
1420 if (column && column->header.type == GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!) {
1421 grn_obj_reindex(ctx, column);
1422 }
1423 });
1424 }
1425 grn_hash_closecxx . . $ grn_hash_close(c005d027d163fb0b).(ctx, columns);
1426 }
1427
1428 static void
1429 grn_data_column_reindexcxx . . $ grn_data_column_reindex(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *data_column)
1430 {
1431 grn_hookcxx . . $ grn_hook# *hooks;
1432
1433 if (grn_obj_is_token_columncxx . . $ grn_obj_is_token_column(a5760e5c319a06ee).(ctx, data_column)) {
1434 grn_token_column_buildcxx . . $ grn_token_column_build(cda3a5f3c2e53c6b).(ctx, data_column);
1435 }
1436
1437 for (hooks = DB_OBJcxx . . $ `lib/grn_db.h:62:9`!(data_column)->hookscxx . . $ $anonymous_type_4a7c1014017e4c5d_0#hooks.[GRN_HOOK_SETcxx . . $ GRN_HOOK_SET.]; hooks;
1438 hooks = hooks->nextcxx . . $ _grn_hook#next.) {
1439 grn_obj_default_set_value_hook_datacxx . . $ grn_obj_default_set_value_hook_data# *data = (void *)GRN_NEXT_ADDRcxx . . $ `lib/grn.h:731:9`!(hooks);
1440 grn_objcxx . . $ grn_obj# *target = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, data->targetcxx . . $ $anonymous_type_5d6f2f2d27272fbe_13#target.);
1441 if (target->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. != GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!) {
1442 continue;
1443 }
1444 grn_obj_reindexcxx . . $ grn_obj_reindex(4865d068a46d0f83).(ctx, target);
1445 if (ctx->rccxx . . $ _grn_ctx#rc. != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1446 break;
1447 }
1448 }
1449 }
1450
1451 grn_rccxx . . $ grn_rc#
1452 grn_obj_reindexcxx . . $ grn_obj_reindex(4865d068a46d0f83).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1453 {
1454 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
1455
1456 if (!obj) {
1457 ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, "[object][reindex] object must not be NULL");
1458 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
1459 }
1460
1461 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
1462 case GRN_DBcxx . . $ `include/groonga/groonga.h:899:9`!:
1463 grn_db_reindexcxx . . $ grn_db_reindex(cda3a5f3c2e53c6b).(ctx, obj);
1464 break;
1465 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
1466 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
1467 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
1468 grn_table_reindexcxx . . $ grn_table_reindex(cda3a5f3c2e53c6b).(ctx, obj);
1469 break;
1470 case GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`!:
1471 case GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!:
1472 grn_data_column_reindexcxx . . $ grn_data_column_reindex(cda3a5f3c2e53c6b).(ctx, obj);
1473 break;
1474 case GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!:
1475 grn_index_column_rebuildcxx . . $ grn_index_column_rebuild(4865d068a46d0f83).(ctx, obj);
1476 break;
1477 default:
1478 {
1479 grn_objcxx . . $ grn_obj# type_name;
1480 GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&type_name, 0);
1481 grn_inspect_typecxx . . $ grn_inspect_type(c7f5801913bdc673).(ctx, &type_name, obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.);
1482 ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT,
1483 "[object][reindex] object must be TABLE_HASH_KEY, "
1484 "TABLE_PAT_KEY, TABLE_DAT_KEY or COLUMN_INDEX: <%.*s>",
1485 (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&type_name),
1486 GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&type_name));
1487 GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &type_name);
1488 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
1489 }
1490 break;
1491 }
1492
1493 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
1494 }
1495
1496 const char *
1497 grn_obj_type_to_stringcxx . . $ grn_obj_type_to_string(42624c5f3be67010).(uint8_tcxx . . $ uint8_t# type)
1498 {
1499 switch (type) {
1500 case GRN_VOIDcxx . . $ `include/groonga/groonga.h:863:9`!:
1501 return "void";
1502 case GRN_BULKcxx . . $ `include/groonga/groonga.h:868:9`!:
1503 return "bulk";
1504 case GRN_PTRcxx . . $ `include/groonga/groonga.h:873:9`!:
1505 return "ptr";
1506 case GRN_UVECTORcxx . . $ `include/groonga/groonga.h:875:9`!:
1507 return "uvector";
1508 case GRN_PVECTORcxx . . $ `include/groonga/groonga.h:876:9`!:
1509 return "pvector";
1510 case GRN_VECTORcxx . . $ `include/groonga/groonga.h:877:9`!:
1511 return "vector";
1512 case GRN_MSGcxx . . $ `include/groonga/groonga.h:878:9`!:
1513 return "msg";
1514 case GRN_QUERYcxx . . $ `include/groonga/groonga.h:879:9`!:
1515 return "query";
1516 case GRN_ACCESSORcxx . . $ `include/groonga/groonga.h:880:9`!:
1517 return "accessor";
1518 case GRN_SNIPcxx . . $ `include/groonga/groonga.h:881:9`!:
1519 return "snip";
1520 case GRN_PATSNIPcxx . . $ `include/groonga/groonga.h:882:9`!:
1521 return "patsnip";
1522 case GRN_STRINGcxx . . $ `include/groonga/groonga.h:883:9`!:
1523 return "string";
1524 case GRN_CURSOR_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:885:9`!:
1525 return "cursor:table:hash_key";
1526 case GRN_CURSOR_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:886:9`!:
1527 return "cursor:table:pat_key";
1528 case GRN_CURSOR_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:887:9`!:
1529 return "cursor:table:dat_key";
1530 case GRN_CURSOR_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:888:9`!:
1531 return "cursor:table:no_key";
1532 case GRN_CURSOR_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:889:9`!:
1533 return "cursor:column:index";
1534 case GRN_CURSOR_COLUMN_GEO_INDEXcxx . . $ `include/groonga/groonga.h:890:9`!:
1535 return "cursor:column:geo_index";
1536 case GRN_CURSOR_CONFIGcxx . . $ `include/groonga/groonga.h:891:9`!:
1537 return "cursor:config";
1538 case GRN_TYPEcxx . . $ `include/groonga/groonga.h:892:9`!:
1539 return "type";
1540 case GRN_PROCcxx . . $ `include/groonga/groonga.h:893:9`!:
1541 return "proc";
1542 case GRN_EXPRcxx . . $ `include/groonga/groonga.h:894:9`!:
1543 return "expr";
1544 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
1545 return "table:hash_key";
1546 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
1547 return "table:pat_key";
1548 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
1549 return "table:dat_key";
1550 case GRN_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:898:9`!:
1551 return "table:no_key";
1552 case GRN_DBcxx . . $ `include/groonga/groonga.h:899:9`!:
1553 return "db";
1554 case GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`!:
1555 return "column:fix_size";
1556 case GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!:
1557 return "column:var_size";
1558 case GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!:
1559 return "column:index";
1560 default:
1561 return "unknown";
1562 }
1563 }
1564
1565 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1566 grn_obj_type_is_tablecxx . . $ grn_obj_type_is_table(cef82f9be00a201a).(uint8_tcxx . . $ uint8_t# type)
1567 {
1568 switch (type) {
1569 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
1570 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
1571 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
1572 case GRN_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:898:9`!:
1573 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
1574 default:
1575 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1576 }
1577 }
1578
1579 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1580 grn_obj_type_is_columncxx . . $ grn_obj_type_is_column(cef82f9be00a201a).(uint8_tcxx . . $ uint8_t# type)
1581 {
1582 switch (type) {
1583 case GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`!:
1584 case GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!:
1585 case GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!:
1586 return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!;
1587 default:
1588 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1589 }
1590 }
1591
1592 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1593 grn_obj_name_is_columncxx . . $ grn_obj_name_is_column(da3161f0ad1ba10a).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *name, int name_len)
1594 {
1595 if (!name) {
1596 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1597 }
1598
1599 if (name_len < 0) {
1600 name_len = (int)strlencxx . . $ strlen(751346f8406fd082).(name);
1601 }
1602
1603 return memchrcxx . . $ `<external>/13506128340496143423/string.h:121:11`!(name, GRN_DB_DELIMITERcxx . . $ `lib/grn_db.h:42:9`!, (size_t)name_len) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1604 }
1605
1606 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
1607 grn_obj_is_emptycxx . . $ grn_obj_is_empty(3e95c2896e41ada).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj, grn_idcxx . . $ grn_id# id)
1608 {
1609 if (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!) {
1610 return grn_ja_is_emptycxx . . $ grn_ja_is_empty(b41d3b651c6e39e0).(ctx, (grn_jacxx . . $ grn_ja# *)obj, id);
1611 }
1612 ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_FUNCTION_NOT_IMPLEMENTED,
1613 "[obj][is-empty] unsupported type: %s",
1614 grn_obj_type_to_string(obj->header.type));
1615 return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!;
1616 }
1617
1618 grn_iocxx . . $ grn_io# *
1619 grn_obj_get_iocxx . . $ grn_obj_get_io(9c26d6a37d40f560).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1620 {
1621 grn_iocxx . . $ grn_io# *io = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1622
1623 if (!obj) {
1624 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
1625 }
1626
1627 if (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_DBcxx . . $ `include/groonga/groonga.h:899:9`!) {
1628 obj = ((grn_dbcxx . . $ grn_db# *)obj)->keyscxx . . $ _grn_db#keys.;
1629 }
1630
1631 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
1632 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
1633 io = ((grn_patcxx . . $ grn_pat# *)obj)->iocxx . . $ _grn_pat#io.;
1634 break;
1635 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
1636 io = ((grn_datcxx . . $ grn_dat# *)obj)->iocxx . . $ _grn_dat#io.;
1637 break;
1638 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
1639 io = ((grn_hashcxx . . $ grn_hash# *)obj)->iocxx . . $ _grn_hash#io.;
1640 break;
1641 case GRN_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:898:9`!:
1642 io = ((grn_arraycxx . . $ grn_array# *)obj)->iocxx . . $ _grn_array#io.;
1643 break;
1644 case GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!:
1645 io = ((grn_jacxx . . $ grn_ja# *)obj)->iocxx . . $ _grn_ja#io.;
1646 break;
1647 case GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`!:
1648 io = ((grn_racxx . . $ grn_ra# *)obj)->iocxx . . $ _grn_ra#io.;
1649 break;
1650 case GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!:
1651 io = ((grn_iicxx . . $ grn_ii# *)obj)->segcxx . . $ _grn_ii#seg.;
1652 break;
1653 }
1654
1655 return io;
1656 }
1657
1658 size_t
1659 grn_obj_get_disk_usagecxx . . $ grn_obj_get_disk_usage(2ef1bf33a3428727).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1660 {
1661 size_t usage = 0;
1662
1663 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
1664
1665 if (!obj) {
1666 ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, "[object][disk-usage] object must not be NULL");
1667 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(0);
1668 }
1669
1670 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
1671 case GRN_DBcxx . . $ `include/groonga/groonga.h:899:9`!:
1672 {
1673 grn_dbcxx . . $ grn_db# *db = (grn_dbcxx . . $ grn_db# *)obj;
1674 usage = grn_obj_get_disk_usagecxx . . $ grn_obj_get_disk_usage(2ef1bf33a3428727).(ctx, db->keyscxx . . $ _grn_db#keys.);
1675 if (db->specscxx . . $ _grn_db#specs.) {
1676 usage += grn_obj_get_disk_usagecxx . . $ grn_obj_get_disk_usage(2ef1bf33a3428727).(ctx, (grn_objcxx . . $ grn_obj# *)(db->specscxx . . $ _grn_db#specs.));
1677 }
1678 usage += grn_obj_get_disk_usagecxx . . $ grn_obj_get_disk_usage(2ef1bf33a3428727).(ctx, (grn_objcxx . . $ grn_obj# *)(db->configcxx . . $ _grn_db#config.));
1679 }
1680 break;
1681 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
1682 usage = grn_dat_get_disk_usagecxx . . $ grn_dat_get_disk_usage(d1690dc68fac5dd8).(ctx, (grn_datcxx . . $ grn_dat# *)obj);
1683 break;
1684 case GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!:
1685 usage = grn_ii_get_disk_usagecxx . . $ grn_ii_get_disk_usage(dc1cd48ede83695b).(ctx, (grn_iicxx . . $ grn_ii# *)obj);
1686 break;
1687 default:
1688 {
1689 grn_iocxx . . $ grn_io# *io;
1690 io = grn_obj_get_iocxx . . $ grn_obj_get_io(9c26d6a37d40f560).(ctx, obj);
1691 if (io) {
1692 usage = grn_io_get_disk_usagecxx . . $ grn_io_get_disk_usage(c4749d9481ec000d).(ctx, io);
1693 }
1694 }
1695 break;
1696 }
1697
1698 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(usage);
1699 }
1700
1701 grn_rccxx . . $ grn_rc#
1702 grn_obj_set_option_valuescxx . . $ grn_obj_set_option_values(7fd90b291c306ffc).(grn_ctxcxx . . $ grn_ctx# *ctx,
1703 grn_objcxx . . $ grn_obj# *obj,
1704 const char *name,
1705 int name_length,
1706 grn_objcxx . . $ grn_obj# *values)
1707 {
1708 grn_idcxx . . $ grn_id# id;
1709
1710 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
1711
1712 id = grn_obj_idcxx . . $ grn_obj_id(8dd58acc9865e889).(ctx, obj);
1713 if (id & GRN_OBJ_TMP_OBJECTcxx . . $ `lib/grn_db.h:368:9`!) {
1714 grn_options_setcxx . . $ grn_options_set(f0c6074d310dc72c).(ctx,
1715 ctx->implcxx . . $ _grn_ctx#impl.->temporary_optionscxx . . $ _grn_ctx_impl#temporary_options.,
1716 id & ~GRN_OBJ_TMP_OBJECTcxx . . $ `lib/grn_db.h:368:9`!,
1717 name,
1718 name_length,
1719 values);
1720 } else {
1721 grn_db_set_option_valuescxx . . $ grn_db_set_option_values(bb1c5133a77f6ca5).(ctx,
1722 grn_ctx_dbcxx . . $ grn_ctx_db(ddec8e3b1327ceae).(ctx),
1723 id,
1724 name,
1725 name_length,
1726 values);
1727 }
1728
1729 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
1730 }
1731
1732 grn_option_revisioncxx . . $ grn_option_revision#
1733 grn_obj_get_option_valuescxx . . $ grn_obj_get_option_values(ec9d8fe34bb0e258).(grn_ctxcxx . . $ grn_ctx# *ctx,
1734 grn_objcxx . . $ grn_obj# *obj,
1735 const char *name,
1736 int name_length,
1737 grn_option_revisioncxx . . $ grn_option_revision# revision,
1738 grn_objcxx . . $ grn_obj# *values)
1739 {
1740 grn_idcxx . . $ grn_id# id;
1741 grn_option_revisioncxx . . $ grn_option_revision# returned_revision;
1742
1743 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
1744
1745 id = grn_obj_idcxx . . $ grn_obj_id(8dd58acc9865e889).(ctx, obj);
1746 if (id & GRN_OBJ_TMP_OBJECTcxx . . $ `lib/grn_db.h:368:9`!) {
1747 returned_revision = grn_options_getcxx . . $ grn_options_get(aa8c194dfc5d7720).(ctx,
1748 ctx->implcxx . . $ _grn_ctx#impl.->temporary_optionscxx . . $ _grn_ctx_impl#temporary_options.,
1749 id & ~GRN_OBJ_TMP_OBJECTcxx . . $ `lib/grn_db.h:368:9`!,
1750 name,
1751 name_length,
1752 revision,
1753 values);
1754 } else {
1755 returned_revision = grn_db_get_option_valuescxx . . $ grn_db_get_option_values(6d94dea19d0338b7).(ctx,
1756 grn_ctx_dbcxx . . $ grn_ctx_db(ddec8e3b1327ceae).(ctx),
1757 id,
1758 name,
1759 name_length,
1760 revision,
1761 values);
1762 }
1763
1764 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(returned_revision);
1765 }
1766
1767 grn_rccxx . . $ grn_rc#
1768 grn_obj_clear_option_valuescxx . . $ grn_obj_clear_option_values(4865d068a46d0f83).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1769 {
1770 grn_idcxx . . $ grn_id# id;
1771 grn_rccxx . . $ grn_rc# rc;
1772
1773 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
1774
1775 id = grn_obj_idcxx . . $ grn_obj_id(8dd58acc9865e889).(ctx, obj);
1776 if (id & GRN_OBJ_TMP_OBJECTcxx . . $ `lib/grn_db.h:368:9`!) {
1777 rc = grn_options_clearcxx . . $ grn_options_clear(c6e04362ad695e19).(ctx,
1778 ctx->implcxx . . $ _grn_ctx#impl.->temporary_optionscxx . . $ _grn_ctx_impl#temporary_options.,
1779 id & ~GRN_OBJ_TMP_OBJECTcxx . . $ `lib/grn_db.h:368:9`!);
1780 } else {
1781 rc = grn_db_clear_option_valuescxx . . $ grn_db_clear_option_values(aedbc3eaefbe393f).(ctx, grn_ctx_dbcxx . . $ grn_ctx_db(ddec8e3b1327ceae).(ctx), id);
1782 }
1783
1784 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(rc);
1785 }
1786
1787 grn_rccxx . . $ grn_rc#
1788 grn_obj_to_script_syntaxcxx . . $ grn_obj_to_script_syntax(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj, grn_objcxx . . $ grn_obj# *buffer)
1789 {
1790 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
1791 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
1792 case GRN_VOIDcxx . . $ `include/groonga/groonga.h:863:9`!:
1793 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "null");
1794 break;
1795 case GRN_BULKcxx . . $ `include/groonga/groonga.h:868:9`!:
1796 grn_inspectcxx . . $ grn_inspect(88456f97fe0d41a).(ctx, buffer, obj);
1797 break;
1798 case GRN_PTRcxx . . $ `include/groonga/groonga.h:873:9`!:
1799 if (GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(obj) == 0) {
1800 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "null");
1801 } else {
1802 grn_obj_to_script_syntaxcxx . . $ grn_obj_to_script_syntax(d825b4ed5bf12304).(ctx, GRN_PTR_VALUEcxx . . $ `include/groonga/groonga.h:3111:9`!(obj), buffer);
1803 }
1804 break;
1805 case GRN_UVECTORcxx . . $ `include/groonga/groonga.h:875:9`!:
1806 case GRN_PVECTORcxx . . $ `include/groonga/groonga.h:876:9`!:
1807 case GRN_VECTORcxx . . $ `include/groonga/groonga.h:877:9`!:
1808 grn_inspectcxx . . $ grn_inspect(88456f97fe0d41a).(ctx, buffer, obj);
1809 break;
1810 case GRN_ACCESSORcxx . . $ `include/groonga/groonga.h:880:9`!:
1811 grn_accessor_to_script_syntaxcxx . . $ grn_accessor_to_script_syntax(d825b4ed5bf12304).(ctx, obj, buffer);
1812 break;
1813 case GRN_TYPEcxx . . $ `include/groonga/groonga.h:892:9`!:
1814 case GRN_PROCcxx . . $ `include/groonga/groonga.h:893:9`!:
1815 {
1816 char name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!];
1817 int name_length = grn_obj_namecxx . . $ grn_obj_name(a51d1bff955f2f21).(ctx, obj, name, sizeof(name));
1818 GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, name, name_length);
1819 }
1820 break;
1821 case GRN_EXPRcxx . . $ `include/groonga/groonga.h:894:9`!:
1822 grn_expr_to_script_syntaxcxx . . $ grn_expr_to_script_syntax(d825b4ed5bf12304).(ctx, obj, buffer);
1823 break;
1824 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
1825 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
1826 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
1827 case GRN_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:898:9`!:
1828 if (grn_obj_is_tiny_hash_tablecxx . . $ grn_obj_is_tiny_hash_table(a5760e5c319a06ee).(ctx, obj)) {
1829 GRN_TEXT_PUTCcxx . . $ `include/groonga/groonga.h:2775:9`!(ctx, buffer, '{');
1830 uint32_tcxx . . $ uint32_t# i = 0;
1831 grn_objcxx . . $ grn_obj# key;
1832 GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&key, GRN_OBJ_DO_SHALLOW_COPYcxx . . $ `include/groonga/groonga.h:2732:9`!);
1833 GRN_TABLE_EACH_BEGIN_FLAGScxx . . $ `include/groonga/table.h:631:9`!(ctx, obj, cursor, id, GRN_CURSOR_BY_IDcxx . . $ `include/groonga/table.h:280:9`!)
1834 {
1835 if (i > 0) {
1836 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, ", ");
1837 }
1838 void *raw_key;
1839 int raw_key_size = grn_table_cursor_get_keycxx . . $ grn_table_cursor_get_key(7d620ebe94cee13a).(ctx, cursor, &raw_key);
1840 GRN_TEXT_SETcxx . . $ `include/groonga/groonga.h:2761:9`!(ctx, &key, raw_key, raw_key_size);
1841 grn_obj_to_script_syntaxcxx . . $ grn_obj_to_script_syntax(d825b4ed5bf12304).(ctx, &key, buffer);
1842 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, ": ");
1843 void *raw_value;
1844 grn_table_cursor_get_valuecxx . . $ grn_table_cursor_get_value(7d620ebe94cee13a).(ctx, cursor, &raw_value);
1845 grn_objcxx . . $ grn_obj# *value = raw_value;
1846 grn_obj_to_script_syntaxcxx . . $ grn_obj_to_script_syntax(d825b4ed5bf12304).(ctx, value, buffer);
1847 i++;
1848 }
1849 GRN_TABLE_EACH_ENDcxx . . $ `include/groonga/table.h:665:9`!(ctx, cursor);
1850 GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &key);
1851 GRN_TEXT_PUTCcxx . . $ `include/groonga/groonga.h:2775:9`!(ctx, buffer, '}');
1852 } else {
1853 char name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!];
1854 int name_length = grn_obj_namecxx . . $ grn_obj_name(a51d1bff955f2f21).(ctx, obj, name, sizeof(name));
1855 GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, name, name_length);
1856 }
1857 break;
1858 case GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`!:
1859 case GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!:
1860 case GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!:
1861 grn_column_name_cxx . . $ grn_column_name_(d825b4ed5bf12304).(ctx, obj, buffer);
1862 break;
1863 default:
1864 ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_FUNCTION_NOT_IMPLEMENTED,
1865 "[obj][to-script-syntax] unsupported type: %s",
1866 grn_obj_type_to_string(obj->header.type));
1867 break;
1868 }
1869 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
1870 }
1871
1872 static void
1873 grn_obj_warm_dispatchcxx . . $ grn_obj_warm_dispatch(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj);
1874
1875 static void
1876 grn_db_warmcxx . . $ grn_db_warm(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1877 {
1878 grn_dbcxx . . $ grn_db# *db = (grn_dbcxx . . $ grn_db# *)obj;
1879 grn_obj_warm_dispatchcxx . . $ grn_obj_warm_dispatch(cda3a5f3c2e53c6b).(ctx, db->keyscxx . . $ _grn_db#keys.);
1880 if (grn_ja_warmcxx . . $ grn_ja_warm(9f990ad2d2754423).(ctx, db->specscxx . . $ _grn_db#specs.) != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1881 return;
1882 }
1883 if (grn_hash_warmcxx . . $ grn_hash_warm(c005d027d163fb0b).(ctx, db->configcxx . . $ _grn_db#config.) != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1884 return;
1885 }
1886 if (grn_options_warmcxx . . $ grn_options_warm(2e8db6ae9aefbd21).(ctx, db->optionscxx . . $ _grn_db#options.) != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1887 return;
1888 }
1889
1890 GRN_TABLE_EACH_BEGIN_FLAGScxx . . $ `include/groonga/table.h:631:9`!(ctx, obj, cursor, id, GRN_CURSOR_BY_IDcxx . . $ `include/groonga/table.h:280:9`!)
1891 {
1892 if (id < GRN_N_RESERVED_TYPEScxx . . $ `lib/grn_db.h:45:9`!) {
1893 continue;
1894 }
1895
1896 grn_objcxx . . $ grn_obj# *object = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, id);
1897 if (!object) {
1898 continue;
1899 }
1900 if (grn_obj_is_tablecxx . . $ grn_obj_is_table(a5760e5c319a06ee).(ctx, object)) {
1901 grn_obj_warm_dispatchcxx . . $ grn_obj_warm_dispatch(cda3a5f3c2e53c6b).(ctx, object);
1902 }
1903 grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, object);
1904 if (ctx->rccxx . . $ _grn_ctx#rc. != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1905 break;
1906 }
1907 }
1908 GRN_TABLE_EACH_ENDcxx . . $ `include/groonga/table.h:665:9`!(ctx, cursor);
1909 }
1910
1911 static void
1912 grn_table_warmcxx . . $ grn_table_warm(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1913 {
1914 grn_hashcxx . . $ grn_hash# *columns = grn_table_all_columnscxx . . $ grn_table_all_columns(8ebad875dfa82802).(ctx, obj);
1915 if (!columns) {
1916 return;
1917 }
1918
1919 GRN_HASH_EACH_BEGINcxx . . $ `include/groonga/hash.h:141:9`!(ctx, columns, cursor, id)
1920 {
1921 void *key;
1922 grn_hash_cursor_get_keycxx . . $ grn_hash_cursor_get_key(248c0d78df691c42).(ctx, cursor, &key);
1923 grn_idcxx . . $ grn_id# column_id = *((grn_idcxx . . $ grn_id# *)key);
1924 grn_objcxx . . $ grn_obj# *column = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, column_id);
1925 grn_obj_warm_dispatchcxx . . $ grn_obj_warm_dispatch(cda3a5f3c2e53c6b).(ctx, column);
1926 grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, column);
1927 if (ctx->rccxx . . $ _grn_ctx#rc. != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1928 return;
1929 }
1930 }
1931 GRN_HASH_EACH_ENDcxx . . $ `include/groonga/hash.h:159:9`!(ctx, cursor);
1932 }
1933
1934 static void
1935 grn_obj_warm_dispatchcxx . . $ grn_obj_warm_dispatch(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1936 {
1937 switch (obj->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) {
1938 case GRN_DBcxx . . $ `include/groonga/groonga.h:899:9`!:
1939 grn_db_warmcxx . . $ grn_db_warm(cda3a5f3c2e53c6b).(ctx, obj);
1940 break;
1941 case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!:
1942 if (grn_hash_warmcxx . . $ grn_hash_warm(c005d027d163fb0b).(ctx, (grn_hashcxx . . $ grn_hash# *)obj) != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1943 return;
1944 }
1945 grn_table_warmcxx . . $ grn_table_warm(cda3a5f3c2e53c6b).(ctx, obj);
1946 break;
1947 case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!:
1948 if (grn_pat_warmcxx . . $ grn_pat_warm(6044f5e1d38adedf).(ctx, (grn_patcxx . . $ grn_pat# *)obj) != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1949 return;
1950 }
1951 grn_table_warmcxx . . $ grn_table_warm(cda3a5f3c2e53c6b).(ctx, obj);
1952 break;
1953 case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!:
1954 if (grn_dat_warmcxx . . $ grn_dat_warm(9e753613864322e7).(ctx, (grn_datcxx . . $ grn_dat# *)obj) != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1955 return;
1956 }
1957 grn_table_warmcxx . . $ grn_table_warm(cda3a5f3c2e53c6b).(ctx, obj);
1958 break;
1959 case GRN_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:898:9`!:
1960 if (grn_array_warmcxx . . $ grn_array_warm(1b4cd6b6726e4674).(ctx, (grn_arraycxx . . $ grn_array# *)obj) != GRN_SUCCESScxx . . $ GRN_SUCCESS.) {
1961 return;
1962 }
1963 grn_table_warmcxx . . $ grn_table_warm(cda3a5f3c2e53c6b).(ctx, obj);
1964 break;
1965 case GRN_COLUMN_FIX_SIZEcxx . . $ `include/groonga/groonga.h:900:9`!:
1966 grn_ra_warmcxx . . $ grn_ra_warm(7c726a0b87365436).(ctx, (grn_racxx . . $ grn_ra# *)obj);
1967 break;
1968 case GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!:
1969 grn_ja_warmcxx . . $ grn_ja_warm(9f990ad2d2754423).(ctx, (grn_jacxx . . $ grn_ja# *)obj);
1970 break;
1971 case GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!:
1972 grn_ii_warmcxx . . $ grn_ii_warm(57810f222e723019).(ctx, (grn_iicxx . . $ grn_ii# *)obj);
1973 break;
1974 default:
1975 break;
1976 }
1977 }
1978
1979 grn_rccxx . . $ grn_rc#
1980 grn_obj_warmcxx . . $ grn_obj_warm(4865d068a46d0f83).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj)
1981 {
1982 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
1983 grn_obj_warm_dispatchcxx . . $ grn_obj_warm_dispatch(cda3a5f3c2e53c6b).(ctx, obj);
1984 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
1985 }
1986
1987 void
1988 grn_obj_set_errorcxx . . $ grn_obj_set_error(a9b02bb911432177).(grn_ctxcxx . . $ grn_ctx# *ctx,
1989 grn_objcxx . . $ grn_obj# *obj,
1990 grn_rccxx . . $ grn_rc# rc,
1991 grn_idcxx . . $ grn_id# id,
1992 const char *tag,
1993 const char *format,
1994 ...)
1995 {
1996 grn_objcxx . . $ grn_obj# message;
1997 GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&message, 0);
1998 va_listcxx . . $ va_list# args;
1999 va_startcxx . . $ `<external>/8293021631987149590/stdarg.h:51:9`!(args, format);
2000 grn_text_printfvcxx . . $ grn_text_printfv(26ae3e66154406).(ctx, &message, format, args);
2001 va_endcxx . . $ `<external>/8293021631987149590/stdarg.h:53:9`!(args);
2002
2003 grn_iocxx . . $ grn_io# *io = grn_obj_get_iocxx . . $ grn_obj_get_io(9c26d6a37d40f560).(ctx, obj);
2004 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! have_path = (io->pathcxx . . $ _grn_io#path.[0] != '\0');
2005 GRN_DEFINE_NAMEcxx . . $ `lib/grn_db.h:90:9`!(obj);
2006 if (id == GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!) {
2007 ERRcxx . . $ `lib/grn_error.h:156:9`!(rc,
2008 "%s[%.*s] %.*s%s%s%s",
2009 tag,
2010 name_size,
2011 name,
2012 (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&message),
2013 GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&message),
2014 have_path ? ": path:<" : "",
2015 have_path ? io->path : "",
2016 have_path ? ">" : "");
2017 } else {
2018 ERRcxx . . $ `lib/grn_error.h:156:9`!(rc,
2019 "%s[%.*s][%u] %.*s%s%s%s",
2020 tag,
2021 name_size,
2022 name,
2023 id,
2024 (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&message),
2025 GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&message),
2026 have_path ? ": path:<" : "",
2027 have_path ? io->path : "",
2028 have_path ? ">" : "");
2029 }
2030
2031 GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &message);
2032 }
2033
2034 void
2035 grn_obj_logcxx . . $ grn_obj_log(9b4169b3a0f8d777).(grn_ctxcxx . . $ grn_ctx# *ctx,
2036 grn_objcxx . . $ grn_obj# *obj,
2037 grn_log_levelcxx . . $ grn_log_level# level,
2038 grn_idcxx . . $ grn_id# id,
2039 const char *tag,
2040 const char *format,
2041 ...)
2042 {
2043 if (!grn_logger_passcxx . . $ grn_logger_pass(188766080ec9c0f2).(ctx, level)) {
2044 return;
2045 }
2046
2047 grn_objcxx . . $ grn_obj# message;
2048 GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&message, 0);
2049 va_listcxx . . $ va_list# args;
2050 va_startcxx . . $ `<external>/8293021631987149590/stdarg.h:51:9`!(args, format);
2051 grn_text_printfvcxx . . $ grn_text_printfv(26ae3e66154406).(ctx, &message, format, args);
2052 va_endcxx . . $ `<external>/8293021631987149590/stdarg.h:53:9`!(args);
2053
2054 grn_iocxx . . $ grn_io# *io = grn_obj_get_iocxx . . $ grn_obj_get_io(9c26d6a37d40f560).(ctx, obj);
2055 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! have_path = (io->pathcxx . . $ _grn_io#path.[0] != '\0');
2056 GRN_DEFINE_NAMEcxx . . $ `lib/grn_db.h:90:9`!(obj);
2057 if (id == GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!) {
2058 GRN_LOGcxx . . $ `include/groonga/groonga.h:2493:9`!(ctx,
2059 level,
2060 "%s[%.*s] %.*s%s%s%s",
2061 tag,
2062 name_size,
2063 name,
2064 (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&message),
2065 GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&message),
2066 have_path ? ": path:<" : "",
2067 have_path ? io->path : "",
2068 have_path ? ">" : "");
2069 } else {
2070 GRN_LOGcxx . . $ `include/groonga/groonga.h:2493:9`!(ctx,
2071 level,
2072 "%s[%.*s][%u] %.*s%s%s%s",
2073 tag,
2074 name_size,
2075 name,
2076 id,
2077 (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&message),
2078 GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&message),
2079 have_path ? ": path:<" : "",
2080 have_path ? io->path : "",
2081 have_path ? ">" : "");
2082 }
2083
2084 GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &message);
2085 }