|
ATLAS Offline Software
|
Go to the documentation of this file.
53 #ifndef ALGORITHM_LIST_H
54 #define ALGORITHM_LIST_H
94 #define LIST_NULL ((void *) 0)
JetConstituentVector::iterator iterator
char data[hepevt_bytes_allocation_ATLAS]
ListEntry * list_prev(ListEntry *listentry)
Retrieve the previous entry in a list.
ListEntry * list_next(ListEntry *listentry)
Retrieve the next entry in a list.
ListValue list_nth_data(ListEntry *list, int n)
Retrieve the value at a specified index in the list.
struct _ListEntry ListEntry
Represents an entry in a doubly-linked list.
int(* ListEqualFunc)(ListValue value1, ListValue value2)
Callback function used to determine of two values in a list are equal.
ListValue * list_to_array(ListEntry *list)
Create a C array containing the contents of a list.
void list_free(ListEntry *list)
Free an entire list.
int list_remove_entry(ListEntry **list, ListEntry *entry)
Remove an entry from a list.
void list_sort(ListEntry **list, ListCompareFunc compare_func)
Sort a list.
void list_iterate(ListEntry **list, ListIterator *iter)
Initialise a ListIterator structure to iterate over a list.
ListEntry * list_append(ListEntry **list, ListValue data)
Append a value to the end of a list.
ListEntry * list_prepend(ListEntry **list, ListValue data)
Prepend a value to the start of a list.
ListValue list_data(ListEntry *listentry)
Retrieve the value at a list entry.
void * ListValue
A value stored in a list.
ListValue list_iter_next(ListIterator *iterator)
Using a list iterator, retrieve the next value from the list.
int(* ListCompareFunc)(ListValue value1, ListValue value2)
Callback function used to compare values in a list when sorting.
Definition of a ListIterator.
int list_length(ListEntry *list)
Find the length of a list.
void list_iter_remove(ListIterator *iterator)
Delete the current entry in the list (the value last returned from list_iter_next)
ListEntry * list_nth_entry(ListEntry *list, int n)
Retrieve the entry at a specified index in a list.
int list_remove_data(ListEntry **list, ListEqualFunc callback, ListValue data)
Remove all occurrences of a particular value from a list.
ListEntry * list_find_data(ListEntry *list, ListEqualFunc callback, ListValue data)
Find the entry for a particular value in a list.
int list_iter_has_more(ListIterator *iterator)
Determine if there are more values in the list to iterate over.