box_list.h File Reference Detailed DescriptionThis is a collection of functions working on box lists. A box list is a special list including boxes. This specialization is handy since it facilitates the manipulation of sets of boxes. Definition in file box_list.h.
Function Documentation
Defines an empty list of boxes.
Definition at line 24 of file box_list.c. References InitList(). Referenced by CopyListOfBoxes(), DealWithCP(), Heap2List(), IncrementalSampleCuikSystemInBox(), ListOfBoxesCluster(), LoadListOfBoxes(), ReverseListOfBoxes(), and SampleCuikSystemInBox(). Copies one list into another. The boxes in l_src are duplicated before inserting them into l_dst.
Definition at line 29 of file box_list.c. References AddLastElement(), Advance(), CopyBox(), EndOfList(), First(), GetCurrent(), InitIterator(), and InitListOfBoxes(). Computes the sum of the volume of the boxes stored in the list.
Definition at line 50 of file box_list.c. References Advance(), EndOfList(), First(), GetBoxVolume(), GetCurrent(), and InitIterator(). Computes the maximum diagonal for all the boxes stored in the list.
Definition at line 70 of file box_list.c. References Advance(), EndOfList(), First(), GetBoxDiagonal(), GetCurrent(), and InitIterator(). Computes the maximum size for all the boxes stored in the list.
Definition at line 91 of file box_list.c. References Advance(), EndOfList(), First(), GetBoxSize(), GetCurrent(), and InitIterator(). Computes a box that is an axis-aligned bounding box for all boxes in a list.
Definition at line 113 of file box_list.c. References Advance(), BoxUnion(), CopyBox(), EndOfList(), First(), GetCurrent(), InitBox(), InitIterator(), and ListSize(). Computes a list of boxes, with one box bounding each one of the connected components defined by the boxes in the input list.
Definition at line 138 of file box_list.c. References AddLastElement(), Advance(), BoxesIntersection(), BoxUnion(), CopyBox(), DeleteBox(), EndOfList(), FALSE, First(), GetCurrent(), InitIterator(), InitListOfBoxes(), ListSize(), NEW, and TRUE. Referenced by DealWithCP(). Adds l_new at the end of l. We assume l to be properly initialized.
Definition at line 230 of file box_list.c. References AddLastElement(), Advance(), CopyBox(), EndOfList(), First(), GetCurrent(), and InitIterator(). Reverses the order of a list. This is a constructor and, thus, l is initialized inside the function.
Definition at line 245 of file box_list.c. References AddFirstElement(), Advance(), CopyBox(), EndOfList(), First(), GetCurrent(), InitIterator(), and InitListOfBoxes(). Prints a list of boxes to a stream that can be stdout.
Definition at line 265 of file box_list.c. References Advance(), EndOfList(), First(), GetCurrent(), InitIterator(), and PrintBoxSubset(). Referenced by DealWithCP(). This is a constructor from a file.
Definition at line 286 of file box_list.c. References AddLastElement(), FALSE, InitList(), ReadBox(), and TRUE. Referenced by LoadSamples(), and main().
Saves a list of boxes to a stream in binary format.
Definition at line 316 of file box_list.c. References Advance(), EndOfList(), First(), GetCurrent(), InitIterator(), ListSize(), and SaveBox(). Referenced by SaveCSState().
This is a constructor from a file in binary format.
Definition at line 334 of file box_list.c. References AddLastElement(), InitListOfBoxes(), and LoadBox(). Referenced by LoadCSState().
Destructor
Definition at line 353 of file box_list.c. References DeleteBox(), DeleteCurrent(), EndOfList(), First(), GetCurrent(), and InitIterator(). Referenced by DealWithCP(), IncrementalSampleCuikSystemInBox(), LoadSamples(), main(), MPI_SolveCuikSystem(), SampleCuikSystemInBox(), and SolveCuikSystem(). |
Follow us!