Searched refs:iterator (Results 1 – 11 of 11) sorted by relevance
/ext-ds/src/php/iterators/ |
H A D | php_priority_queue_iterator.c | 11 DTOR_AND_UNDEF(&iterator->intern.data); in php_ds_priority_queue_iterator_dtor() 12 OBJ_RELEASE(iterator->object); in php_ds_priority_queue_iterator_dtor() 43 iterator->position++; in php_ds_priority_queue_iterator_move_forward() 50 iterator->position = 0; in php_ds_priority_queue_iterator_rewind() 64 php_ds_priority_queue_iterator *iterator; in php_ds_priority_queue_get_iterator() local 74 ZVAL_UNDEF(&iterator->intern.data); in php_ds_priority_queue_get_iterator() 76 iterator->intern.funcs = &iterator_funcs; in php_ds_priority_queue_get_iterator() 78 iterator->object = Z_OBJ_P(object); in php_ds_priority_queue_get_iterator() 79 iterator->position = 0; in php_ds_priority_queue_get_iterator() 84 GC_ADDREF(iterator->object); in php_ds_priority_queue_get_iterator() [all …]
|
H A D | php_deque_iterator.c | 11 OBJ_RELEASE(iterator->object); in php_ds_deque_iterator_dtor() 18 if (iterator->position < iterator->deque->size) { in php_ds_deque_iterator_valid() 28 return ds_deque_get(iterator->deque, iterator->position); in php_ds_deque_iterator_get_current_data() 56 php_ds_deque_iterator_t *iterator; in php_ds_deque_create_iterator() local 66 iterator->intern.funcs = &iterator_funcs; in php_ds_deque_create_iterator() 67 iterator->deque = Z_DS_DEQUE_P(obj); in php_ds_deque_create_iterator() 68 iterator->object = Z_OBJ_P(obj); in php_ds_deque_create_iterator() 69 iterator->position = 0; in php_ds_deque_create_iterator() 74 GC_ADDREF(iterator->object); in php_ds_deque_create_iterator() 76 ++GC_REFCOUNT(iterator->object); in php_ds_deque_create_iterator() [all …]
|
H A D | php_vector_iterator.c | 11 OBJ_RELEASE(iterator->object); in php_ds_vector_iterator_dtor() 18 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() 54 php_ds_vector_iterator_t *iterator; in php_ds_vector_create_iterator() local 63 zend_iterator_init((zend_object_iterator*) iterator); in php_ds_vector_create_iterator() 66 iterator->vector = Z_DS_VECTOR_P(obj); in php_ds_vector_create_iterator() 67 iterator->object = Z_OBJ_P(obj); in php_ds_vector_create_iterator() 68 iterator->position = 0; in php_ds_vector_create_iterator() 73 GC_ADDREF(iterator->object); in php_ds_vector_create_iterator() 75 ++GC_REFCOUNT(iterator->object); in php_ds_vector_create_iterator() [all …]
|
H A D | php_queue_iterator.c | 9 OBJ_RELEASE(iterator->object); in php_ds_queue_iterator_dtor() 40 iterator->position++; in php_ds_queue_iterator_move_forward() 47 iterator->position = 0; in php_ds_queue_iterator_rewind() 61 ds_queue_iterator_t *iterator; in php_ds_queue_get_iterator() local 68 iterator = ecalloc(1, sizeof(ds_queue_iterator_t)); in php_ds_queue_get_iterator() 72 iterator->queue = Z_DS_QUEUE_P(object); in php_ds_queue_get_iterator() 73 iterator->object = Z_OBJ_P(object); in php_ds_queue_get_iterator() 74 iterator->position = 0; in php_ds_queue_get_iterator() 79 GC_ADDREF(iterator->object); in php_ds_queue_get_iterator() 81 ++GC_REFCOUNT(iterator->object); in php_ds_queue_get_iterator() [all …]
|
H A D | php_stack_iterator.c | 9 OBJ_RELEASE(iterator->object); in php_ds_stack_iterator_dtor() 40 iterator->position++; in php_ds_stack_iterator_move_forward() 47 iterator->position = 0; in php_ds_stack_iterator_rewind() 61 php_ds_stack_iterator_t *iterator; in php_ds_stack_get_iterator() local 69 zend_iterator_init((zend_object_iterator*) iterator); in php_ds_stack_get_iterator() 72 iterator->stack = Z_DS_STACK_P(object); in php_ds_stack_get_iterator() 73 iterator->object = Z_OBJ_P(object); in php_ds_stack_get_iterator() 74 iterator->position = 0; in php_ds_stack_get_iterator() 79 GC_ADDREF(iterator->object); in php_ds_stack_get_iterator() 81 ++GC_REFCOUNT(iterator->object); in php_ds_stack_get_iterator() [all …]
|
H A D | php_htable_iterator.c | 25 OBJ_RELEASE(iterator->obj); in php_ds_htable_iterator_dtor() 26 DTOR_AND_UNDEF(&iterator->intern.data); in php_ds_htable_iterator_dtor() 107 if (++iterator->position < iterator->table->size) { in php_ds_htable_iterator_move_forward() 109 ++iterator->bucket; in php_ds_htable_iterator_move_forward() 118 iterator->position = 0; in php_ds_htable_iterator_rewind() 119 iterator->bucket = find_starting_bucket(iterator->table); in php_ds_htable_iterator_rewind() 165 ds_htable_iterator_t *iterator; in php_ds_htable_create_htable_iterator() local 178 iterator->intern.funcs = funcs; in php_ds_htable_create_htable_iterator() 179 iterator->table = table; in php_ds_htable_create_htable_iterator() 185 GC_ADDREF(iterator->obj); in php_ds_htable_create_htable_iterator() [all …]
|
/ext-ds/src/ds/ |
H A D | ds_map.c | 283 static int iterator_add(zend_object_iterator *iterator, void *puser) in iterator_add() argument 286 zval *value = iterator->funcs->get_current_data(iterator); in iterator_add() 287 iterator->funcs->get_current_key(iterator, &key); in iterator_add()
|
H A D | ds_set.c | 68 static int iterator_add(zend_object_iterator *iterator, void *puser) in iterator_add() argument 70 ds_set_add((ds_set_t *) puser, iterator->funcs->get_current_data(iterator)); in iterator_add()
|
H A D | ds_vector.c | 365 static int iterator_add(zend_object_iterator *iterator, void *puser) in iterator_add() argument 367 ds_vector_push((ds_vector_t *) puser, iterator->funcs->get_current_data(iterator)); in iterator_add()
|
H A D | ds_deque.c | 613 static int iterator_add(zend_object_iterator *iterator, void *puser) in iterator_add() argument 615 ds_deque_push((ds_deque_t *) puser, iterator->funcs->get_current_data(iterator)); in iterator_add()
|
/ext-ds/ |
H A D | CHANGELOG.md | 63 - Iterating over an implicit iterator (not variable). #82
|
Completed in 24 milliseconds