linked_list.h File Reference

#include "types.h"
#include "node.h"
#include "cell.h"

Include dependency graph for linked_list.h:

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

Go to the source code of this file.

Classes

class  SLinkedList
 The SLinkedList structure handle simple linked lists. More...

Typedefs

typedef struct SLinkedListpSLinkedList

Functions

pSLinkedList Lidy_CreateLinkedList ()
 Create and allocate a new linked list.
Bool Lidy_InsertNodeToTail (pSLinkedList LinkedList, pSCell Cell)
 Insert a node with a cell to the tail of a list.
Bool Lidy_InsertNodeInPosition (pSLinkedList LinkedList, unsigned int Position, pSCell Cell)
 Insert a node with a cell according a given position.
void Lidy_ClearLinkedList (pSLinkedList LinkedList)
 Clear a linked list.
void Lidy_DeleteLinkedList (pSLinkedList LinkedList)
 Delete a linked list.


Typedef Documentation

typedef struct SLinkedList* pSLinkedList

Definition at line 46 of file linked_list.h.


Function Documentation

struct pSLinkedList Lidy_CreateLinkedList (  ) 

Create and allocate a new linked list.

Returns:
Return the linked list created, or else NULL

Bool Lidy_InsertNodeToTail ( pSLinkedList  LinkedList,
pSCell  Cell 
)

Insert a node with a cell to the tail of a list.

Parameters:
LinkedList represent the list where the node is inserted
Cell represent the cell to insert into the list
Returns:
Return true if the insertion has succeeded, or else false

Bool Lidy_InsertNodeInPosition ( pSLinkedList  LinkedList,
unsigned int  Position,
pSCell  Cell 
)

Insert a node with a cell according a given position.

Parameters:
LinkedList is the list where the node is inserted
Position is the position where the node is inserted into the list
Cell is the cell to insert
Returns:
Return true if the insertion has succeeded, or else false

void Lidy_ClearLinkedList ( pSLinkedList  LinkedList  ) 

Clear a linked list.

Parameters:
LinkedList is the list to clear
Returns:
Nothing

void Lidy_DeleteLinkedList ( pSLinkedList  LinkedList  ) 

Delete a linked list.

Parameters:
LinkedList is the list to delete
Returns:
Nothing


Generated on Mon Oct 12 05:24:49 2009 for Lidy by  doxygen 1.5.8