Lines Matching refs:iterator
39 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_dtor() local
40 zval_ptr_dtor(&iterator->intern.data); in test_traversable_it_dtor()
45 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_rewind() local
46 ZVAL_LONG(&iterator->current, 0); in test_traversable_it_rewind()
51 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_next() local
52 ZVAL_LONG(&iterator->current, Z_LVAL(iterator->current) + 1); in test_traversable_it_next()
57 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_valid() local
58 if (Z_LVAL(iterator->current) < 4) { in test_traversable_it_valid()
66 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_key() local
67 ZVAL_LONG(return_value, Z_LVAL(iterator->current)); in test_traversable_it_key()
72 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_current() local
73 return &iterator->current; in test_traversable_it_current()
92 test_traversable_it *iterator; in test_traversable_get_iterator() local
99 iterator = emalloc(sizeof(test_traversable_it)); in test_traversable_get_iterator()
100 zend_iterator_init((zend_object_iterator*)iterator); in test_traversable_get_iterator()
102 ZVAL_OBJ_COPY(&iterator->intern.data, Z_OBJ_P(object)); in test_traversable_get_iterator()
103 iterator->intern.funcs = &test_traversable_it_vtable; in test_traversable_get_iterator()
104 ZVAL_LONG(&iterator->current, 0); in test_traversable_get_iterator()
106 return (zend_object_iterator*)iterator; in test_traversable_get_iterator()