TUM-Logo

libRASCH

 

Home
 

General

About libRASCH/News
Design
Screen shots
Sample programs (with source code)
License
 

Download

libRASCH
Tools
 

Documentation

User
Developer
 

Resources

Mailing list
Supported Formats
Plugins
Status
Links
 
Contact
About this site
 
Last updated
Tue Mar 27 23:03:52 2007
libRASCH: linked_list.c File Reference

linked_list.c File Reference

Include dependency graph for linked_list.c:

Go to the source code of this file.

Defines

#define _LIBRASCH_BUILD

Functions

int ra_list_add (void **head, void *item)
 add an entry to a linked list
int ra_list_insert (void **head, void *prev, void *item)
 insert an entry to a linked list
int ra_list_del (void **head, void *item)
 delete an entry from a linked list
int ra_list_len (void *head)


Detailed Description

This file implements the functions to handle double-linked-lists. The functions assume that the first three structure-elements of the data, managed with this linked-list functions, are defined as in ra_linked_list.h described.

Author:
Raphael Schneider (rasch@med1.med.tum.de)

Definition in file linked_list.c.


Define Documentation

#define _LIBRASCH_BUILD
 

Definition at line 22 of file linked_list.c.


Function Documentation

int ra_list_add void **  head,
void *  item
 

Parameters:
<head> head of linked list
<item> item to be added
This function adds 'item' to the linked list identified by 'head' (head of list).

Definition at line 34 of file linked_list.c.

References linked_list::next, and linked_list::prev.

Referenced by ra_class_add(), ra_eval_add(), ra_eval_attribute_set(), ra_prop_add(), ra_sum_add(), ra_sum_add_part(), read_evals_xml(), read_props_xml(), read_sets_xml(), and read_templates_xml().

int ra_list_del void **  head,
void *  item
 

Parameters:
<head> head of linked list
<item> item to be deleted
This function deletes 'item' from a linked list (identified by 'head').

Definition at line 125 of file linked_list.c.

References linked_list::next, and linked_list::prev.

Referenced by delete_attributes(), free_eval_infos(), ra_class_delete(), ra_eval_add(), ra_eval_attribute_unset(), ra_eval_delete(), ra_prop_delete(), ra_sum_del_part(), and ra_sum_delete().

int ra_list_insert void **  head,
void *  prev,
void *  item
 

Parameters:
<head> head of linked list
<prev> previous item
<item> item to be added
This function inserts 'item' in a linked list (identified by 'head'). The item will come directly after 'prev'.

Definition at line 82 of file linked_list.c.

References linked_list::next, and linked_list::prev.

int ra_list_len void *  head  ) 
 

Definition at line 154 of file linked_list.c.

Referenced by ra_eval_get_all(), ra_prop_get_all(), and ra_sum_get().


Generated on Fri May 27 11:32:56 2005 for libRASCH by  doxygen 1.4.2