Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 6 of 6) sorted by relevance

/ext-ds/src/php/iterators/
H A Dphp_queue_iterator.c5 static void php_ds_queue_iterator_dtor(zend_object_iterator *iter) in php_ds_queue_iterator_dtor() argument
7 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() argument
14 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() argument
45 ds_queue_iterator_t *iterator = (ds_queue_iterator_t *) iter; in php_ds_queue_iterator_rewind()
[all …]
H A Dphp_stack_iterator.c5 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()
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() argument
45 php_ds_stack_iterator_t *iterator = (php_ds_stack_iterator_t *) iter; in php_ds_stack_iterator_rewind()
[all …]
H A Dphp_priority_queue_iterator.c7 static void php_ds_priority_queue_iterator_dtor(zend_object_iterator *iter) in php_ds_priority_queue_iterator_dtor() argument
9 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() argument
17 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() argument
22 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() argument
42 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 …]
H A Dphp_deque_iterator.c7 static void php_ds_deque_iterator_dtor(zend_object_iterator *iter) in php_ds_deque_iterator_dtor() argument
9 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() argument
16 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() argument
27 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() argument
37 ((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 …]
H A Dphp_vector_iterator.c7 static void php_ds_vector_iterator_dtor(zend_object_iterator *iter) in php_ds_vector_iterator_dtor() argument
9 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() argument
16 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() argument
23 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() argument
35 ((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 …]
H A Dphp_htable_iterator.c21 static void php_ds_htable_iterator_dtor(zend_object_iterator *iter) in php_ds_htable_iterator_dtor() argument
23 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() argument
31 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