Lines Matching refs:iter
5 static void php_ds_stack_iterator_dtor(zend_object_iterator *iter) in php_ds_stack_iterator_dtor() argument
7 php_ds_stack_iterator_t *iterator = (php_ds_stack_iterator_t *) iter; in php_ds_stack_iterator_dtor()
12 static int php_ds_stack_iterator_valid(zend_object_iterator *iter) in php_ds_stack_iterator_valid() argument
14 return Z_ISUNDEF(iter->data) ? FAILURE : SUCCESS; in php_ds_stack_iterator_valid()
17 static zval *php_ds_stack_iterator_get_current_data(zend_object_iterator *iter) in php_ds_stack_iterator_get_current_data() argument
19 return &iter->data; in php_ds_stack_iterator_get_current_data()
22 static void php_ds_stack_iterator_get_current_key(zend_object_iterator *iter, zval *key) { in php_ds_stack_iterator_get_current_key() argument
23 ZVAL_LONG(key, ((php_ds_stack_iterator_t *) iter)->position); in php_ds_stack_iterator_get_current_key()
36 static void php_ds_stack_iterator_move_forward(zend_object_iterator *iter) in php_ds_stack_iterator_move_forward() argument
38 php_ds_stack_iterator_t *iterator = (php_ds_stack_iterator_t *) iter; in php_ds_stack_iterator_move_forward()
39 php_ds_stack_iterator_set_current(iterator->stack, &iter->data); in php_ds_stack_iterator_move_forward()
43 static void php_ds_stack_iterator_rewind(zend_object_iterator *iter) in php_ds_stack_iterator_rewind() argument
45 php_ds_stack_iterator_t *iterator = (php_ds_stack_iterator_t *) iter; in php_ds_stack_iterator_rewind()
46 php_ds_stack_iterator_set_current(iterator->stack, &iter->data); in php_ds_stack_iterator_rewind()