heap.h
Go to the documentation of this file.
boolean LessThanDouble(void *a, void *b, void *userData) Comparison operator for doubles. Definition: heap.c:219 void AddElement2Heap(unsigned int id, void *e, Theap *heap) Adds an element to the heap. Definition: heap.c:294 unsigned int ExtractMinElement(void *e, Theap *heap) Extracts and removes the minimal element of a heap. Definition: heap.c:356 boolean LessThanDoublePair(void *a, void *b, void *userData) Comparison operator for paris of doubles. Definition: heap.c:224 void UpdateHeapElement(unsigned int id, void *e, Theap *heap) Updates the position of an element in the heap. Definition: heap.c:308 void * GetHeapElementWithID(unsigned int id, Theap *heap) Returns a pointer to a heap element given the element identifier. Definition: heap.c:340 void InitHeap(unsigned int ele_size, void(*Copy)(void *, void *), void(*Delete)(void *), boolean(*LessThan)(void *, void *, void *), void *userData, boolean hasIDs, unsigned int max_ele, Theap *heap) Constructor. Definition: heap.c:237 boolean LessThanID(void *a, void *b, void *userData) Comparison operator for identifiers. Definition: heap.c:214 Definition of the Tvector type and the associated functions. boolean LessThanPtr(void *a, void *b, void *userData) Comparison operator for pointers. Definition: heap.c:231 void * GetHeapElement(unsigned int i, Theap *heap) Returns a pointer to a heap element. Definition: heap.c:331 unsigned int GetHeapPosition(unsigned int id, Theap *heap) Returns the current position in the heap of an element given its identifier. Definition: heap.c:348 |
Follow us!