Lines Matching refs:iterator

127 	php_dom_iterator *iterator = (php_dom_iterator *)iter;  in php_dom_iterator_dtor()  local
129 zval_ptr_dtor(&iterator->intern.data); in php_dom_iterator_dtor()
130 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_dtor()
137 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_valid() local
139 if (Z_TYPE(iterator->curobj) != IS_UNDEF) { in php_dom_iterator_valid()
149 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_current_data() local
151 return &iterator->curobj; in php_dom_iterator_current_data()
157 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_current_key() local
158 zval *object = &iterator->intern.data; in php_dom_iterator_current_key()
163 dom_object *intern = Z_DOMOBJ_P(&iterator->curobj); in php_dom_iterator_current_key()
187 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_move_forward() local
189 object = &iterator->intern.data; in php_dom_iterator_move_forward()
193 intern = Z_DOMOBJ_P(&iterator->curobj); in php_dom_iterator_move_forward()
200 zend_hash_move_forward_ex(nodeht, &iterator->pos); in php_dom_iterator_move_forward()
201 if ((entry = zend_hash_get_current_data_ex(nodeht, &iterator->pos))) { in php_dom_iterator_move_forward()
202 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_move_forward()
203 ZVAL_UNDEF(&iterator->curobj); in php_dom_iterator_move_forward()
204 ZVAL_COPY(&iterator->curobj, entry); in php_dom_iterator_move_forward()
237 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_move_forward()
238 ZVAL_UNDEF(&iterator->curobj); in php_dom_iterator_move_forward()
241 php_dom_create_object(curnode, &iterator->curobj, objmap->baseobj); in php_dom_iterator_move_forward()
265 php_dom_iterator *iterator; in php_dom_get_iterator() local
271 iterator = emalloc(sizeof(php_dom_iterator)); in php_dom_get_iterator()
272 zend_iterator_init(&iterator->intern); in php_dom_get_iterator()
274 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in php_dom_get_iterator()
275 iterator->intern.funcs = &php_dom_iterator_funcs; in php_dom_get_iterator()
277 ZVAL_UNDEF(&iterator->curobj); in php_dom_get_iterator()
286 zend_hash_internal_pointer_reset_ex(nodeht, &iterator->pos); in php_dom_get_iterator()
287 if ((entry = zend_hash_get_current_data_ex(nodeht, &iterator->pos))) { in php_dom_get_iterator()
288 ZVAL_COPY(&iterator->curobj, entry); in php_dom_get_iterator()
321 php_dom_create_object(curnode, &iterator->curobj, objmap->baseobj); in php_dom_get_iterator()
324 return &iterator->intern; in php_dom_get_iterator()