GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71806
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
heap.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "type.h"
#include "heap.h"
Include dependency graph for heap.c:

Go to the source code of this file.

Functions

void dglHeapInit (dglHeap_s *pheap)
 
void dglHeapFree (dglHeap_s *pheap, dglHeapCancelItem_fn pfnCancelItem)
 
int dglHeapInsertMin (dglHeap_s *pheap, long key, unsigned char flags, dglHeapData_u value)
 
int dglHeapExtractMin (dglHeap_s *pheap, dglHeapNode_s *pnoderet)
 
int dglHeapInsertMax (dglHeap_s *pheap, long key, unsigned char flags, dglHeapData_u value)
 
int dglHeapExtractMax (dglHeap_s *pheap, dglHeapNode_s *pnoderet)
 

Function Documentation

int dglHeapExtractMax ( dglHeap_s pheap,
dglHeapNode_s pnoderet 
)

Definition at line 138 of file heap.c.

References _dglHeap::index, _dglHeapNode::key, and _dglHeap::pnode.

int dglHeapInsertMax ( dglHeap_s pheap,
long  key,
unsigned char  flags,
dglHeapData_u  value 
)