#include <qExpr.h>

Public Member Functions | |
| barrel (const term *const t) | |
| bool | equivalent (const barrel &rhs) const |
Is the given barrel of variables equivalent to this one? | |
| const char * | name (uint32_t i) const |
| uint32_t | recordVariable (const char *name) |
| Record the specified name. | |
| void | recordVariable (const term *const t) |
Record the variable names appear in the term. | |
| uint32_t | size () const |
| double & | value (uint32_t i) |
| const double & | value (uint32_t i) const |
Protected Types | |
|
typedef std::map< const char *, uint32_t, ibis::lessi > | termMap |
Protected Member Functions | |
| double | getValue (const char *nm) const |
| Return the value of the named variable. | |
| double | getValue (uint32_t i) const |
Protected Attributes | |
| std::vector< const char * > | namelist |
| List of variable names. | |
| termMap | varmap |
Associate a variable name with a position in varvalues and namelist. | |
| std::vector< double > | varvalues |
| All values are casted to double. | |
Friends | |
| class | variable |
| bool ibis::compRange::barrel::equivalent | ( | const barrel & | rhs | ) | const |
Is the given barrel of variables equivalent to this one?
Return true if the two barrels contain the same set of variables, otherwise false.
References varmap.
Referenced by ibis::query::processJoin().
| uint32_t ibis::compRange::barrel::recordVariable | ( | const char * | name | ) | [inline] |
| void ibis::compRange::barrel::recordVariable | ( | const term *const | t | ) |
Record the variable names appear in the term.
Record variables from a term recursively.
References ibis::qExpr::getLeft(), ibis::qExpr::getRight(), and ibis::compRange::term::termType().
Referenced by ibis::part::doScan(), ibis::part::evaluateJoin(), and ibis::query::processJoin().
termMap ibis::compRange::barrel::varmap [protected] |
Associate a variable name with a position in varvalues and namelist.
Referenced by equivalent(), getValue(), and recordVariable().
|
|