LALInference  4.1.6.1-89842e6
LALInferenceVariableItem Struct Reference

Detailed Description

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
 

Field Documentation

◆ name

char LALInferenceVariableItem::name[VARNAME_MAX]

Definition at line 155 of file LALInference.h.

◆ value

void* LALInferenceVariableItem::value

Definition at line 156 of file LALInference.h.

◆ type

LALInferenceVariableType LALInferenceVariableItem::type

Definition at line 157 of file LALInference.h.

◆ vary

LALInferenceParamVaryType LALInferenceVariableItem::vary

Definition at line 158 of file LALInference.h.

◆ next

struct tagVariableItem* LALInferenceVariableItem::next

Definition at line 159 of file LALInference.h.