gstlearn
1.0.0
CCC
|
Functions | |
int | Db::getLocNumber (const ELoc &loctype) const |
bool | Db::hasLocVariable (const ELoc &loctype) const |
double | Db::getLocVariable (const ELoc &loctype, int iech, int item) const |
void | Db::setLocVariable (const ELoc &loctype, int iech, int item, double value) |
void | Db::updLocVariable (const ELoc &loctype, int iech, int item, int 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 |
int Db::getLocNumber | ( | const ELoc & | loctype | ) | const |
Returns the number of fields corresponding to the target locator present in the Db
double Db::getLocVariable | ( | const ELoc & | loctype, |
int | iech, | ||
int | item | ||
) | const |
Get the value of the field corresponding to the target locator (and its target item) at the target sample
bool Db::hasLocVariable | ( | const ELoc & | loctype | ) | const |
Check if there is at least one field corresponding to the target locator
void Db::setLocVariable | ( | const ELoc & | loctype, |
int | iech, | ||
int | item, | ||
double | value | ||
) |
Set the value of the field corresponding to the target locator (and its target item) at the target sample
void Db::updLocVariable | ( | const ELoc & | loctype, |
int | iech, | ||
int | item, | ||
int | oper, | ||
double | value | ||
) |
Update the value of the field corresponding to the target locator (and its target item) at the target sample