|
|
box_heap.c File ReferenceImplementation of the functions operating on box Theap. More... #include "box_heap.h" #include "interval.h" #include "boolean.h" #include "defines.h" #include <stdio.h> #include <stdlib.h> #include <string.h> Go to the source code of this file.
Detailed DescriptionImplementation of the functions operating on Theap with Tbox as a basic type.
Definition in file box_heap.c. Function DocumentationDefines an empty heap of boxes.
Definition at line 21 of file box_heap.c. References CopyBox(), DeleteBox(), FALSE, INIT_NUM_BOXES_IN_HEAP, and InitHeap(). Referenced by MPI_SolveCuikSystem(), and SolveCuikSystem().
Here is the call graph for this function:
Here is the caller graph for this function:
Adds a box to a heap of boxes. The box is copied into the heap and, thus, it can be freely modified after calling this function.
Definition at line 26 of file box_heap.c. References AddElement2Heap(), and NO_UINT. Referenced by MPI_SolveCuikSystem(), PostProcessBox(), and SolveCuikSystem().
Here is the call graph for this function:
Here is the caller graph for this function:
Computes the sum of the volume of the boxes stored in the heap.
Definition at line 31 of file box_heap.c. References GetBoxVolume(), GetHeapElement(), and HeapSize(). Referenced by MPI_SolveCuikSystem(), and SolveCuikSystem().
Here is the call graph for this function:
Here is the caller graph for this function:
Computes the maximum diagonal for all the boxes stored in the heap.
Definition at line 45 of file box_heap.c. References GetBoxDiagonal(), GetHeapElement(), and HeapSize().
Here is the call graph for this function:
Computes the maximum size for all the boxes stored in the heap.
Definition at line 63 of file box_heap.c. References GetBoxSize(), GetHeapElement(), and HeapSize().
Here is the call graph for this function:
Converts a heap of boxes into a list of boxes. The list is constructed (i.e., initialized) inside the function.
Definition at line 82 of file box_heap.c. References AddLastElement(), CopyBox(), GetHeapElement(), HeapSize(), and InitListOfBoxes(). Referenced by MPI_SolveCuikSystem(), and SolveCuikSystem().
Here is the call graph for this function:
Here is the caller graph for this function:
Adds a list of boxes into a previously initialized heap.
Definition at line 97 of file box_heap.c. References AddElement2Heap(), Advance(), EndOfList(), First(), GetCurrent(), InitIterator(), and NO_UINT. Referenced by MPI_SolveCuikSystem(), and SolveCuikSystem().
Here is the call graph for this function:
Here is the caller graph for this function:
Prints a heap of boxes to a stream that can be stdout. The elements of the heap are printed breadth first.
Definition at line 110 of file box_heap.c. References GetHeapElement(), HeapSize(), and PrintBoxSubset().
Here is the call graph for this function:
|