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

123

/PHP_5_5/ext/phar/phar/
H A Ddirectorygraphiterator.inc13 * @brief A tree iterator that only shows directories.
/PHP_5_5/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 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_5/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 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 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_5/ext/intl/common/
H A Dcommon_enum.h45 if (ii->iterator == NULL) { \
53 zend_object_iterator *iterator; member in struct:__anon190
60 void (*destroy_it)(zend_object_iterator *iterator TSRMLS_DC);
H A Dcommon_enum.cpp50 * Note that the iterator wrapper objects (that also depend on this
53 * function being called by the iterator wrapper destructor function and
54 * not finding the memory of this iterator allocated anymore. */
147 ii->iterator = (zend_object_iterator*)emalloc(sizeof(zoi_with_current));
148 ii->iterator->data = (void*)se;
149 ii->iterator->funcs = &string_enum_object_iterator_funcs;
150 ii->iterator->index = 0;
151 ((zoi_with_current*)ii->iterator)->destroy_it = string_enum_destroy_it;
152 ((zoi_with_current*)ii->iterator)->wrapping_obj = object;
153 ((zoi_with_current*)ii->iterator)
[all...]
/PHP_5_5/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp37 /* BreakIterator's iterator */
47 "The BreakIterator object backing the PHP iterator is not "
129 /* BreakIterator parts iterator */
229 ii->iterator = (zend_object_iterator*)emalloc(sizeof(zoi_break_iter_parts));
230 ii->iterator->data = break_iter_zv;
231 ii->iterator->funcs = &breakiterator_parts_it_funcs;
232 ii->iterator->index = 0;
233 ((zoi_with_current*)ii->iterator)->destroy_it = _breakiterator_parts_destroy_it;
234 ((zoi_with_current*)ii->iterator)->wrapping_obj = object;
235 ((zoi_with_current*)ii->iterator)
[all...]
/PHP_5_5/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
123 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
133 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
156 ResourceBundle_iterator *iterator = emalloc( sizeof( ResourceBundle_iterator ) ); local
[all...]
/PHP_5_5/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
963 spl_heap_it *iterator = (spl_heap_it *)iter; local
1103 spl_heap_it *iterator; local
1127 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
966 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
1071 spl_fixedarray_it *iterator; local
[all...]
H A Dspl_iterators.c97 zend_object_iterator *iterator; member in struct:_spl_sub_iterator
149 sub_iter = object->iterators[object->level].iterator;
166 sub_iter = object->iterators[level].iterator;
189 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
197 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
631 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1014 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1134 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1180 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
[all...]
/PHP_5_5/Zend/
H A Dzend_generators.h31 /* The generator object zval has to be stored, because the iterator is
39 zend_generator_iterator iterator; member in struct:_zend_generator
H A Dzend_interfaces.c118 /* iterator interface, c-level functions used by engine */
252 zend_user_iterator *iterator; local
255 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
258 iterator = emalloc(sizeof(zend_user_iterator));
261 iterator->it.data = (void*)object;
262 iterator->it.funcs = ce->iterator_funcs.funcs;
263 iterator->ce = Z_OBJCE_P(object);
264 iterator->value = NULL;
265 return (zend_object_iterator*)iterator;
272 zval *iterator local
[all...]
H A Dzend_generators.c606 static void zend_generator_iterator_dtor(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
608 zval *object = ((zend_generator_iterator *) iterator)->object;
614 static int zend_generator_iterator_valid(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
616 zend_generator *generator = (zend_generator *) iterator->data;
624 static void zend_generator_iterator_get_data(zend_object_iterator *iterator, zval ***data TSRMLS_DC) /* {{{ */ argument
626 zend_generator *generator = (zend_generator *) iterator->data;
638 static void zend_generator_iterator_get_key(zend_object_iterator *iterator, zval *key TSRMLS_DC) /* {{{ */ argument
640 zend_generator *generator = (zend_generator *) iterator->data;
652 static void zend_generator_iterator_move_forward(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
654 zend_generator *generator = (zend_generator *) iterator
681 zend_generator_iterator *iterator; local
[all...]
/PHP_5_5/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;
162 php_dom_iterator *iterator local
192 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
266 php_dom_iterator *iterator; local
[all...]
/PHP_5_5/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 66 milliseconds

123