inc/boxLump.h File Reference

#include "boxClump.h"

Include dependency graph for boxLump.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

boxClumpboxLump (struct boxIn **pBoxList)


Function Documentation

struct boxClump* boxLump ( struct boxIn **  pBoxList  )  [read]

Definition at line 74 of file boxLump.c.

References boxClumpFreeList(), boxLump(), FALSE, lumpOneDimension(), slCat(), slCount(), and TRUE.

Referenced by boxLump().

00080 {
00081 struct boxClump *qClumpList = NULL, *tClumpList = NULL, 
00082         *tClump;
00083 
00084 if (*pBoxList == NULL)
00085     return NULL;
00086 tClumpList = lumpOneDimension(*pBoxList, FALSE);
00087 
00088 for (tClump = tClumpList; tClump != NULL; tClump = tClump->next)
00089     {
00090     struct boxClump *oneList = lumpOneDimension(tClump->boxList, TRUE);
00091     if (slCount(oneList) > 1)
00092         {
00093         struct boxClump *clump;
00094         for (clump = oneList; clump != NULL; clump = clump->next)
00095             {
00096             struct boxClump *subList = boxLump(&clump->boxList);
00097             qClumpList = slCat(subList, qClumpList);
00098             }
00099         boxClumpFreeList(&oneList);
00100         }
00101     else
00102         {
00103         qClumpList = slCat(oneList, qClumpList);
00104         }
00105     tClump->boxList = NULL;
00106     }
00107 
00108 boxClumpFreeList(&tClumpList);
00109 *pBoxList = NULL;
00110 return qClumpList;
00111 }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Tue Dec 25 18:43:11 2007 for blat by  doxygen 1.5.2