* \param init_size initial size of the heap
* \param free_func function to call on each element when you want to free
* the whole heap (or NULL if nothing to do).
*
* Creates a new heap.
*/
* \param init_size initial size of the heap
* \param free_func function to call on each element when you want to free
* the whole heap (or NULL if nothing to do).
*
* Creates a new heap.
*/
- * \param H the heap we're working on
- * \return the number of elements in the heap
+ * @brief returns the number of elements in the heap
+ * @param H the heap we're working on
+ * @return the number of elements in the heap
* \param H the heap we're working on
* \param content the object you want to add to the heap
* \param key the key associated to this object
*
* \param H the heap we're working on
* \param content the object you want to add to the heap
* \param key the key associated to this object
*
*/
void xbt_heap_push(xbt_heap_t H, void *content, double key)
{
int count = ++(H->count);
*/
void xbt_heap_push(xbt_heap_t H, void *content, double key)
{
int count = ++(H->count);
* \param H the heap we're working on
*
* \return the smallest key in the heap without modifying the heap.
*/
double xbt_heap_maxkey(xbt_heap_t H)
{
* \param H the heap we're working on
*
* \return the smallest key in the heap without modifying the heap.
*/
double xbt_heap_maxkey(xbt_heap_t H)
{
* Restores the heap property once an element has been deleted.
*/
static void xbt_heap_maxHeapify(xbt_heap_t H)
* Restores the heap property once an element has been deleted.
*/
static void xbt_heap_maxHeapify(xbt_heap_t H)
* Moves up an item at position i to its correct position. Works only
* when called from xbt_heap_push. Do not use otherwise.
*/
* Moves up an item at position i to its correct position. Works only
* when called from xbt_heap_push. Do not use otherwise.
*/