Searched defs:pq (Results 1 - 3 of 3) sorted by relevance
/dovecot/src/lib/ |
H A D | test-priorityq.c | 34 struct priorityq *pq; local 44 pq = priorityq_init(cmp_int, 1); 46 test_assert(priorityq_count(pq) == j); 49 priorityq_add(pq, &item->item); 51 all_items = priorityq_items(pq); 52 test_assert(priorityq_count(pq) == N_ELEMENTS(output)); 61 test_assert(priorityq_count(pq) == N_ELEMENTS(output) - j); 63 item = (struct pq_test_item *)priorityq_peek(pq); 66 item = (struct pq_test_item *)priorityq_pop(pq); 70 test_assert(priorityq_count(pq) [all...] |
H A D | priorityq.c | 25 struct priorityq *pq; local 27 pq = i_new(struct priorityq, 1); 28 pq->cmp_callback = cmp_callback; 29 i_array_init(&pq->items, init_size); 30 return pq; 35 struct priorityq *pq = *_pq; local 38 array_free(&pq->items); 39 i_free(pq); 42 unsigned int priorityq_count(const struct priorityq *pq) argument 44 return array_count(&pq 66 heap_item_bubble_up(struct priorityq *pq, unsigned int idx) argument 86 heap_item_bubble_down(struct priorityq *pq, unsigned int idx) argument 109 priorityq_add(struct priorityq *pq, struct priorityq_item *item) argument 116 priorityq_remove_idx(struct priorityq *pq, unsigned int idx) argument 136 priorityq_remove(struct priorityq *pq, struct priorityq_item *item) argument 142 priorityq_peek(struct priorityq *pq) argument 153 priorityq_pop(struct priorityq *pq) argument 165 priorityq_items(struct priorityq *pq) argument [all...] |
/dovecot/src/plugins/fts-lucene/ |
H A D | lucene-wrapper.cc | 1137 PhraseQuery* pq = _CLNEW PhraseQuery(); local 1144 pq->add(tm,position); 1147 return pq;
|
Completed in 20 milliseconds