Lines Matching refs:iterator
878 spl_heap_it *iterator = (spl_heap_it *)iter; in spl_heap_it_dtor() local
881 zval_ptr_dtor(&iterator->intern.it.data); in spl_heap_it_dtor()
1088 spl_heap_it *iterator; in spl_heap_get_iterator() local
1096 iterator = emalloc(sizeof(spl_heap_it)); in spl_heap_get_iterator()
1098 zend_iterator_init(&iterator->intern.it); in spl_heap_get_iterator()
1100 ZVAL_COPY(&iterator->intern.it.data, object); in spl_heap_get_iterator()
1101 iterator->intern.it.funcs = &spl_heap_it_funcs; in spl_heap_get_iterator()
1102 iterator->intern.ce = ce; in spl_heap_get_iterator()
1103 iterator->flags = heap_object->flags; in spl_heap_get_iterator()
1104 ZVAL_UNDEF(&iterator->intern.value); in spl_heap_get_iterator()
1106 return &iterator->intern.it; in spl_heap_get_iterator()
1112 spl_heap_it *iterator; in spl_pqueue_get_iterator() local
1120 iterator = emalloc(sizeof(spl_heap_it)); in spl_pqueue_get_iterator()
1122 zend_iterator_init((zend_object_iterator*)iterator); in spl_pqueue_get_iterator()
1124 ZVAL_COPY(&iterator->intern.it.data, object); in spl_pqueue_get_iterator()
1125 iterator->intern.it.funcs = &spl_pqueue_it_funcs; in spl_pqueue_get_iterator()
1126 iterator->intern.ce = ce; in spl_pqueue_get_iterator()
1127 iterator->flags = heap_object->flags; in spl_pqueue_get_iterator()
1129 ZVAL_UNDEF(&iterator->intern.value); in spl_pqueue_get_iterator()
1131 return &iterator->intern.it; in spl_pqueue_get_iterator()