Lines Matching refs:count

60 	int                     count;  member
228 heap->count = 0; in spl_ptr_heap_init()
238 if (heap->count+1 > heap->max_size) { in spl_ptr_heap_insert()
246 …for (i = heap->count; i > 0 && heap->cmp(&heap->elements[(i-1)/2], elem, cmp_userdata) < 0; i = (i… in spl_ptr_heap_insert()
249 heap->count++; in spl_ptr_heap_insert()
261 if (heap->count == 0) { in spl_ptr_heap_top()
271 const int limit = (heap->count-1)/2; in spl_ptr_heap_delete_top()
274 if (heap->count == 0) { in spl_ptr_heap_delete_top()
280 bottom = &heap->elements[--heap->count]; in spl_ptr_heap_delete_top()
285 if(j != heap->count && heap->cmp(&heap->elements[j+1], &heap->elements[j], cmp_userdata) > 0) { in spl_ptr_heap_delete_top()
315 heap->count = from->count; in spl_ptr_heap_clone()
321 for (i=0; i < heap->count; ++i) { in spl_ptr_heap_clone()
332 for (i=0; i < heap->count; ++i) { in spl_ptr_heap_destroy()
342 return heap->count; in spl_ptr_heap_count()
454 static int spl_heap_object_count_elements(zval *object, zend_long *count) /* {{{ */ in spl_heap_object_count_elements() argument
462 *count = zval_get_long(&rv); in spl_heap_object_count_elements()
466 *count = 0; in spl_heap_object_count_elements()
470 *count = spl_ptr_heap_count(intern->heap); in spl_heap_object_count_elements()
504 for (i = 0; i < intern->heap->count; ++i) { in spl_heap_object_get_debug_info_helper()
523 *gc_data_count = intern->heap->count; in spl_heap_object_get_gc()
543 SPL_METHOD(SplHeap, count) in SPL_METHOD() argument
545 zend_long count; in SPL_METHOD() local
552 count = spl_ptr_heap_count(intern->heap); in SPL_METHOD()
553 RETURN_LONG(count); in SPL_METHOD()
885 return ((Z_SPLHEAP_P(&iter->data))->heap->count != 0 ? SUCCESS : FAILURE); in spl_heap_it_valid()
899 if (object->heap->count == 0 || Z_ISUNDEF_P(element)) { in spl_heap_it_get_current_data()
917 if (object->heap->count == 0 || Z_ISUNDEF_P(element)) { in spl_pqueue_it_get_current_data()
933 ZVAL_LONG(key, object->heap->count - 1); in spl_heap_it_get_current_key()
965 RETURN_LONG(intern->heap->count - 1); in SPL_METHOD()
995 RETURN_BOOL(intern->heap->count != 0); in SPL_METHOD()
1021 if (!intern->heap->count || Z_ISUNDEF_P(element)) { in SPL_METHOD()
1040 if (!intern->heap->count || Z_ISUNDEF_P(element)) { in SPL_METHOD()
1162 SPL_ME(SplHeap, count, arginfo_splheap_void, ZEND_ACC_PUBLIC)
1178 SPL_ME(SplHeap, count, arginfo_splheap_void, ZEND_ACC_PUBLIC)