gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
TreeUtils.h File Reference
#include "avl.h"
#include "ListUtils.h"
Include dependency graph for TreeUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Tree_T
 

Functions

Tree_TTree_Create (int size, int(*fcmp)(const void *a, const void *b))
 
void Tree_Delete (Tree_T *Tree)
 
void Tree_Delete (Tree_T *Tree, void(*freefn)(void *))
 
void * Tree_Add (Tree_T *tree, void *data)
 
int Tree_Nbr (Tree_T *Tree)
 
int Tree_Insert (Tree_T *Tree, void *data)
 
int Tree_Search (Tree_T *Tree, void *data)
 
int Tree_Query (Tree_T *Tree, void *data)
 
void * Tree_PQuery (Tree_T *Tree, void *data)
 
int Tree_Suppress (Tree_T *Tree, void *data)
 
int Tree_Size (Tree_T *tree)
 
void Tree_Action (Tree_T *tree, void(*action)(void *data, void *dummy))
 
List_TTree2List (Tree_T *pTree)
 

Function Documentation

◆ Tree2List()

◆ Tree_Action()

void Tree_Action ( Tree_T tree,
void(*)(void *data, void *dummy)  action 
)

Definition at line 100 of file TreeUtils.cpp.

Referenced by GEO_Internals::_freeAll(), ReplaceDuplicateCurves(), ReplaceDuplicatePoints(), ReplaceDuplicateSurfaces(), and Tree2List().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tree_Add()

◆ Tree_Create()

Tree_T* Tree_Create ( int  size,
int(*)(const void *a, const void *b)  fcmp 
)

Definition at line 15 of file TreeUtils.cpp.

Referenced by GEO_Internals::_allocateAll(), allEdgesLinked(), allFacesLinked(), ReplaceDuplicateCurves(), ReplaceDuplicatePoints(), and ReplaceDuplicateSurfaces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tree_Delete() [1/2]

void Tree_Delete ( Tree_T Tree)

Definition at line 23 of file TreeUtils.cpp.

Referenced by GEO_Internals::_freeAll(), allEdgesLinked(), allFacesLinked(), ReplaceDuplicateCurves(), ReplaceDuplicatePoints(), and ReplaceDuplicateSurfaces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tree_Delete() [2/2]

void Tree_Delete ( Tree_T Tree,
void(*)(void *)  freefn 
)

Definition at line 30 of file TreeUtils.cpp.

Here is the call graph for this function:

◆ Tree_Insert()

int Tree_Insert ( Tree_T Tree,
void *  data 
)

Definition at line 52 of file TreeUtils.cpp.

Referenced by DuplicateCurve(), DuplicateSurface(), DuplicateVertex(), DuplicateVolume(), IntersectCurvesWithSurface(), ReplaceDuplicateCurves(), ReplaceDuplicatePoints(), and ReplaceDuplicateSurfaces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tree_Nbr()

int Tree_Nbr ( Tree_T Tree)

Definition at line 46 of file TreeUtils.cpp.

Referenced by allEdgesLinked(), allFacesLinked(), GModel::exportDiscreteGEOInternals(), ReplaceDuplicateCurves(), ReplaceDuplicatePoints(), ReplaceDuplicatePointsNew(), ReplaceDuplicateSurfaces(), GEO_Internals::synchronize(), and Tree2List().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tree_PQuery()

void* Tree_PQuery ( Tree_T Tree,
void *  data 
)

Definition at line 77 of file TreeUtils.cpp.

Referenced by createEdgeLinks(), createFaceLinks(), CreateReversedCurve(), ReplaceDuplicateCurves(), ReplaceDuplicatePoints(), and ReplaceDuplicateSurfaces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tree_Query()

int Tree_Query ( Tree_T Tree,
void *  data 
)

Definition at line 68 of file TreeUtils.cpp.

Referenced by ExtrudePoint(), FindCurve(), FindEdgeLoop(), FindPoint(), FindSurface(), FindSurfaceLoop(), FindVolume(), orientAndSortEdges(), recurFindLinkedEdges(), recurFindLinkedFaces(), and ReplaceDuplicatePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tree_Search()

int Tree_Search ( Tree_T Tree,
void *  data 
)

Definition at line 61 of file TreeUtils.cpp.

Referenced by allEdgesLinked(), allFacesLinked(), recurFindLinkedEdges(), recurFindLinkedFaces(), ReplaceDuplicateCurves(), ReplaceDuplicatePoints(), ReplaceDuplicateSurfaces(), and Tree_Insert().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tree_Size()

int Tree_Size ( Tree_T tree)

Definition at line 94 of file TreeUtils.cpp.

Referenced by Tree2List().

Here is the caller graph for this function:

◆ Tree_Suppress()

int Tree_Suppress ( Tree_T Tree,
void *  data 
)