LAL  7.5.0.1-8083555
LALList.h File Reference

Prototypes

LALListItem * XLALListItemAlloc (size_t size)
 
LALListItem * XLALListItemRealloc (LALListItem *item, size_t size)
 
LALListItem * XLALListItemSet (LALListItem *item, const void *data, size_t size, LALTYPECODE type)
 
LALListItem * XLALListItemSetValue (LALListItem *item, const LALValue *value)
 
LALListItem * XLALListItemDuplicate (const LALListItem *item)
 
const LALValue * XLALListItemGetValue (const LALListItem *item)
 
LALTYPECODE XLALListItemGetValueType (const LALListItem *item)
 
void * XLALListItemGetValueData (void *data, size_t size, LALTYPECODE type, const LALListItem *item)
 
void * XLALListItemGetBLOBValue (const LALListItem *item)
 
const char * XLALListItemGetStringValue (const LALListItem *item)
 
CHAR XLALListItemGetCHARValue (const LALListItem *item)
 
INT2 XLALListItemGetINT2Value (const LALListItem *item)
 
INT4 XLALListItemGetINT4Value (const LALListItem *item)
 
INT8 XLALListItemGetINT8Value (const LALListItem *item)
 
UCHAR XLALListItemGetUCHARValue (const LALListItem *item)
 
UINT2 XLALListItemGetUINT2Value (const LALListItem *item)
 
UINT4 XLALListItemGetUINT4Value (const LALListItem *item)
 
UINT8 XLALListItemGetUINT8Value (const LALListItem *item)
 
REAL4 XLALListItemGetREAL4Value (const LALListItem *item)
 
REAL8 XLALListItemGetREAL8Value (const LALListItem *item)
 
COMPLEX8 XLALListItemGetCOMPLEX8Value (const LALListItem *item)
 
COMPLEX16 XLALListItemGetCOMPLEX16Value (const LALListItem *item)
 
REAL8 XLALListItemGetValueAsREAL8 (const LALListItem *item)
 
void XLALDestroyList (LALList *list)
 
LALList * XLALCreateList (void)
 
LALList * XLALListDuplicate (const LALList *list)
 
int XLALListReverse (LALList *list)
 
int XLALListSort (LALList *list, int(*cmp)(const LALValue *, const LALValue *, void *), void *thunk)
 
size_t XLALListSize (const LALList *list)
 
void XLALListForeach (LALList *list, void(*func)(LALValue *, void *), void *thunk)
 
LALListItem * XLALListPop (LALList *list)
 
LALListItem * XLALListLast (LALList *list)
 
LALListItem * XLALListFind (LALList *list, int(*func)(const LALValue *, void *), void *thunk)
 
LALListItem * XLALListFindValue (LALList *list, const LALValue *value)
 
int XLALListReplace (LALList *list, int(*func)(const LALValue *, void *), void *thunk, const LALValue *replace)
 
int XLALListReplaceAll (LALList *list, int(*func)(const LALValue *, void *), void *thunk, const LALValue *replace)
 
int XLALListReplaceValue (LALList *list, const LALValue *value, const LALValue *replace)
 
int XLALListReplaceValueAll (LALList *list, const LALValue *value, const LALValue *replace)
 
int XLALListRemove (LALList *list, int(*func)(const LALValue *, void *), void *thunk)
 
int XLALListRemoveAll (LALList *list, int(*func)(const LALValue *, void *), void *thunk)
 
int XLALListRemoveValue (LALList *list, const LALValue *value)
 
int XLALListRemoveValueAll (LALList *list, const LALValue *value)
 
void XLALListIterInit (LALListIter *iter, LALList *list)
 
LALListItem * XLALListIterNext (LALListIter *iter)
 
int XLALListAdd (LALList *list, const void *data, size_t size, LALTYPECODE type)
 
int XLALListAddValue (LALList *list, const LALValue *value)
 
int XLALListAddBLOBValue (LALList *list, const void *blob, size_t size)
 
int XLALListAddStringValue (LALList *list, const char *string)
 
int XLALListAddCHARValue (LALList *list, CHAR value)
 
int XLALListAddINT2Value (LALList *list, INT2 value)
 
int XLALListAddINT4Value (LALList *list, INT4 value)
 
int XLALListAddINT8Value (LALList *list, INT8 value)
 
int XLALListAddUCHARValue (LALList *list, UCHAR value)
 
int XLALListAddUINT2Value (LALList *list, UINT2 value)
 
int XLALListAddUINT4Value (LALList *list, UINT4 value)
 
int XLALListAddUINT8Value (LALList *list, UINT8 value)
 
int XLALListAddREAL4Value (LALList *list, REAL4 value)
 
int XLALListAddREAL8Value (LALList *list, REAL8 value)
 
int XLALListAddCOMPLEX8Value (LALList *list, COMPLEX8 value)
 
int XLALListAddCOMPLEX16Value (LALList *list, COMPLEX16 value)
 
char * XLALListAsStringAppend (char *s, LALList *list)
 
void XLALListPrint (LALList *list, int fd)
 

Go to the source code of this file.

Data Structures

struct  LALListIter
 

Function Documentation

◆ XLALListItemAlloc()

LALListItem* XLALListItemAlloc ( size_t  size)

Definition at line 39 of file LALList.c.

◆ XLALListItemRealloc()

LALListItem* XLALListItemRealloc ( LALListItem *  item,
size_t  size 
)

Definition at line 49 of file LALList.c.

◆ XLALListItemSet()

LALListItem* XLALListItemSet ( LALListItem *  item,
const void *  data,
size_t  size,
LALTYPECODE  type 
)

Definition at line 60 of file LALList.c.

◆ XLALListItemSetValue()

LALListItem* XLALListItemSetValue ( LALListItem *  item,
const LALValue *  value 
)

Definition at line 67 of file LALList.c.

◆ XLALListItemDuplicate()

LALListItem* XLALListItemDuplicate ( const LALListItem *  item)

Definition at line 74 of file LALList.c.

◆ XLALListItemGetValue()

const LALValue* XLALListItemGetValue ( const LALListItem *  item)

Definition at line 83 of file LALList.c.

◆ XLALListItemGetValueType()

LALTYPECODE XLALListItemGetValueType ( const LALListItem *  item)

Definition at line 88 of file LALList.c.

◆ XLALListItemGetValueData()

void* XLALListItemGetValueData ( void *  data,
size_t  size,
LALTYPECODE  type,
const LALListItem *  item 
)

Definition at line 96 of file LALList.c.

◆ XLALListItemGetBLOBValue()

void* XLALListItemGetBLOBValue ( const LALListItem *  item)

Definition at line 104 of file LALList.c.

◆ XLALListItemGetStringValue()

const char* XLALListItemGetStringValue ( const LALListItem *  item)

Definition at line 113 of file LALList.c.

◆ XLALListItemGetCHARValue()

CHAR XLALListItemGetCHARValue ( const LALListItem *  item)

◆ XLALListItemGetINT2Value()

INT2 XLALListItemGetINT2Value ( const LALListItem *  item)

◆ XLALListItemGetINT4Value()

INT4 XLALListItemGetINT4Value ( const LALListItem *  item)

◆ XLALListItemGetINT8Value()

INT8 XLALListItemGetINT8Value ( const LALListItem *  item)

◆ XLALListItemGetUCHARValue()

UCHAR XLALListItemGetUCHARValue ( const LALListItem *  item)

◆ XLALListItemGetUINT2Value()

UINT2 XLALListItemGetUINT2Value ( const LALListItem *  item)

◆ XLALListItemGetUINT4Value()

UINT4 XLALListItemGetUINT4Value ( const LALListItem *  item)

◆ XLALListItemGetUINT8Value()

UINT8 XLALListItemGetUINT8Value ( const LALListItem *  item)

◆ XLALListItemGetREAL4Value()

REAL4 XLALListItemGetREAL4Value ( const LALListItem *  item)

◆ XLALListItemGetREAL8Value()

REAL8 XLALListItemGetREAL8Value ( const LALListItem *  item)

◆ XLALListItemGetCOMPLEX8Value()

COMPLEX8 XLALListItemGetCOMPLEX8Value ( const LALListItem *  item)

◆ XLALListItemGetCOMPLEX16Value()

COMPLEX16 XLALListItemGetCOMPLEX16Value ( const LALListItem *  item)

◆ XLALListItemGetValueAsREAL8()

REAL8 XLALListItemGetValueAsREAL8 ( const LALListItem *  item)

Definition at line 145 of file LALList.c.

◆ XLALDestroyList()

void XLALDestroyList ( LALList *  list)

Definition at line 155 of file LALList.c.

◆ XLALCreateList()

LALList* XLALCreateList ( void  )

Definition at line 169 of file LALList.c.

◆ XLALListDuplicate()

LALList* XLALListDuplicate ( const LALList *  list)

Definition at line 174 of file LALList.c.

◆ XLALListReverse()

int XLALListReverse ( LALList *  list)

Definition at line 198 of file LALList.c.

◆ XLALListSort()

int XLALListSort ( LALList *  list,
int(*)(const LALValue *, const LALValue *, void *)  cmp,
void *  thunk 
)

Definition at line 233 of file LALList.c.

◆ XLALListSize()

size_t XLALListSize ( const LALList *  list)

Definition at line 268 of file LALList.c.

◆ XLALListForeach()

void XLALListForeach ( LALList *  list,
void(*)(LALValue *, void *)  func,
void *  thunk 
)

Definition at line 281 of file LALList.c.

◆ XLALListPop()

LALListItem* XLALListPop ( LALList *  list)

Definition at line 293 of file LALList.c.

◆ XLALListLast()

LALListItem* XLALListLast ( LALList *  list)

Definition at line 303 of file LALList.c.

◆ XLALListFind()

LALListItem* XLALListFind ( LALList *  list,
int(*)(const LALValue *, void *)  func,
void *  thunk 
)

Definition at line 314 of file LALList.c.

◆ XLALListFindValue()

LALListItem* XLALListFindValue ( LALList *  list,
const LALValue *  value 
)

Definition at line 334 of file LALList.c.

◆ XLALListReplace()

int XLALListReplace ( LALList *  list,
int(*)(const LALValue *, void *)  func,
void *  thunk,
const LALValue *  replace 
)

Definition at line 340 of file LALList.c.

◆ XLALListReplaceAll()

int XLALListReplaceAll ( LALList *  list,
int(*)(const LALValue *, void *)  func,
void *  thunk,
const LALValue *  replace 
)

Definition at line 372 of file LALList.c.

◆ XLALListReplaceValue()

int XLALListReplaceValue ( LALList *  list,
const LALValue *  value,
const LALValue *  replace 
)

Definition at line 405 of file LALList.c.

◆ XLALListReplaceValueAll()

int XLALListReplaceValueAll ( LALList *  list,
const LALValue *  value,
const LALValue *  replace 
)

Definition at line 411 of file LALList.c.

◆ XLALListRemove()

int XLALListRemove ( LALList *  list,
int(*)(const LALValue *, void *)  func,
void *  thunk 
)

Definition at line 417 of file LALList.c.

◆ XLALListRemoveAll()

int XLALListRemoveAll ( LALList *  list,
int(*)(const LALValue *, void *)  func,
void *  thunk 
)

Definition at line 438 of file LALList.c.

◆ XLALListRemoveValue()

int XLALListRemoveValue ( LALList *  list,
const LALValue *  value 
)

Definition at line 463 of file LALList.c.

◆ XLALListRemoveValueAll()

int XLALListRemoveValueAll ( LALList *  list,
const LALValue *  value 
)

Definition at line 469 of file LALList.c.

◆ XLALListIterInit()

void XLALListIterInit ( LALListIter *  iter,
LALList *  list 
)

Definition at line 475 of file LALList.c.

◆ XLALListIterNext()

LALListItem* XLALListIterNext ( LALListIter *  iter)

Definition at line 480 of file LALList.c.

◆ XLALListAdd()

int XLALListAdd ( LALList *  list,
const void *  data,
size_t  size,
LALTYPECODE  type 
)

Definition at line 489 of file LALList.c.

◆ XLALListAddValue()

int XLALListAddValue ( LALList *  list,
const LALValue *  value 
)

Definition at line 509 of file LALList.c.

◆ XLALListAddBLOBValue()

int XLALListAddBLOBValue ( LALList *  list,
const void *  blob,
size_t  size 
)

Definition at line 517 of file LALList.c.

◆ XLALListAddStringValue()

int XLALListAddStringValue ( LALList *  list,
const char *  string 
)

Definition at line 522 of file LALList.c.

◆ XLALListAddCHARValue()

int XLALListAddCHARValue ( LALList *  list,
CHAR  value 
)

◆ XLALListAddINT2Value()

int XLALListAddINT2Value ( LALList *  list,
INT2  value 
)

◆ XLALListAddINT4Value()

int XLALListAddINT4Value ( LALList *  list,
INT4  value 
)

◆ XLALListAddINT8Value()

int XLALListAddINT8Value ( LALList *  list,
INT8  value 
)

◆ XLALListAddUCHARValue()

int XLALListAddUCHARValue ( LALList *  list,
UCHAR  value 
)

◆ XLALListAddUINT2Value()

int XLALListAddUINT2Value ( LALList *  list,
UINT2  value 
)

◆ XLALListAddUINT4Value()

int XLALListAddUINT4Value ( LALList *  list,
UINT4  value 
)

◆ XLALListAddUINT8Value()

int XLALListAddUINT8Value ( LALList *  list,
UINT8  value 
)

◆ XLALListAddREAL4Value()

int XLALListAddREAL4Value ( LALList *  list,
REAL4  value 
)

◆ XLALListAddREAL8Value()

int XLALListAddREAL8Value ( LALList *  list,
REAL8  value 
)

◆ XLALListAddCOMPLEX8Value()

int XLALListAddCOMPLEX8Value ( LALList *  list,
COMPLEX8  value 
)

◆ XLALListAddCOMPLEX16Value()

int XLALListAddCOMPLEX16Value ( LALList *  list,
COMPLEX16  value 
)

◆ XLALListAsStringAppend()

char* XLALListAsStringAppend ( char *  s,
LALList *  list 
)

Definition at line 560 of file LALList.c.

◆ XLALListPrint()

void XLALListPrint ( LALList *  list,
int  fd 
)

Definition at line 569 of file LALList.c.