00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __PRIORITY_H__
00024 #define __PRIORITY_H__
00025 #include "dheaps_i.h"
00026
00027
00028
00029
00030
00031
00032 typedef struct ILLpriority
00033 {
00034 ILLdheap heap;
00035 union ILLpri_data
00036 {
00037 void *data;
00038 int next;
00039 }
00040 *pri_info;
00041 int space;
00042 int freelist;
00043 }
00044 ILLpriority;
00045
00046 void ILLutil_priority_free (
00047 ILLpriority * pri),
00048 ILLutil_priority_delete (
00049 ILLpriority * pri,
00050 int handle),
00051 ILLutil_priority_changekey (
00052 ILLpriority * pri,
00053 int handle,
00054 EGlpNum_t * newkey),
00055 ILLutil_priority_findmin (
00056 ILLpriority * pri,
00057 EGlpNum_t * keyval,
00058 void **en),
00059 ILLutil_priority_deletemin (
00060 ILLpriority * pri,
00061 EGlpNum_t * keyval,
00062 void **en);
00063
00064 int ILLutil_priority_init (
00065 ILLpriority * pri,
00066 int k),
00067 ILLutil_priority_insert (
00068 ILLpriority * pri,
00069 void *data,
00070 EGlpNum_t * keyval,
00071 int *handle);
00072
00073
00074
00075 #endif