  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   39 #ifndef ALGORITHM_ARRAYLIST_H 
   40 #define ALGORITHM_ARRAYLIST_H 
  
char data[hepevt_bytes_allocation_ATLAS]
 
int(* ArrayListEqualFunc)(ArrayListValue value1, ArrayListValue value2)
Compare two values in an arraylist to determine if they are equal.
 
void arraylist_remove_range(ArrayList *arraylist, int index, int length)
Remove a range of entries at the specified location in an ArrayList.
 
int _alloced
Private data and should not be accessed.
 
ArrayListValue * data
Entries in the array.
 
int length
Length of the array.
 
void arraylist_sort(ArrayList *arraylist, ArrayListCompareFunc compare_func)
Sort the values in an ArrayList.
 
void arraylist_clear(ArrayList *arraylist)
Remove all entries from an ArrayList.
 
void * ArrayListValue
A value to be stored in an ArrayList.
 
ArrayList * arraylist_new(int length)
Allocate a new ArrayList for use.
 
int arraylist_prepend(ArrayList *arraylist, ArrayListValue data)
Prepend a value to the beginning of an ArrayList.
 
int arraylist_insert(ArrayList *arraylist, int index, ArrayListValue data)
Insert a value at the specified index in an ArrayList.
 
Definition of an ArrayList.
 
int(* ArrayListCompareFunc)(ArrayListValue value1, ArrayListValue value2)
Compare two values in an arraylist.
 
int arraylist_index_of(ArrayList *arraylist, ArrayListEqualFunc callback, ArrayListValue data)
Find the index of a particular value in an ArrayList.
 
void arraylist_free(ArrayList *arraylist)
Destroy an ArrayList and free back the memory it uses.
 
int arraylist_append(ArrayList *arraylist, ArrayListValue data)
Append a value to the end of an ArrayList.
 
void arraylist_remove(ArrayList *arraylist, int index)
Remove the entry at the specified location in an ArrayList.