Searched refs:iter (Results 1 – 6 of 6) sorted by relevance
5 static void php_ds_queue_iterator_dtor(zend_object_iterator *iter) in php_ds_queue_iterator_dtor() argument7 ds_queue_iterator_t *iterator = (ds_queue_iterator_t *) iter; in php_ds_queue_iterator_dtor()12 static int php_ds_queue_iterator_valid(zend_object_iterator *iter) in php_ds_queue_iterator_valid() argument14 return Z_ISUNDEF(iter->data) ? FAILURE : SUCCESS; in php_ds_queue_iterator_valid()19 return &iter->data; in php_ds_queue_iterator_get_current_data()23 ZVAL_LONG(key, ((ds_queue_iterator_t *) iter)->position); in php_ds_queue_iterator_get_current_key()38 ds_queue_iterator_t *iterator = (ds_queue_iterator_t *) iter; in php_ds_queue_iterator_move_forward()39 php_ds_queue_iterator_set_current(iterator->queue, &iter->data); in php_ds_queue_iterator_move_forward()43 static void php_ds_queue_iterator_rewind(zend_object_iterator *iter) in php_ds_queue_iterator_rewind() argument45 ds_queue_iterator_t *iterator = (ds_queue_iterator_t *) iter; in php_ds_queue_iterator_rewind()[all …]
5 static void php_ds_stack_iterator_dtor(zend_object_iterator *iter) in php_ds_stack_iterator_dtor() argument7 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() argument14 return Z_ISUNDEF(iter->data) ? FAILURE : SUCCESS; in php_ds_stack_iterator_valid()19 return &iter->data; in php_ds_stack_iterator_get_current_data()23 ZVAL_LONG(key, ((php_ds_stack_iterator_t *) iter)->position); in php_ds_stack_iterator_get_current_key()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() argument45 php_ds_stack_iterator_t *iterator = (php_ds_stack_iterator_t *) iter; in php_ds_stack_iterator_rewind()[all …]
7 static void php_ds_priority_queue_iterator_dtor(zend_object_iterator *iter) in php_ds_priority_queue_iterator_dtor() argument9 php_ds_priority_queue_iterator *iterator = (php_ds_priority_queue_iterator *) iter; in php_ds_priority_queue_iterator_dtor()15 static int php_ds_priority_queue_iterator_valid(zend_object_iterator *iter) in php_ds_priority_queue_iterator_valid() argument17 return Z_ISUNDEF(iter->data) ? FAILURE : SUCCESS; in php_ds_priority_queue_iterator_valid()20 static zval *php_ds_priority_queue_iterator_get_current_data(zend_object_iterator *iter) in php_ds_priority_queue_iterator_get_current_data() argument22 return &iter->data; in php_ds_priority_queue_iterator_get_current_data()26 ZVAL_LONG(key, ((php_ds_priority_queue_iterator *) iter)->position); in php_ds_priority_queue_iterator_get_current_key()39 static void php_ds_priority_queue_iterator_move_forward(zend_object_iterator *iter) in php_ds_priority_queue_iterator_move_forward() argument42 php_ds_priority_queue_iterator_set_current(iterator->queue, &iter->data); in php_ds_priority_queue_iterator_move_forward()46 static void php_ds_priority_queue_iterator_rewind(zend_object_iterator *iter) in php_ds_priority_queue_iterator_rewind() argument[all …]
7 static void php_ds_deque_iterator_dtor(zend_object_iterator *iter) in php_ds_deque_iterator_dtor() argument9 php_ds_deque_iterator_t *iterator = (php_ds_deque_iterator_t *) iter; in php_ds_deque_iterator_dtor()14 static int php_ds_deque_iterator_valid(zend_object_iterator *iter) in php_ds_deque_iterator_valid() argument16 php_ds_deque_iterator_t *iterator = (php_ds_deque_iterator_t *) iter; in php_ds_deque_iterator_valid()25 static zval *php_ds_deque_iterator_get_current_data(zend_object_iterator *iter) in php_ds_deque_iterator_get_current_data() argument27 php_ds_deque_iterator_t *iterator = (php_ds_deque_iterator_t *) iter; in php_ds_deque_iterator_get_current_data()32 ZVAL_LONG(key, ((php_ds_deque_iterator_t *) iter)->position); in php_ds_deque_iterator_get_current_key()35 static void php_ds_deque_iterator_move_forward(zend_object_iterator *iter) in php_ds_deque_iterator_move_forward() argument37 ((php_ds_deque_iterator_t *) iter)->position++; in php_ds_deque_iterator_move_forward()40 static void php_ds_deque_iterator_rewind(zend_object_iterator *iter) in php_ds_deque_iterator_rewind() argument[all …]
7 static void php_ds_vector_iterator_dtor(zend_object_iterator *iter) in php_ds_vector_iterator_dtor() argument9 php_ds_vector_iterator_t *iterator = (php_ds_vector_iterator_t *) iter; in php_ds_vector_iterator_dtor()14 static int php_ds_vector_iterator_valid(zend_object_iterator *iter) in php_ds_vector_iterator_valid() argument16 php_ds_vector_iterator_t *iterator = (php_ds_vector_iterator_t *) iter; in php_ds_vector_iterator_valid()21 static zval *php_ds_vector_iterator_get_current_data(zend_object_iterator *iter) in php_ds_vector_iterator_get_current_data() argument23 php_ds_vector_iterator_t *iterator = (php_ds_vector_iterator_t *) iter; in php_ds_vector_iterator_get_current_data()30 ZVAL_LONG(key, ((php_ds_vector_iterator_t *) iter)->position); in php_ds_vector_iterator_get_current_key()33 static void php_ds_vector_iterator_move_forward(zend_object_iterator *iter) in php_ds_vector_iterator_move_forward() argument35 ((php_ds_vector_iterator_t *) iter)->position++; in php_ds_vector_iterator_move_forward()38 static void php_ds_vector_iterator_rewind(zend_object_iterator *iter) in php_ds_vector_iterator_rewind() argument[all …]
21 static void php_ds_htable_iterator_dtor(zend_object_iterator *iter) in php_ds_htable_iterator_dtor() argument23 ds_htable_iterator_t *iterator = (ds_htable_iterator_t *) iter; in php_ds_htable_iterator_dtor()29 static int php_ds_htable_iterator_valid(zend_object_iterator *iter) in php_ds_htable_iterator_valid() argument31 ds_htable_iterator_t *iterator = (ds_htable_iterator_t *) iter; in php_ds_htable_iterator_valid()40 ds_htable_iterator_t *iterator = (ds_htable_iterator_t *) iter; in php_ds_htable_iterator_get_current_value()52 ds_htable_iterator_t *iterator = (ds_htable_iterator_t *) iter; in php_ds_htable_iterator_get_current_keyval()64 ds_htable_iterator_t *iterator = (ds_htable_iterator_t *) iter; in php_ds_htable_iterator_get_current_key()74 ds_htable_iterator_t *iterator = (ds_htable_iterator_t *) iter; in php_ds_htable_iterator_get_current_pair()100 ZVAL_LONG(key, ((ds_htable_iterator_t *) iter)->position); in php_ds_htable_iterator_get_current_pos()105 ds_htable_iterator_t *iterator = (ds_htable_iterator_t *) iter; in php_ds_htable_iterator_move_forward()[all …]
Completed in 13 milliseconds