Lines Matching refs:table
12 static ds_map_t *ds_map_ex(ds_htable_t *table) in ds_map_ex() argument
15 map->table = table; in ds_map_ex()
27 return ds_map_ex(ds_htable_clone(map->table)); in ds_map_clone()
32 ds_htable_ensure_capacity(map->table, capacity); in ds_map_allocate()
37 return map->table->capacity; in ds_map_capacity()
42 ds_htable_reverse(map->table); in ds_map_reverse()
47 return ds_map_ex(ds_htable_reversed(map->table)); in ds_map_reversed()
52 ds_htable_put(map->table, key, value); in ds_map_put()
57 ds_htable_reduce(map->table, FCI_ARGS, initial, return_value); in ds_map_reduce()
62 ds_htable_apply(map->table, FCI_ARGS); in ds_map_apply()
67 ds_htable_t *table = ds_htable_map(map->table, FCI_ARGS); in ds_map_map() local
69 if (table) { in ds_map_map()
70 return ds_map_ex(table); in ds_map_map()
78 return ds_map_ex(ds_htable_filter(map->table)); in ds_map_filter()
83 ds_htable_t *table = ds_htable_filter_callback(map->table, FCI_ARGS); in ds_map_filter_callback() local
85 if (table) { in ds_map_filter_callback()
86 return ds_map_ex(table); in ds_map_filter_callback()
94 zval *value = ds_htable_get(map->table, key); in ds_map_get()
110 int removed = ds_htable_remove(map->table, key, return_value); in ds_map_remove()
129 return ds_htable_has_key(map->table, key); in ds_map_has_key()
134 return ds_htable_has_value(map->table, value); in ds_map_has_value()
139 return ds_htable_has_keys(map->table, argc, argv); in ds_map_has_keys()
144 return ds_htable_has_values(map->table, argc, argv); in ds_map_has_values()
149 ds_htable_clear(map->table); in ds_map_clear()
154 ds_htable_sort_callback_by_value(map->table); in ds_map_sort_by_value_callback()
159 ds_htable_sort_by_value(map->table); in ds_map_sort_by_value()
164 ds_htable_sort_callback_by_key(map->table); in ds_map_sort_by_key_callback()
169 ds_htable_sort_by_key(map->table); in ds_map_sort_by_key()
175 ds_htable_sort_callback_by_value(sorted->table); in ds_map_sorted_by_value_callback()
182 ds_htable_sort_by_value(sorted->table); in ds_map_sorted_by_value()
189 ds_htable_sort_callback_by_key(sorted->table); in ds_map_sorted_by_key_callback()
196 ds_htable_sort_by_key(sorted->table); in ds_map_sorted_by_key()
202 ds_htable_to_array(map->table, return_value); in ds_map_to_array()
207 return ds_htable_values(map->table); in ds_map_values()
212 return ds_map_ex(ds_htable_slice(map->table, index, length)); in ds_map_slice()
229 return ds_map_ex(ds_htable_xor(map->table, other->table)); in ds_map_xor()
234 return ds_map_ex(ds_htable_diff(map->table, other->table)); in ds_map_diff()
239 return ds_map_ex(ds_htable_intersect(map->table, other->table)); in ds_map_intersect()
244 return ds_map_ex(ds_htable_merge(map->table, other->table)); in ds_map_union()
249 ds_htable_bucket_t *bucket = ds_htable_first(map->table); in ds_map_first()
261 ds_htable_bucket_t *bucket = ds_htable_last(map->table); in ds_map_last()
273 ds_htable_bucket_t *bucket = ds_htable_lookup_by_position(map->table, position); in ds_map_skip()
276 INDEX_OUT_OF_RANGE(position, map->table->size); in ds_map_skip()
343 DS_HTABLE_FOREACH_VALUE(map->table, value) { in ds_map_sum()
351 ds_htable_free(map->table); in ds_map_free()