IUF-SDK-3
Interventional Ultrasound Library
iufPatternListDict.c File Reference
#include <stdlib.h>
#include <string.h>
#include <hashmap.h>
#include <iuf.h>
#include <iufPatternListDictADT.h>
#include <iufPatternListPrivate.h>

Macros

#define MAX_NAME   1024
 

Functions

iupald_t iufPatternListDictCreate ()
 Create an empty dictionary for IufPatternList objects. More...
 
int iufPatternListDictDeepDelete (iupald_t dict)
 Delete the dictionary and its IufPatternList objects. More...
 
int iufPatternListDictDelete (iupald_t dict)
 Delete the dictionary without deleting its IufPatternList objects. More...
 
int iufPatternListDictCompare (iupald_t reference, iupald_t actual)
 Compare two dictionaries of IufPatternList objects. More...
 
size_t iufPatternListDictGetSize (iupald_t dict)
 Get the number of IufPatternList objects in the dictionary. More...
 
iupal_t iufPatternListDictGet (iupald_t dict, char *key)
 Get the IufPatternList object with label key from the dictionary. More...
 
char ** iufPatternListDictGetKeys (iupald_t dict)
 Get the IufPatternList object with label key from the dictionary. More...
 
int iufPatternListDictSet (iupald_t dict, char *key, iupal_t member)
 Add the IufPatternList object with label key to the dictionary. More...
 
int iufPatternListDictSave (iupald_t dict, hid_t handle)
 
iupald_t iufPatternListDictLoad (hid_t handle)
 

Macro Definition Documentation

◆ MAX_NAME

#define MAX_NAME   1024

Function Documentation

◆ iufPatternListDictCompare()

int iufPatternListDictCompare ( iupald_t  reference,
iupald_t  actual 
)

Compare two dictionaries of IufPatternList objects.

Returns
Returns IUF_TRUE in case the dictionaries are equal and IUF_FALSE otherwise.
Parameters
referenceThe dictionary to compare to
actualThe dictionary to compare with

◆ iufPatternListDictCreate()

iupald_t iufPatternListDictCreate ( void  )

Create an empty dictionary for IufPatternList objects.

Returns
Returns the created dictionary or IUPALD_INVALID in case of an error.

◆ iufPatternListDictDeepDelete()

int iufPatternListDictDeepDelete ( iupald_t  dict)

Delete the dictionary and its IufPatternList objects.

Returns
Returns IUF_E_OK in case of success or IUF_ERR_VALUE in case of an error.
Parameters
dictThe dictionary to be deleted

◆ iufPatternListDictDelete()

int iufPatternListDictDelete ( iupald_t  dict)

Delete the dictionary without deleting its IufPatternList objects.

Returns
Returns IUF_E_OK in case of success or IUF_ERR_VALUE in case of an invalid argument.
Parameters
dictThe dictionary to be deleted

◆ iufPatternListDictGet()

iupal_t iufPatternListDictGet ( iupald_t  dict,
char *  key 
)

Get the IufPatternList object with label key from the dictionary.

Returns
Returns IufPatternList key or IUPALD_INVALID if it is not found.
Parameters
dictThe dictionary of interest
keyThe label of the IufPatternList

◆ iufPatternListDictGetKeys()

char** iufPatternListDictGetKeys ( iupald_t  dict)

Get the IufPatternList object with label key from the dictionary.

Returns
Returns IufPatternList key or IUPALD_INVALID if it is not found.
Parameters
dictThe dictionary of interest

◆ iufPatternListDictGetSize()

size_t iufPatternListDictGetSize ( iupald_t  dict)

Get the number of IufPatternList objects in the dictionary.

Returns
Returns the number of IufPatternList objects or -1 in case of an invalid dictionary.
Parameters
dictThe dictionary of interest

◆ iufPatternListDictLoad()

iupald_t iufPatternListDictLoad ( hid_t  handle)

◆ iufPatternListDictSave()

int iufPatternListDictSave ( iupald_t  dict,
hid_t  handle 
)

◆ iufPatternListDictSet()

int iufPatternListDictSet ( iupald_t  dict,
char *  key,
iupal_t  member 
)

Add the IufPatternList object with label key to the dictionary.

Returns
Returns IUF_E_OK when successful or IUF_ERR_VALUE in case of an error.
Parameters
dictThe dictionary of interest
keyThe label of the IufPatternList
memberThe IufPatternList