Lines Matching refs:iterator
94 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_dtor() local
96 zval_ptr_dtor(&iterator->intern.data); in php_dom_iterator_dtor()
97 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_dtor()
103 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_valid() local
105 if (Z_TYPE(iterator->curobj) != IS_UNDEF) { in php_dom_iterator_valid()
115 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_current_data() local
116 return Z_ISUNDEF(iterator->curobj) ? NULL : &iterator->curobj; in php_dom_iterator_current_data()
122 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_current_key() local
123 zval *object = &iterator->intern.data; in php_dom_iterator_current_key()
130 dom_object *intern = Z_DOMOBJ_P(&iterator->curobj); in php_dom_iterator_current_key()
166 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_move_forward() local
167 if (Z_ISUNDEF(iterator->curobj)) { in php_dom_iterator_move_forward()
171 dom_object *intern = Z_DOMOBJ_P(&iterator->curobj); in php_dom_iterator_move_forward()
172 zval *object = &iterator->intern.data; in php_dom_iterator_move_forward()
182 zend_hash_move_forward_ex(nodeht, &iterator->pos); in php_dom_iterator_move_forward()
183 if ((entry = zend_hash_get_current_data_ex(nodeht, &iterator->pos))) { in php_dom_iterator_move_forward()
184 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_move_forward()
185 ZVAL_COPY(&iterator->curobj, entry); in php_dom_iterator_move_forward()
193 …if (php_dom_follow_spec_intern(intern) && php_dom_is_cache_tag_stale_from_doc_ptr(&iterator->cache… in php_dom_iterator_move_forward()
194 php_dom_mark_cache_tag_up_to_date_from_doc_ref(&iterator->cache_tag, intern->document); in php_dom_iterator_move_forward()
213 if (php_dom_is_cache_tag_stale_from_node(&iterator->cache_tag, basenode)) { in php_dom_iterator_move_forward()
214 php_dom_mark_cache_tag_up_to_date_from_node(&iterator->cache_tag, basenode); in php_dom_iterator_move_forward()
230 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_move_forward()
231 ZVAL_UNDEF(&iterator->curobj); in php_dom_iterator_move_forward()
234 php_dom_create_object(curnode, &iterator->curobj, objmap->baseobj); in php_dom_iterator_move_forward()
257 php_dom_iterator *iterator; in php_dom_get_iterator() local
263 iterator = emalloc(sizeof(php_dom_iterator)); in php_dom_get_iterator()
264 zend_iterator_init(&iterator->intern); in php_dom_get_iterator()
265 iterator->cache_tag.modification_nr = 0; in php_dom_get_iterator()
267 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in php_dom_get_iterator()
268 iterator->intern.funcs = &php_dom_iterator_funcs; in php_dom_get_iterator()
270 ZVAL_UNDEF(&iterator->curobj); in php_dom_get_iterator()
279 zend_hash_internal_pointer_reset_ex(nodeht, &iterator->pos); in php_dom_get_iterator()
280 if ((entry = zend_hash_get_current_data_ex(nodeht, &iterator->pos))) { in php_dom_get_iterator()
281 ZVAL_COPY(&iterator->curobj, entry); in php_dom_get_iterator()
292 php_dom_create_object(curnode, &iterator->curobj, objmap->baseobj); in php_dom_get_iterator()
295 return &iterator->intern; in php_dom_get_iterator()