Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 13 of 13) sorted by relevance

/ext-ds/src/ds/
H A Dds_vector.c17vector->buffer = ds_reallocate_zval_buffer(vector->buffer, capacity, vector->capacity, vector->s… in ds_vector_reallocate()
32 return vector; in ds_vector_ex()
83 ds_vector_reallocate(vector, vector->capacity + (vector->capacity >> 1)); in ds_vector_increase_capacity()
142 if (vector->size == vector->capacity) { in increase_capacity_if_full()
150 zval *end = vector->buffer + vector->size; in ds_vector_clear_buffer()
202 zval *end = vector->buffer + vector->size; in ds_vector_find_index()
283 ZVAL_COPY(&vector->buffer[vector->size++], value); in ds_vector_push()
299 dst = &vector->buffer[vector->size]; in ds_vector_push_va()
348 ds_sort_zval_buffer(vector->buffer, vector->size); in ds_vector_sort()
483 return &vector->buffer[vector->size - 1]; in ds_vector_get_last()
[all …]
H A Dds_vector.h51 void ds_vector_clear(ds_vector_t *vector);
52 void ds_vector_free(ds_vector_t *vector);
76 zval *ds_vector_get_last(ds_vector_t *vector);
77 zval *ds_vector_get_first(ds_vector_t *vector);
78 zval *ds_vector_get_last_throw(ds_vector_t *vector);
79 zval *ds_vector_get_first_throw(ds_vector_t *vector);
83 ds_vector_t *ds_vector_filter(ds_vector_t *vector);
86 ds_vector_t *ds_vector_reversed(ds_vector_t *vector);
89 void ds_vector_reverse(ds_vector_t *vector);
96 void ds_vector_sort(ds_vector_t *vector);
[all …]
H A Dds_stack.c9 ds_stack_t *ds_stack_ex(ds_vector_t *vector) in ds_stack_ex() argument
12 stack->vector = vector; in ds_stack_ex()
23 return ds_stack_ex(ds_vector_clone(stack->vector)); in ds_stack_clone()
28 ds_vector_free(stack->vector); in ds_stack_free()
34 ds_vector_allocate(stack->vector, capacity); in ds_stack_allocate()
39 ds_vector_push_va(stack->vector, argc, argv); in ds_stack_push_va()
44 ds_vector_push(stack->vector, value); in ds_stack_push()
49 ds_vector_clear(stack->vector); in ds_stack_clear()
54 ds_vector_push_all(stack->vector, value); in ds_stack_push_all()
83 ds_vector_pop(stack->vector, return_value); in ds_stack_pop()
[all …]
H A Dds_stack.h7 #define DS_STACK_SIZE(s) ((s)->vector->size)
8 #define DS_STACK_CAPACITY(s) ((s)->vector->capacity)
15 ds_vector_t *_v = stack->vector; \
30 ds_vector_t *vector; member
34 ds_stack_t *ds_stack_ex(ds_vector_t *vector);
/ext-ds/src/php/handlers/
H A Dphp_vector_handlers.c12 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
50 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
56 ds_vector_push(vector, value);
72 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
88 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
123 ds_vector_free(vector->vector);
130 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
137 ds_vector_to_array(vector, &arr);
154 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
159 *gc_data = vector->buffer;
[all …]
H A Dphp_stack_handlers.c79 *gc_data = (zval*) stack->vector->buffer;
80 *gc_count = (int) stack->vector->size;
/ext-ds/src/php/objects/
H A Dphp_vector.c7 zend_object *php_ds_vector_create_object_ex(ds_vector_t *vector) in php_ds_vector_create_object_ex() argument
16 obj->vector = vector; in php_ds_vector_create_object_ex()
26 zend_object *php_ds_vector_create_clone(ds_vector_t *vector) in php_ds_vector_create_clone() argument
28 return php_ds_vector_create_object_ex(ds_vector_clone(vector)); in php_ds_vector_create_clone()
33 ds_vector_t *vector = Z_DS_VECTOR_P(object); in php_ds_vector_serialize() local
38 if (DS_VECTOR_IS_EMPTY(vector)) { in php_ds_vector_serialize()
45 DS_VECTOR_FOREACH(vector, value) { in php_ds_vector_serialize()
61 ds_vector_t *vector = ds_vector(); in php_ds_vector_unserialize() local
77 ds_vector_push(vector, value); in php_ds_vector_unserialize()
80 ZVAL_DS_VECTOR(obj, vector); in php_ds_vector_unserialize()
[all …]
H A Dphp_vector.h7 ds_vector_t *vector; member
15 #define Z_DS_VECTOR(z) (php_ds_vector_fetch_object(Z_OBJ(z))->vector)
32 zend_object *php_ds_vector_create_object_ex(ds_vector_t *vector);
34 zend_object *php_ds_vector_create_clone(ds_vector_t *vector);
H A Dphp_stack.c45 DS_VECTOR_FOREACH(stack->vector, value) { in php_ds_stack_serialize()
/ext-ds/src/php/classes/
H A Dphp_vector_ce.c205 ds_vector_t *vector = THIS_DS_VECTOR(); in METHOD() local
213 RETURN_DS_VECTOR(ds_vector_slice(vector, index, Z_LVAL_P(length))); in METHOD()
216 RETURN_DS_VECTOR(ds_vector_slice(vector, index, vector->size)); in METHOD()
222 ds_vector_t *vector = THIS_DS_VECTOR(); in METHOD() local
226 ds_vector_sort_callback(vector); in METHOD()
228 ds_vector_sort(vector); in METHOD()
234 ds_vector_t *vector = ds_vector_clone(THIS_DS_VECTOR()); in METHOD() local
238 ds_vector_sort_callback(vector); in METHOD()
240 ds_vector_sort(vector); in METHOD()
243 RETURN_DS_VECTOR(vector); in METHOD()
/ext-ds/
H A Dsandbox.php3 $vector = new \Ds\Vector(); variable
4 $vector->push(new DateTime());
6 $sequence = $vector->map(function (DateTime $_dateTime) { return $_dateTime->format(DateTime::ISO86…
/ext-ds/src/php/iterators/
H A Dphp_vector_iterator.c18 return iterator->position < iterator->vector->size ? SUCCESS : FAILURE; in php_ds_vector_iterator_valid()
25 return &iterator->vector->buffer[iterator->position]; in php_ds_vector_iterator_get_current_data()
66 iterator->vector = Z_DS_VECTOR_P(obj); in php_ds_vector_create_iterator()
H A Dphp_vector_iterator.h10 ds_vector_t *vector; member

Completed in 29 milliseconds