25 #include <lal/LALDatatypes.h>
26 #include <lal/LALValue.h>
77 int XLALListSort(LALList *list,
int (*
cmp)(
const LALValue *,
const LALValue *,
void *),
void *thunk);
79 void XLALListForeach(LALList *list,
void (*func)(LALValue *,
void *),
void *thunk);
82 LALListItem *
XLALListFind(LALList *list,
int (*func)(
const LALValue *,
void *),
void *thunk);
84 int XLALListReplace(LALList *list,
int (*func)(
const LALValue *,
void *),
void *thunk,
const LALValue *
replace);
88 int XLALListRemove(LALList *list,
int (*func)(
const LALValue *,
void *),
void *thunk);
89 int XLALListRemoveAll(LALList *list,
int (*func)(
const LALValue *,
void *),
void *thunk);
118 #elif defined(__cplusplus)
void XLALListPrint(LALList *list, int fd)
int XLALListAddValue(LALList *list, const LALValue *value)
LALListItem * XLALListItemRealloc(LALListItem *item, size_t size)
LALList * XLALListDuplicate(const LALList *list)
INT4 XLALListItemGetINT4Value(const LALListItem *item)
int XLALListReverse(LALList *list)
INT8 XLALListItemGetINT8Value(const LALListItem *item)
int XLALListAddCOMPLEX8Value(LALList *list, COMPLEX8 value)
LALListItem * XLALListLast(LALList *list)
UCHAR XLALListItemGetUCHARValue(const LALListItem *item)
size_t XLALListSize(const LALList *list)
int XLALListAddINT2Value(LALList *list, INT2 value)
INT2 XLALListItemGetINT2Value(const LALListItem *item)
int XLALListAddINT8Value(LALList *list, INT8 value)
int XLALListAddREAL8Value(LALList *list, REAL8 value)
UINT2 XLALListItemGetUINT2Value(const LALListItem *item)
void XLALListIterInit(LALListIter *iter, LALList *list)
const char * XLALListItemGetStringValue(const LALListItem *item)
int XLALListAddUINT2Value(LALList *list, UINT2 value)
REAL8 XLALListItemGetValueAsREAL8(const LALListItem *item)
void * XLALListItemGetValueData(void *data, size_t size, LALTYPECODE type, const LALListItem *item)
int XLALListAddINT4Value(LALList *list, INT4 value)
int XLALListRemoveValue(LALList *list, const LALValue *value)
int XLALListAddUINT4Value(LALList *list, UINT4 value)
void * XLALListItemGetBLOBValue(const LALListItem *item)
LALListItem * XLALListFind(LALList *list, int(*func)(const LALValue *, void *), void *thunk)
UINT4 XLALListItemGetUINT4Value(const LALListItem *item)
int XLALListReplaceValue(LALList *list, const LALValue *value, const LALValue *replace)
int XLALListReplaceValueAll(LALList *list, const LALValue *value, const LALValue *replace)
int XLALListSort(LALList *list, int(*cmp)(const LALValue *, const LALValue *, void *), void *thunk)
int XLALListAddStringValue(LALList *list, const char *string)
int XLALListAddUINT8Value(LALList *list, UINT8 value)
void XLALListForeach(LALList *list, void(*func)(LALValue *, void *), void *thunk)
UINT8 XLALListItemGetUINT8Value(const LALListItem *item)
int XLALListRemoveValueAll(LALList *list, const LALValue *value)
REAL4 XLALListItemGetREAL4Value(const LALListItem *item)
COMPLEX16 XLALListItemGetCOMPLEX16Value(const LALListItem *item)
int XLALListAddBLOBValue(LALList *list, const void *blob, size_t size)
LALTYPECODE XLALListItemGetValueType(const LALListItem *item)
int XLALListReplaceAll(LALList *list, int(*func)(const LALValue *, void *), void *thunk, const LALValue *replace)
REAL8 XLALListItemGetREAL8Value(const LALListItem *item)
int XLALListAdd(LALList *list, const void *data, size_t size, LALTYPECODE type)
LALListItem * XLALListItemSet(LALListItem *item, const void *data, size_t size, LALTYPECODE type)
const LALValue * XLALListItemGetValue(const LALListItem *item)
int XLALListRemoveAll(LALList *list, int(*func)(const LALValue *, void *), void *thunk)
void XLALDestroyList(LALList *list)
CHAR XLALListItemGetCHARValue(const LALListItem *item)
int XLALListAddCHARValue(LALList *list, CHAR value)
int XLALListRemove(LALList *list, int(*func)(const LALValue *, void *), void *thunk)
LALListItem * XLALListItemDuplicate(const LALListItem *item)
int XLALListAddUCHARValue(LALList *list, UCHAR value)
LALListItem * XLALListPop(LALList *list)
int XLALListAddCOMPLEX16Value(LALList *list, COMPLEX16 value)
LALListItem * XLALListIterNext(LALListIter *iter)
LALList * XLALCreateList(void)
LALListItem * XLALListItemSetValue(LALListItem *item, const LALValue *value)
int XLALListReplace(LALList *list, int(*func)(const LALValue *, void *), void *thunk, const LALValue *replace)
char * XLALListAsStringAppend(char *s, LALList *list)
COMPLEX8 XLALListItemGetCOMPLEX8Value(const LALListItem *item)
LALListItem * XLALListFindValue(LALList *list, const LALValue *value)
int XLALListAddREAL4Value(LALList *list, REAL4 value)
LALListItem * XLALListItemAlloc(size_t size)
static int replace(int c, void *param)
static int cmp(REAL4Sequence *a, REAL4Sequence *b)
LALTYPECODE
Type codes: use these type codes to identify a LAL atomic data type, see Headers LAL(Atomic)Datatypes...
unsigned char UCHAR
One-byte unsigned integer, see Headers LAL(Atomic)Datatypes.h for more details.
uint64_t UINT8
Eight-byte unsigned integer; on some platforms this is equivalent to unsigned long int instead.
double complex COMPLEX16
Double-precision floating-point complex number (16 bytes total)
double REAL8
Double precision real floating-point number (8 bytes).
int16_t INT2
Two-byte signed integer.
int64_t INT8
Eight-byte signed integer; on some platforms this is equivalent to long int instead.
uint16_t UINT2
Two-byte unsigned integer.
char CHAR
One-byte signed integer, see Headers LAL(Atomic)Datatypes.h for more details.
uint32_t UINT4
Four-byte unsigned integer.
float complex COMPLEX8
Single-precision floating-point complex number (8 bytes total)
int32_t INT4
Four-byte signed integer.
float REAL4
Single precision real floating-point number (4 bytes).
struct tagLALListItem * next