|
INSEE 05.04.2011
Interconnection Nertworks Simulation and Evaluation Environment
|
Implementation of a double linked dinamic list. Used by Execution driven simulation module. More...

Defines | |
| #define | TRUE 1 |
| #define | FALSE 0 |
Functions | |
| listElement * | CreateListElement (void *dataPointer) |
| void | DestroyListElement (listElement *thisElement) |
| listElement * | AddBeforeElement (listElement *thisElement, void *dataPointer) |
| listElement * | AddAfterElement (listElement *thisElement, void *dataPointer) |
| list * | CreateVoidList () |
| void | DestroyList (list **theList) |
| void | AddFirst (list *thisList, void *pointer) |
| void | AddLast (list *thisList, void *pointer) |
| void * | StartLoop (list *thisList) |
| void * | GetNext (list *thisList) |
| int | IsInList (list *thisList, void *dataPointer) |
| int | IsEmpty (list *thisList) |
| int | ElementsInList (list *thisList) |
| void | RemoveFromList (list *thisList, void *dataPointer) |
| void | PrintList (list *thisList) |
Implementation of a double linked dinamic list. Used by Execution driven simulation module.
| listElement* AddAfterElement | ( | listElement * | thisElement, |
| void * | dataPointer | ||
| ) |
Adds an element after another one.
| thisElement | The element to insert after. |
| dataPointer | The data of the element to insert. |
| listElement* AddBeforeElement | ( | listElement * | thisElement, |
| void * | dataPointer | ||
| ) |
Adds an element before another one.
| thisElement | The element to insert before. |
| dataPointer | The data of the element to insert. |
| void AddFirst | ( | list * | thisList, |
| void * | pointer | ||
| ) |
Add an element at the begining of a list.
| thisList | The list to insert into. |
| pointer | The data of the element to insert. |
| void AddLast | ( | list * | thisList, |
| void * | pointer | ||
| ) |
Add an element at the end of a list.
| thisList | The list to insert into. |
| pointer | The data of the element to insert. |
| listElement* CreateListElement | ( | void * | dataPointer | ) |
Create a element to be inserted in the list.
| dataPointer | A pointer to the element data. |
| list* CreateVoidList | ( | ) |
Creates an empty list.
| void DestroyList | ( | list ** | theList | ) |
Destroy a list.
| theList | The lñist to destroy. |
| void DestroyListElement | ( | listElement * | thisElement | ) |
Destroy an element.
| thisElement | The element to destroy. |
| int ElementsInList | ( | list * | thisList | ) |
Number of elements in the list.
| thisList | The list to look in. |
| void* GetNext | ( | list * | thisList | ) |
Get an element of a list.
| thisList | The list to get the next element. |
| int IsEmpty | ( | list * | thisList | ) |
Assert if list is empty.
| thisList | The list to look in. |
| int IsInList | ( | list * | thisList, |
| void * | dataPointer | ||
| ) |
Assert if data is in the list.
| thisList | The list to look in. |
| dataPointer | The data to look for. |
| void PrintList | ( | list * | thisList | ) |
Print the list.
| thisList | The list to print. |
| void RemoveFromList | ( | list * | thisList, |
| void * | dataPointer | ||
| ) |
Remove some data from a list.
| thisList | The list to look in. |
| dataPointer | The data to remove. |
| void* StartLoop | ( | list * | thisList | ) |
Start a loop in a list
| thisList | The list to loop into. |
1.7.4