Loading [MathJax]/extensions/TeX/AMSsymbols.js
LAL 7.7.0.1-da3b9d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALDict.h File Reference

Prototypes

void XLALDictEntryFree (LALDictEntry *list)
 
LALDictEntry * XLALDictEntryAlloc (size_t size)
 
LALDictEntry * XLALDictEntryRealloc (LALDictEntry *entry, size_t size)
 
LALDictEntry * XLALDictEntrySetKey (LALDictEntry *entry, const char *key)
 
LALDictEntry * XLALDictEntrySetValue (LALDictEntry *entry, const void *data, size_t size, LALTYPECODE type)
 
const char * XLALDictEntryGetKey (const LALDictEntry *entry)
 
const LALValue * XLALDictEntryGetValue (const LALDictEntry *entry)
 
void XLALClearDict (LALDict *dict)
 
void XLALDestroyDict (LALDict *dict)
 
LALDict * XLALCreateDict (void)
 
int XLALDictUpdate (LALDict *dst, const LALDict *src)
 
LALDict * XLALDictMerge (const LALDict *dict1, const LALDict *dict2)
 
LALDict * XLALDictDuplicate (const LALDict *orig)
 
void XLALDictForeach (LALDict *dict, void(*func)(char *, LALValue *, void *), void *thunk)
 
LALDictEntry * XLALDictFind (LALDict *dict, int(*func)(const char *, const LALValue *, void *), void *thunk)
 
void XLALDictIterInit (LALDictIter *iter, LALDict *dict)
 
LALDictEntry * XLALDictIterNext (LALDictIter *iter)
 
LALList * XLALDictKeys (const LALDict *dict)
 
LALList * XLALDictValues (const LALDict *dict)
 
int XLALDictContains (const LALDict *dict, const char *key)
 
size_t XLALDictSize (const LALDict *dict)
 
int XLALDictRemove (LALDict *dict, const char *key)
 
int XLALDictInsert (LALDict *dict, const char *key, const void *data, size_t size, LALTYPECODE type)
 
int XLALDictInsertValue (LALDict *dict, const char *key, const LALValue *value)
 
int XLALDictInsertBLOBValue (LALDict *dict, const char *key, const void *blob, size_t size)
 
int XLALDictInsertStringValue (LALDict *dict, const char *key, const char *string)
 
int XLALDictInsertCHARValue (LALDict *dict, const char *key, CHAR value)
 
int XLALDictInsertINT2Value (LALDict *dict, const char *key, INT2 value)
 
int XLALDictInsertINT4Value (LALDict *dict, const char *key, INT4 value)
 
int XLALDictInsertINT8Value (LALDict *dict, const char *key, INT8 value)
 
int XLALDictInsertUCHARValue (LALDict *dict, const char *key, UCHAR value)
 
int XLALDictInsertUINT2Value (LALDict *dict, const char *key, UINT2 value)
 
int XLALDictInsertUINT4Value (LALDict *dict, const char *key, UINT4 value)
 
int XLALDictInsertUINT8Value (LALDict *dict, const char *key, UINT8 value)
 
int XLALDictInsertREAL4Value (LALDict *dict, const char *key, REAL4 value)
 
int XLALDictInsertREAL8Value (LALDict *dict, const char *key, REAL8 value)
 
int XLALDictInsertCOMPLEX8Value (LALDict *dict, const char *key, COMPLEX8 value)
 
int XLALDictInsertCOMPLEX16Value (LALDict *dict, const char *key, COMPLEX16 value)
 
LALDictEntry * XLALDictLookup (const LALDict *dict, const char *key)
 
void * XLALDictLookupBLOBValue (const LALDict *dict, const char *key)
 
const char * XLALDictLookupStringValue (const LALDict *dict, const char *key)
 
CHAR XLALDictLookupCHARValue (const LALDict *dict, const char *key)
 
INT2 XLALDictLookupINT2Value (const LALDict *dict, const char *key)
 
INT4 XLALDictLookupINT4Value (const LALDict *dict, const char *key)
 
INT8 XLALDictLookupINT8Value (const LALDict *dict, const char *key)
 
UCHAR XLALDictLookupUCHARValue (const LALDict *dict, const char *key)
 
UINT2 XLALDictLookupUINT2Value (const LALDict *dict, const char *key)
 
UINT4 XLALDictLookupUINT4Value (const LALDict *dict, const char *key)
 
UINT8 XLALDictLookupUINT8Value (const LALDict *dict, const char *key)
 
REAL4 XLALDictLookupREAL4Value (const LALDict *dict, const char *key)
 
REAL8 XLALDictLookupREAL8Value (const LALDict *dict, const char *key)
 
COMPLEX8 XLALDictLookupCOMPLEX8Value (const LALDict *dict, const char *key)
 
COMPLEX16 XLALDictLookupCOMPLEX16Value (const LALDict *dict, const char *key)
 
REAL8 XLALDictLookupValueAsREAL8 (const LALDict *dict, const char *key)
 
LALDictEntry * XLALDictPop (LALDict *dict, const char *key)
 
LALValue * XLALDictPopValue (LALDict *dict, const char *key)
 
void * XLALDictPopBLOBValue (LALDict *dict, const char *key)
 
char * XLALDictPopStringValue (LALDict *dict, const char *key)
 
CHAR XLALDictPopCHARValue (LALDict *dict, const char *key)
 
INT2 XLALDictPopINT2Value (LALDict *dict, const char *key)
 
INT4 XLALDictPopINT4Value (LALDict *dict, const char *key)
 
INT8 XLALDictPopINT8Value (LALDict *dict, const char *key)
 
UCHAR XLALDictPopUCHARValue (LALDict *dict, const char *key)
 
UINT2 XLALDictPopUINT2Value (LALDict *dict, const char *key)
 
UINT4 XLALDictPopUINT4Value (LALDict *dict, const char *key)
 
UINT8 XLALDictPopUINT8Value (LALDict *dict, const char *key)
 
REAL4 XLALDictPopREAL4Value (LALDict *dict, const char *key)
 
REAL8 XLALDictPopREAL8Value (LALDict *dict, const char *key)
 
COMPLEX8 XLALDictPopCOMPLEX8Value (LALDict *dict, const char *key)
 
COMPLEX16 XLALDictPopCOMPLEX16Value (LALDict *dict, const char *key)
 
REAL8 XLALDictPopValueAsREAL8 (LALDict *dict, const char *key)
 
char * XLALDictAsStringAppend (char *s, const LALDict *dict)
 
void XLALDictPrint (const LALDict *dict, int fd)
 

Go to the source code of this file.

Data Structures

struct  LALDictIter
 

Function Documentation

◆ XLALDictEntryFree()

void XLALDictEntryFree ( LALDictEntry *  list)

Definition at line 61 of file LALDict.c.

◆ XLALDictEntryAlloc()

LALDictEntry * XLALDictEntryAlloc ( size_t  size)

Definition at line 73 of file LALDict.c.

◆ XLALDictEntryRealloc()

LALDictEntry * XLALDictEntryRealloc ( LALDictEntry *  entry,
size_t  size 
)

Definition at line 84 of file LALDict.c.

◆ XLALDictEntrySetKey()

LALDictEntry * XLALDictEntrySetKey ( LALDictEntry *  entry,
const char *  key 
)

Definition at line 97 of file LALDict.c.

◆ XLALDictEntrySetValue()

LALDictEntry * XLALDictEntrySetValue ( LALDictEntry *  entry,
const void *  data,
size_t  size,
LALTYPECODE  type 
)

Definition at line 106 of file LALDict.c.

◆ XLALDictEntryGetKey()

const char * XLALDictEntryGetKey ( const LALDictEntry *  entry)

Definition at line 114 of file LALDict.c.

◆ XLALDictEntryGetValue()

const LALValue * XLALDictEntryGetValue ( const LALDictEntry *  entry)

Definition at line 120 of file LALDict.c.

◆ XLALClearDict()

void XLALClearDict ( LALDict *  dict)

Definition at line 127 of file LALDict.c.

◆ XLALDestroyDict()

void XLALDestroyDict ( LALDict *  dict)

Definition at line 137 of file LALDict.c.

◆ XLALCreateDict()

LALDict * XLALCreateDict ( void  )

Definition at line 148 of file LALDict.c.

◆ XLALDictUpdate()

int XLALDictUpdate ( LALDict *  dst,
const LALDict *  src 
)

Definition at line 208 of file LALDict.c.

◆ XLALDictMerge()

LALDict * XLALDictMerge ( const LALDict *  dict1,
const LALDict *  dict2 
)

Definition at line 225 of file LALDict.c.

◆ XLALDictDuplicate()

LALDict * XLALDictDuplicate ( const LALDict *  orig)

Definition at line 239 of file LALDict.c.

◆ XLALDictForeach()

void XLALDictForeach ( LALDict *  dict,
void(*)(char *, LALValue *, void *)  func,
void *  thunk 
)

Definition at line 158 of file LALDict.c.

◆ XLALDictFind()

LALDictEntry * XLALDictFind ( LALDict *  dict,
int(*)(const char *, const LALValue *, void *)  func,
void *  thunk 
)

Definition at line 169 of file LALDict.c.

◆ XLALDictIterInit()

void XLALDictIterInit ( LALDictIter *  iter,
LALDict *  dict 
)

Definition at line 181 of file LALDict.c.

◆ XLALDictIterNext()

LALDictEntry * XLALDictIterNext ( LALDictIter *  iter)

Definition at line 189 of file LALDict.c.

◆ XLALDictKeys()

LALList * XLALDictKeys ( const LALDict *  dict)

Definition at line 244 of file LALDict.c.

◆ XLALDictValues()

LALList * XLALDictValues ( const LALDict *  dict)

Definition at line 264 of file LALDict.c.

◆ XLALDictContains()

int XLALDictContains ( const LALDict *  dict,
const char *  key 
)

Definition at line 284 of file LALDict.c.

◆ XLALDictSize()

size_t XLALDictSize ( const LALDict *  dict)

Definition at line 293 of file LALDict.c.

◆ XLALDictRemove()

int XLALDictRemove ( LALDict *  dict,
const char *  key 
)

Definition at line 335 of file LALDict.c.

◆ XLALDictInsert()

int XLALDictInsert ( LALDict *  dict,
const char *  key,
const void *  data,
size_t  size,
LALTYPECODE  type 
)

Definition at line 344 of file LALDict.c.

◆ XLALDictInsertValue()

int XLALDictInsertValue ( LALDict *  dict,
const char *  key,
const LALValue *  value 
)

Definition at line 396 of file LALDict.c.

◆ XLALDictInsertBLOBValue()

int XLALDictInsertBLOBValue ( LALDict *  dict,
const char *  key,
const void *  blob,
size_t  size 
)

Definition at line 404 of file LALDict.c.

◆ XLALDictInsertStringValue()

int XLALDictInsertStringValue ( LALDict *  dict,
const char *  key,
const char *  string 
)

Definition at line 411 of file LALDict.c.

◆ XLALDictInsertCHARValue()

int XLALDictInsertCHARValue ( LALDict *  dict,
const char *  key,
CHAR  value 
)

◆ XLALDictInsertINT2Value()

int XLALDictInsertINT2Value ( LALDict *  dict,
const char *  key,
INT2  value 
)

◆ XLALDictInsertINT4Value()

int XLALDictInsertINT4Value ( LALDict *  dict,
const char *  key,
INT4  value 
)

◆ XLALDictInsertINT8Value()

int XLALDictInsertINT8Value ( LALDict *  dict,
const char *  key,
INT8  value 
)

◆ XLALDictInsertUCHARValue()

int XLALDictInsertUCHARValue ( LALDict *  dict,
const char *  key,
UCHAR  value 
)

◆ XLALDictInsertUINT2Value()

int XLALDictInsertUINT2Value ( LALDict *  dict,
const char *  key,
UINT2  value 
)

◆ XLALDictInsertUINT4Value()

int XLALDictInsertUINT4Value ( LALDict *  dict,
const char *  key,
UINT4  value 
)

◆ XLALDictInsertUINT8Value()

int XLALDictInsertUINT8Value ( LALDict *  dict,
const char *  key,
UINT8  value 
)

◆ XLALDictInsertREAL4Value()

int XLALDictInsertREAL4Value ( LALDict *  dict,
const char *  key,
REAL4  value 
)

◆ XLALDictInsertREAL8Value()

int XLALDictInsertREAL8Value ( LALDict *  dict,
const char *  key,
REAL8  value 
)

◆ XLALDictInsertCOMPLEX8Value()

int XLALDictInsertCOMPLEX8Value ( LALDict *  dict,
const char *  key,
COMPLEX8  value 
)

◆ XLALDictInsertCOMPLEX16Value()

int XLALDictInsertCOMPLEX16Value ( LALDict *  dict,
const char *  key,
COMPLEX16  value 
)

◆ XLALDictLookup()

LALDictEntry * XLALDictLookup ( const LALDict *  dict,
const char *  key 
)

Definition at line 305 of file LALDict.c.

◆ XLALDictLookupBLOBValue()

void * XLALDictLookupBLOBValue ( const LALDict *  dict,
const char *  key 
)

Definition at line 442 of file LALDict.c.

◆ XLALDictLookupStringValue()

const char * XLALDictLookupStringValue ( const LALDict *  dict,
const char *  key 
)

Definition at line 455 of file LALDict.c.

◆ XLALDictLookupCHARValue()

CHAR XLALDictLookupCHARValue ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupINT2Value()

INT2 XLALDictLookupINT2Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupINT4Value()

INT4 XLALDictLookupINT4Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupINT8Value()

INT8 XLALDictLookupINT8Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupUCHARValue()

UCHAR XLALDictLookupUCHARValue ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupUINT2Value()

UINT2 XLALDictLookupUINT2Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupUINT4Value()

UINT4 XLALDictLookupUINT4Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupUINT8Value()

UINT8 XLALDictLookupUINT8Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupREAL4Value()

REAL4 XLALDictLookupREAL4Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupREAL8Value()

REAL8 XLALDictLookupREAL8Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupCOMPLEX8Value()

COMPLEX8 XLALDictLookupCOMPLEX8Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupCOMPLEX16Value()

COMPLEX16 XLALDictLookupCOMPLEX16Value ( const LALDict *  dict,
const char *  key 
)

◆ XLALDictLookupValueAsREAL8()

REAL8 XLALDictLookupValueAsREAL8 ( const LALDict *  dict,
const char *  key 
)

Definition at line 494 of file LALDict.c.

◆ XLALDictPop()

LALDictEntry * XLALDictPop ( LALDict *  dict,
const char *  key 
)

Definition at line 314 of file LALDict.c.

◆ XLALDictPopValue()

LALValue * XLALDictPopValue ( LALDict *  dict,
const char *  key 
)

Definition at line 507 of file LALDict.c.

◆ XLALDictPopBLOBValue()

void * XLALDictPopBLOBValue ( LALDict *  dict,
const char *  key 
)

Definition at line 518 of file LALDict.c.

◆ XLALDictPopStringValue()

char * XLALDictPopStringValue ( LALDict *  dict,
const char *  key 
)

Definition at line 529 of file LALDict.c.

◆ XLALDictPopCHARValue()

CHAR XLALDictPopCHARValue ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopINT2Value()

INT2 XLALDictPopINT2Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopINT4Value()

INT4 XLALDictPopINT4Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopINT8Value()

INT8 XLALDictPopINT8Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopUCHARValue()

UCHAR XLALDictPopUCHARValue ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopUINT2Value()

UINT2 XLALDictPopUINT2Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopUINT4Value()

UINT4 XLALDictPopUINT4Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopUINT8Value()

UINT8 XLALDictPopUINT8Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopREAL4Value()

REAL4 XLALDictPopREAL4Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopREAL8Value()

REAL8 XLALDictPopREAL8Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopCOMPLEX8Value()

COMPLEX8 XLALDictPopCOMPLEX8Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopCOMPLEX16Value()

COMPLEX16 XLALDictPopCOMPLEX16Value ( LALDict *  dict,
const char *  key 
)

◆ XLALDictPopValueAsREAL8()

REAL8 XLALDictPopValueAsREAL8 ( LALDict *  dict,
const char *  key 
)

Definition at line 566 of file LALDict.c.

◆ XLALDictAsStringAppend()

char * XLALDictAsStringAppend ( char *  s,
const LALDict *  dict 
)

Definition at line 591 of file LALDict.c.

◆ XLALDictPrint()

void XLALDictPrint ( const LALDict *  dict,
int  fd 
)

Definition at line 601 of file LALDict.c.