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

123

/PHP_TRUNK/ext/phar/phar/
H A Ddirectorygraphiterator.inc13 * @brief A tree iterator that only shows directories.
/PHP_TRUNK/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_TRUNK/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_TRUNK/ext/intl/common/
H A Dcommon_enum.h45 if (ii->iterator == NULL) { \
52 zend_object_iterator *iterator; member in struct:__anon76
66 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. */
145 ii->iterator = (zend_object_iterator*)emalloc(sizeof(zoi_with_current));
146 zend_iterator_init(ii->iterator TSRMLS_CC);
147 ZVAL_PTR(&ii->iterator->data, se);
148 ii->iterator->funcs = &string_enum_object_iterator_funcs;
149 ii->iterator->index = 0;
150 ((zoi_with_current*)ii->iterator)->destroy_it = string_enum_destroy_it;
151 ZVAL_COPY_VALUE(&((zoi_with_current*)ii->iterator)
[all...]
/PHP_TRUNK/Zend/
H A Dzend_generators.c190 if (generator->iterator) {
191 zend_iterator_dtor(generator->iterator TSRMLS_CC);
550 static void zend_generator_iterator_dtor(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
552 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data);
553 generator->iterator = NULL;
554 zval_ptr_dtor(&iterator->data);
555 zend_iterator_dtor(iterator TSRMLS_CC);
559 static int zend_generator_iterator_valid(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
561 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data);
569 static zval *zend_generator_iterator_get_data(zend_object_iterator *iterator TSRMLS_D
579 zend_generator_iterator_get_key(zend_object_iterator *iterator, zval *key TSRMLS_DC) argument
622 zend_object_iterator *iterator; local
[all...]
H A Dzend_generators.h31 zend_object_iterator *iterator; member in struct:_zend_generator
H A Dzend_interfaces.c128 /* iterator interface, c-level functions used by engine */
259 zend_user_iterator *iterator; local
262 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
265 iterator = emalloc(sizeof(zend_user_iterator));
267 zend_iterator_init((zend_object_iterator*)iterator TSRMLS_CC);
269 ZVAL_COPY(&iterator->it.data, object);
270 iterator->it.funcs = ce->iterator_funcs.funcs;
271 iterator->ce = Z_OBJCE_P(object);
272 ZVAL_UNDEF(&iterator->value);
273 return (zend_object_iterator*)iterator;
280 zval iterator; local
[all...]
/PHP_TRUNK/ext/dom/
H A Ddom_iterators.c127 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
129 zval_ptr_dtor(&iterator->intern.data);
130 zval_ptr_dtor(&iterator->curobj);
137 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
139 if (Z_TYPE(iterator->curobj) != IS_UNDEF) {
149 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
151 return &iterator->curobj;
157 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
158 zval *object = &iterator->intern.data;
163 dom_object *intern = Z_DOMOBJ_P(&iterator
186 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
256 php_dom_iterator *iterator; local
[all...]
/PHP_TRUNK/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp37 /* BreakIterator's iterator */
46 "The BreakIterator object backing the PHP iterator is not "
124 /* BreakIterator parts iterator */
219 ii->iterator = (zend_object_iterator*)emalloc(sizeof(zoi_break_iter_parts));
220 zend_iterator_init(ii->iterator TSRMLS_CC);
222 ZVAL_COPY(&ii->iterator->data, break_iter_zv);
223 ii->iterator->funcs = &breakiterator_parts_it_funcs;
224 ii->iterator->index = 0;
226 ((zoi_with_current*)ii->iterator)->destroy_it = _breakiterator_parts_destroy_it;
227 ZVAL_COPY_VALUE(&((zoi_with_current*)ii->iterator)
[all...]
/PHP_TRUNK/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 resourcebundle_extract_value( &iterator->current, rb TSRMLS_CC );
48 ZVAL_UNDEF(&iterator->current);
56 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
58 if (!Z_ISUNDEF(iterator
72 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
84 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
92 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
103 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
120 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
130 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
153 ResourceBundle_iterator *iterator = emalloc( sizeof( ResourceBundle_iterator ) ); local
[all...]
/PHP_TRUNK/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));
55 zend_iterator_init(&iterator->intern TSRMLS_CC);
57 ZVAL_COPY(&iterator->intern.data, object);
58 iterator->intern.funcs = &php_mysqli_result_iterator_funcs;
59 iterator->result = Z_MYSQLI_P(object);
60 iterator->row_num = -1;
62 return &iterator->intern;
69 php_mysqli_result_iterator *iterator local
80 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
89 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
99 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
116 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
142 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_iterators.c97 zend_object_iterator *iterator; member in struct:_spl_sub_iterator
168 #define SPL_FETCH_SUB_ITERATOR(var, object) SPL_FETCH_SUB_ELEMENT(var, object, iterator)
178 sub_iter = object->iterators[object->level].iterator;
197 sub_iter = object->iterators[level].iterator;
218 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
226 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
237 zend_object_iterator *iterator; local
244 SPL_FETCH_SUB_ITERATOR(iterator, object);
248 iterator = object->iterators[object->level].iterator;
441 spl_recursive_it_iterator *iterator; local
474 zval *iterator; local
640 zend_object_iterator *iterator; local
660 zend_object_iterator *iterator; local
1055 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1202 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1248 zend_object_iterator *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 */
914 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
916 SPL_LLIST_CHECK_DELREF(iterator->traverse_pointer);
919 zval_ptr_dtor(&iterator->intern.it.data);
975 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
979 spl_dllist_it_helper_rewind(&iterator->traverse_pointer, &iterator->traverse_position, llist, object->flags TSRMLS_CC);
985 spl_dllist_it *iterator local
994 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1007 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1015 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1285 spl_dllist_it *iterator; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_frame.c132 HashPosition iterator; local
139 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(args), &iterator); local
141 (void **) &argstmp, &iterator) == SUCCESS) {
155 zend_hash_move_forward_ex(Z_ARRVAL_PP(args), &iterator); local

Completed in 14 milliseconds

123