A specialization that adds function setValue
.
More...
#include <index.h>
Public Member Functions | |
barrel (const ibis::math::term *t) | |
void | setValue (uint32_t i, double v) |
Public Member Functions inherited from ibis::math::barrel | |
barrel () | |
Constructor. | |
barrel (const term *const t) | |
Constructor. | |
bool | equivalent (const barrel &rhs) const |
Is the given barrel of variables equivalent to this one? More... | |
const char * | name (uint32_t i) const |
void | recordVariable (const qExpr *const t) |
Record the variable names appear in the query expression. More... | |
void | recordVariable (const term *const t) |
Record the variable names appear in the term . More... | |
uint32_t | recordVariable (const char *name) |
Record the specified name. More... | |
uint32_t | size () const |
const double & | value (uint32_t i) const |
double & | value (uint32_t i) |
virtual | ~barrel () |
Destructor. Member variables clean themselves. | |
Additional Inherited Members | |
Protected Types inherited from ibis::math::barrel | |
typedef std::map< const char *, uint32_t, ibis::lessi > | termMap |
Protected Member Functions inherited from ibis::math::barrel | |
double | getValue (uint32_t i) const |
double | getValue (const char *nm) const |
Return the value of the named variable. | |
Protected Attributes inherited from ibis::math::barrel | |
std::vector< const char * > | namelist |
List of variable names. | |
termMap | varmap |
Associate a variable name with a position in varvalues and namelist . More... | |
std::vector< double > | varvalues |
Cast values to double. | |
A specialization that adds function setValue
.
This function allows the client to directly set the value for an individual variable.