box_heap.h
Go to the documentation of this file.00001 #ifndef BOX_HEAPH
00002 #define BOX_HEAPH
00003
00004 #include "heap.h"
00005 #include "box_list.h"
00006 #include "box.h"
00007 #include "boolean.h"
00008
00009
00027 #define INIT_NUM_BOXES_IN_HEAP 100
00028
00042 void InitHeapOfBoxes(boolean (* LessThan)(void *,void*,void*),void *userData,Theap *h);
00043
00044
00045
00055 void AddBox2HeapOfBoxes(Tbox *b,Theap *h);
00056
00069 double HeapOfBoxesVolume(boolean *used,Theap *h);
00070
00083 double HeapOfBoxesMaxDiagonal(boolean *used,Theap *h);
00084
00085
00098 double HeapOfBoxesMaxSize(boolean *used,Theap *h);
00099
00112 void Heap2List(Tlist *l,Theap *h);
00113
00124 void AddList2Heap(Tlist *l,Theap *h);
00125
00126
00145 void PrintHeapOfBoxes(FILE *f,boolean *used,char *heading,Theap *h);
00146
00147 #endif