26 #ifndef NIDAS_CORE_VARIABLEINDEX_H
27 #define NIDAS_CORE_VARIABLEINDEX_H
29 namespace nidas {
namespace core {
114 get(
float* fdata,
float dflt)
126 set(
float* fdata,
float value)
Variable * _variable
Definition: VariableIndex.h:146
Variable * variable()
Definition: VariableIndex.h:98
Class describing a sampled variable.
Definition: Variable.h:46
bool operator!() const
Definition: VariableIndex.h:133
bool valid() const
Definition: VariableIndex.h:139
void set(float *fdata, float value)
Set value at this variable's index into fdata.
Definition: VariableIndex.h:126
int index()
Definition: VariableIndex.h:104
VariableIndex & operator=(const VariableIndex &rhs)
Assign the pointer and index of the given VariableIndex to this instance.
Definition: VariableIndex.h:85
VariableIndex(const VariableIndex &rhs)
The copy constructor copies the pointer and index of the given VariableIndex.
Definition: VariableIndex.h:76
A VariableIndex associates a Variable pointer with it's index into it's SampleTag.
Definition: VariableIndex.h:51
int _index
Definition: VariableIndex.h:147
VariableIndex(Variable *var, int index)
Construct a VariableIndex with the given Variable and index.
Definition: VariableIndex.h:67
VariableIndex()
Default constructor creates an invalid VariableIndex: the Variable pointer is null and the index is -...
Definition: VariableIndex.h:59
bool operator==(const VariableIndex &rhs) const
Definition: VariableIndex.h:92