gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
ListUtils.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef LIST_UTILS_H
7 #define LIST_UTILS_H
8 
9 class List_T {
10 public:
11  int nmax;
12  int size;
13  int incr;
14  int n;
15  int isorder;
16  char *array;
17 };
18 
19 List_T *List_Create(int n, int incr, int size);
20 void List_Delete(List_T *liste);
21 void List_Realloc(List_T *liste, int n);
22 void List_Add(List_T *liste, void *data);
23 void List_Add(List_T *liste, int data);
24 int List_Nbr(List_T *liste);
25 void List_Read(List_T *liste, int index, void *data);
26 void List_Write(List_T *liste, int index, void *data);
27 void List_Put(List_T *liste, int index, void *data);
28 void List_Pop(List_T *liste);
29 void *List_Pointer(List_T *liste, int index);
30 void *List_Pointer_NoChange(List_T *liste, int index);
31 void *List_Pointer_Fast(List_T *liste, int index);
32 void List_Sort(List_T *liste, int (*fcmp)(const void *a, const void *b));
33 void List_Unique(List_T *liste, int (*fcmp)(const void *a, const void *b));
34 int List_Search(List_T *liste, void *data,
35  int (*fcmp)(const void *a, const void *b));
36 int List_ISearchSeq(List_T *liste, void *data,
37  int (*fcmp)(const void *a, const void *b));
38 void *List_PQuery(List_T *liste, void *data,
39  int (*fcmp)(const void *a, const void *b));
40 int List_PSuppress(List_T *liste, int index);
41 int List_Suppress(List_T *liste, void *data,
42  int (*fcmp)(const void *a, const void *b));
43 void List_Invert(List_T *a, List_T *b);
44 void List_Reset(List_T *liste);
45 void List_Action(List_T *liste, void (*action)(void *data, void *dummy));
46 void List_Copy(List_T *a, List_T *b);
47 void List_Remove(List_T *a, int i);
48 void List_Insert_In_List(List_T *a, int i, List_T *b);
50 
51 int fcmp_int(const void *a, const void *b);
52 int fcmp_absint(const void *a, const void *b);
53 int fcmp_double(const void *a, const void *b);
54 
55 #endif
List_Unique
void List_Unique(List_T *liste, int(*fcmp)(const void *a, const void *b))
Definition: ListUtils.cpp:182
List_ISearchSeq
int List_ISearchSeq(List_T *liste, void *data, int(*fcmp)(const void *a, const void *b))
Definition: ListUtils.cpp:214
List_PSuppress
int List_PSuppress(List_T *liste, int index)
Definition: ListUtils.cpp:248
List_Nbr
int List_Nbr(List_T *liste)
Definition: ListUtils.cpp:106
List_T::size
int size
Definition: ListUtils.h:12
List_Pointer_NoChange
void * List_Pointer_NoChange(List_T *liste, int index)
Definition: ListUtils.cpp:162
fcmp_double
int fcmp_double(const void *a, const void *b)
Definition: ListUtils.cpp:33
List_T
Definition: ListUtils.h:9
List_T::n
int n
Definition: ListUtils.h:14
List_Sort
void List_Sort(List_T *liste, int(*fcmp)(const void *a, const void *b))
Definition: ListUtils.cpp:176
List_Remove
void List_Remove(List_T *a, int i)
Definition: ListUtils.cpp:293
List_T::incr
int incr
Definition: ListUtils.h:13
List_T::isorder
int isorder
Definition: ListUtils.h:15
List_T::array
char * array
Definition: ListUtils.h:16
List_Delete
void List_Delete(List_T *liste)
Definition: ListUtils.cpp:66
List_T::nmax
int nmax
Definition: ListUtils.h:11
List_Reset
void List_Reset(List_T *liste)
Definition: ListUtils.cpp:269
fcmp_absint
int fcmp_absint(const void *a, const void *b)
Definition: ListUtils.cpp:28
ListOfDouble2ListOfInt
List_T * ListOfDouble2ListOfInt(List_T *dList)
Definition: ListUtils.cpp:315
List_Write
void List_Write(List_T *liste, int index, void *data)
Definition: ListUtils.cpp:120
fcmp_int
int fcmp_int(const void *a, const void *b)
Definition: ListUtils.cpp:26
List_Copy
void List_Copy(List_T *a, List_T *b)
Definition: ListUtils.cpp:283
List_Insert_In_List
void List_Insert_In_List(List_T *a, int i, List_T *b)
Definition: ListUtils.cpp:302
List_Action
void List_Action(List_T *liste, void(*action)(void *data, void *dummy))
Definition: ListUtils.cpp:275
List_Read
void List_Read(List_T *liste, int index, void *data)
Definition: ListUtils.cpp:111
List_Search
int List_Search(List_T *liste, void *data, int(*fcmp)(const void *a, const void *b))
Definition: ListUtils.cpp:199
List_Add
void List_Add(List_T *liste, void *data)
Definition: ListUtils.cpp:90
List_Suppress
int List_Suppress(List_T *liste, void *data, int(*fcmp)(const void *a, const void *b))
Definition: ListUtils.cpp:236
List_Pop
void List_Pop(List_T *liste)
Definition: ListUtils.cpp:146
List_Invert
void List_Invert(List_T *a, List_T *b)
Definition: ListUtils.cpp:259
List_Pointer_Fast
void * List_Pointer_Fast(List_T *liste, int index)
Definition: ListUtils.cpp:171
List_Realloc
void List_Realloc(List_T *liste, int n)
Definition: ListUtils.cpp:73
List_Create
List_T * List_Create(int n, int incr, int size)
Definition: ListUtils.cpp:46
List_PQuery
void * List_PQuery(List_T *liste, void *data, int(*fcmp)(const void *a, const void *b))
Definition: ListUtils.cpp:225
List_Pointer
void * List_Pointer(List_T *liste, int index)
Definition: ListUtils.cpp:152
List_Put
void List_Put(List_T *liste, int index, void *data)
Definition: ListUtils.cpp:130