The LALInferenceVariableItem list node structure This should only be accessed using the accessor functions below Implementation may change to hash table so please use only the accessor functions below.
A note on memory ownership: each LALInferenceVariableItem() owns the memory for its contents. This means after calling LALInferenceAddVariable() or LALInferenceSetVariable(), you should not free the memory assoicated with the new variable's value. In fact, you should not access this memory through its original pointer again (access through pointers returned by LALInferenceGetVariable() is OK); the object may not be live in memory if its variable has been overwritten through another call to LALInferenceSetVariable().
Definition at line 152 of file LALInference.h.
Data Fields | |
char | name [VARNAME_MAX] |
void * | value |
LALInferenceVariableType | type |
LALInferenceParamVaryType | vary |
struct tagVariableItem * | next |
char LALInferenceVariableItem::name[VARNAME_MAX] |
Definition at line 155 of file LALInference.h.
void* LALInferenceVariableItem::value |
Definition at line 156 of file LALInference.h.
LALInferenceVariableType LALInferenceVariableItem::type |
Definition at line 157 of file LALInference.h.
LALInferenceParamVaryType LALInferenceVariableItem::vary |
Definition at line 158 of file LALInference.h.
struct tagVariableItem* LALInferenceVariableItem::next |
Definition at line 159 of file LALInference.h.