Searched refs:iterator (Results 1 - 25 of 50) sorted by relevance

12

/PHP_5_4/ext/phar/phar/
H A Ddirectorygraphiterator.inc13 * @brief A tree iterator that only shows directories.
H A Ddirectorytreeiterator.inc46 /** Aggregates the inner iterator
/PHP_5_4/ext/spl/examples/
H A Ddirectorygraphiterator.inc13 * @brief A tree iterator that only shows directories.
H A Ddirectorytree.inc13 * @brief A directory iterator that does not show '.' and '..'.
H A Ddirectorytreeiterator.inc46 /** Aggregates the inner iterator
H A Dinigroups.inc20 * Using this class you can iterator over all groups of a ini file.
31 * Construct an ini file group iterator from a filename.
H A Dkeyfilter.inc18 * are strings. In other words you can put an iterator into the constructor
28 * Constructs a filter around an iterator whose elemnts are strings.
29 * If the given iterator is of type spl_sequence then its rewind()
/PHP_5_4/ext/spl/internal/
H A Dfilteriterator.inc19 * you can put an iterator into the constructor and the instance will only
31 * Constructs a filter around another iterator.
40 * Rewind the inner iterator.
48 * Accept function to decide whether an element of the inner iterator
52 * iterator.
109 * @return The inner iterator
116 /** Aggregate the inner iterator
H A Dlimititerator.inc82 /** @return whether iterator is valid
116 * @return The inner iterator
123 /** Aggregate the inner iterator
H A Douteriterator.inc13 * @brief Interface to access the current inner iteraor of iterator wrappers
20 /** @return inner iterator
H A Drecursivearrayiterator.inc13 * @brief A recursive array iterator
39 /** @return an iterator for the current elements children
41 * @note the returned iterator will be of the same class as $this
H A Drecursiveiterator.inc24 /** @return the sub iterator for the current element
H A Drecursiveregexiterator.inc18 * This filter iterator assumes that the inner iterator
23 * Constructs a regular expression filter around an iterator whose
26 * @param it inner iterator
45 /** @return an iterator for the current elements children
47 * @note the returned iterator will be of the same class as $this
H A Drecursivetreeiterator.inc28 * @param it iterator to use as inner iterator
124 /** Aggregates the inner iterator
H A Dseekableiterator.inc12 /** @brief seekable iterator
17 * Turns a normal iterator ino a seekable iterator. When there is a way
18 * to seek on an iterator LimitIterator can use this to efficiently rewind
H A Dcachingiterator.inc18 * This iterator wrapper does a one ahead iteration. This way it knows whether
19 * the inner iterator has one more element.
25 * already changed iterator. If you do not need this then it you should
41 /** Construct from another iterator
89 /** @return whether the iterator is valid
117 /** Aggregate the inner iterator
149 * @return The inner iterator
H A Diteratoriterator.inc16 * This iterator wrapper allows to convert anything that is traversable into
36 * downcast to is actually a base class of the specified iterator to wrap.
44 * @param iterator inner iterator
45 * @param classname optional class the iterator has to be downcasted to
47 function __construct(Traversable $iterator, $classname = null)
49 if ($iterator instanceof IteratorAggregate)
51 $iterator = $iterator->getIterator();
53 if ($iterator instanceo
[all...]
/PHP_5_4/ext/intl/resourcebundle/
H A Dresourcebundle_iterator.c26 * Although libicu offers iterator functions, they are not used here: libicu does iterate
32 static void resourcebundle_iterator_read( ResourceBundle_iterator *iterator TSRMLS_DC )
35 ResourceBundle_object *rb = iterator->subject;
37 rb->child = ures_getByIndex( rb->me, iterator->i, rb->child, &icuerror );
41 if (iterator->is_table) {
42 iterator->currentkey = estrdup( ures_getKey( rb->child ) );
44 MAKE_STD_ZVAL( iterator->current );
45 resourcebundle_extract_value( iterator->current, rb TSRMLS_CC );
49 iterator->current = NULL;
57 ResourceBundle_iterator *iterator local
73 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
87 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
95 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
106 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
126 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
136 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
159 ResourceBundle_iterator *iterator = emalloc( sizeof( ResourceBundle_iterator ) ); local
[all...]
/PHP_5_4/ext/spl/
H A Dspl_heap.c82 /* define an overloaded iterator structure */
890 spl_heap_it *iterator = (spl_heap_it *)iter; local
893 zval_ptr_dtor((zval**)&iterator->intern.it.data);
895 efree(iterator);
901 /* do nothing, the iterator always points to the top element */
907 spl_heap_it *iterator = (spl_heap_it *)iter; local
909 return (iterator->object->heap->count != 0 ? SUCCESS : FAILURE);
915 spl_heap_it *iterator = (spl_heap_it *)iter; local
916 zval **element = (zval **)&iterator->object->heap->elements[0];
918 if (iterator
933 spl_heap_it *iterator = (spl_heap_it *)iter; local
954 spl_heap_it *iterator = (spl_heap_it *)iter; local
964 spl_heap_it *iterator = (spl_heap_it *)iter; local
1104 spl_heap_it *iterator; local
1128 spl_heap_it *iterator; local
[all...]
H A Dspl_fixedarray.c889 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
892 zval_ptr_dtor((zval**)&iterator->intern.it.data);
894 efree(iterator);
900 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
901 spl_fixedarray_object *intern = iterator->object;
906 iterator->object->current = 0;
913 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
914 spl_fixedarray_object *intern = iterator->object;
920 if (iterator->object->current >= 0 && iterator
931 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
953 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
968 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
1073 spl_fixedarray_it *iterator; local
[all...]
H A Dspl_iterators.c97 zend_object_iterator *iterator; member in struct:_spl_sub_iterator
148 sub_iter = object->iterators[object->level].iterator;
165 sub_iter = object->iterators[level].iterator;
188 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
196 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
208 zend_object_iterator *iterator; local
217 iterator = object->iterators[object->level].iterator;
220 iterator->funcs->move_forward(iterator TSRMLS_C
415 spl_recursive_it_iterator *iterator; local
448 zval *iterator; local
613 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
644 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1023 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1127 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1173 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
[all...]
H A Dspl_dllist.c55 #define SPL_DLLIST_IT_DELETE 0x00000001 /* Delete flag makes the iterator delete the current element on next */
56 #define SPL_DLLIST_IT_LIFO 0x00000002 /* LIFO flag makes the iterator traverse the structure as a LastInFirstOut */
101 /* define an overloaded iterator structure */
934 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
936 SPL_LLIST_CHECK_DELREF(iterator->traverse_pointer);
939 zval_ptr_dtor((zval**)&iterator->intern.it.data);
941 efree(iterator);
999 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1000 spl_dllist_object *object = iterator->object;
1003 spl_dllist_it_helper_rewind(&iterator
1009 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1018 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1031 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1040 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1253 spl_dllist_it *iterator; local
[all...]
/PHP_5_4/Zend/
H A Dzend_interfaces.c118 /* iterator interface, c-level functions used by engine */
278 zend_user_iterator *iterator; local
281 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
284 iterator = emalloc(sizeof(zend_user_iterator));
287 iterator->it.data = (void*)object;
288 iterator->it.funcs = ce->iterator_funcs.funcs;
289 iterator->ce = Z_OBJCE_P(object);
290 iterator->value = NULL;
291 return (zend_object_iterator*)iterator;
298 zval *iterator local
[all...]
/PHP_5_4/ext/dom/
H A Ddom_iterators.c127 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
129 zval_ptr_dtor((zval**)&iterator->intern.data);
131 if (iterator->curobj) {
132 zval_ptr_dtor((zval**)&iterator->curobj);
135 efree(iterator);
142 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
144 if (iterator->curobj) {
154 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
156 *data = &iterator->curobj;
168 php_dom_iterator *iterator local
205 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
279 php_dom_iterator *iterator; local
[all...]
/PHP_5_4/ext/mysqli/
H A Dmysqli_result_iterator.c49 php_mysqli_result_iterator *iterator; local
52 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
54 iterator = ecalloc(1, sizeof(php_mysqli_result_iterator));
57 iterator->intern.data = (void*)object;
58 iterator->intern.funcs = &php_mysqli_result_iterator_funcs;
59 iterator->result = (mysqli_object *) zend_object_store_get_object(object TSRMLS_CC);
60 iterator->row_num = -1;
62 return (zend_object_iterator*)iterator;
70 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
72 /* cleanup handled in sxe_object_dtor as we dont always have an iterator wrappe
87 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
97 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
108 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
128 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
155 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
[all...]

Completed in 58 milliseconds

12