Lines Matching refs:iterator
7 ds_queue_iterator_t *iterator = (ds_queue_iterator_t *) iter; in php_ds_queue_iterator_dtor() local
9 OBJ_RELEASE(iterator->object); in php_ds_queue_iterator_dtor()
38 ds_queue_iterator_t *iterator = (ds_queue_iterator_t *) iter; in php_ds_queue_iterator_move_forward() local
39 php_ds_queue_iterator_set_current(iterator->queue, &iter->data); in php_ds_queue_iterator_move_forward()
40 iterator->position++; in php_ds_queue_iterator_move_forward()
45 ds_queue_iterator_t *iterator = (ds_queue_iterator_t *) iter; in php_ds_queue_iterator_rewind() local
46 php_ds_queue_iterator_set_current(iterator->queue, &iter->data); in php_ds_queue_iterator_rewind()
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()
69 zend_iterator_init((zend_object_iterator*) iterator); in php_ds_queue_get_iterator()
71 iterator->intern.funcs = &php_ds_queue_iterator_funcs; 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()
84 return (zend_object_iterator *) iterator; in php_ds_queue_get_iterator()