Functions | |
Id | gstlrn::Db::getNLoc (const ELoc &loctype) const |
bool | gstlrn::Db::hasLocVariable (const ELoc &loctype) const |
double | gstlrn::Db::getLocVariable (const ELoc &loctype, Id iech, Id item) const |
void | gstlrn::Db::setLocVariable (const ELoc &loctype, Id iech, Id item, double value) |
void | gstlrn::Db::updLocVariable (const ELoc &loctype, Id iech, Id item, const EOperator &oper, double value) |
Various functions for accessing fields of the Db using the locator designation. They use the argument 'loctype' which refers to the Locator type (see ELoc enumeration). In most cases, they also refer to 'item' i.e. the rank (0 based) for the target locator.
loctype | Target locator |
iech | Target sample (0 based) |
item | Rank of the 'loctype' locator (0 based) |
oper | Type of operation
|
value | Assigned value |
Get the value of the field corresponding to the target locator (and its target item) at the target sample
Id gstlrn::Db::getNLoc | ( | const ELoc & | loctype | ) | const |
Returns the number of fields corresponding to the target locator present in the Db
bool gstlrn::Db::hasLocVariable | ( | const ELoc & | loctype | ) | const |
Check if there is at least one field corresponding to the target locator
Set the value of the field corresponding to the target locator (and its target item) at the target sample