BOSS 6.6.4.p01
BESIII Offline Software System
|
#include <Assertion.h>
Public Member Functions | |
Operator () | |
~Operator () | |
Operator (OPTYPE type, const std::string &leftArg, const std::string &rightArg, FIELDTYPE leftType, FIELDTYPE rightType) | |
Operator (OPTYPE type, const std::string &tableName, Operator *child=0) | |
Constructor for EXISTS. | |
Operator (OPTYPE type, const std::vector< Operator * > &children, bool keepChildren=false) | |
Constructor for OR, AND, NOT. | |
Operator (Operator *op, Row *toBe) | |
Copy an operator, substituting from toBe row as appropriate. | |
bool | appendChild (Operator *child) |
Add another child to a conjunction-style operator. | |
bool | validCompareOp (Table *table) const |
bool | isCompareOp () const |
const std::string * | getCompareArgs () const |
Throw exception if Operator is not a comparison operator. | |
const std::string & | getTableName () const |
Throw exception if Operaotr is not EXISTS. | |
const FIELDTYPE * | getCompareArgTypes () const |
Get types of comparison args. | |
const std::vector< Operator * > & | getChildren () const |
Throw exception if Operator is a comparison operator. | |
OPTYPE | getOpType () const |
bool | getToBe () const |
True if operator or sub-operator refers to future row. | |
bool | getOld () const |
True if operator or sub-operator refers to existing row. | |
bool | verify (Row &old, Row &toBe, Table *t) const |
Evaluate operator on argument Rows. | |
Definition at line 71 of file Calibration/rdbModel/rdbModel-00-01-00/rdbModel/Tables/Assertion.h.
|
inline |
Definition at line 73 of file Calibration/rdbModel/rdbModel-00-01-00/rdbModel/Tables/Assertion.h.
Referenced by Operator().
rdbModel::Assertion::Operator::~Operator | ( | ) |
Definition at line 12 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
rdbModel::Assertion::Operator::Operator | ( | OPTYPE | type, |
const std::string & | leftArg, | ||
const std::string & | rightArg, | ||
FIELDTYPE | leftType, | ||
FIELDTYPE | rightType | ||
) |
Constructor for comparison. If the operator is OPTTYPEisNull or OPTYPEisEmpty rightArg and rightLiteral are ignored.
Definition at line 39 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
rdbModel::Assertion::Operator::Operator | ( | OPTYPE | type, |
const std::string & | tableName, | ||
Operator * | child = 0 |
||
) |
Constructor for EXISTS.
Definition at line 67 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
rdbModel::Assertion::Operator::Operator | ( | OPTYPE | type, |
const std::vector< Operator * > & | children, | ||
bool | keepChildren = false |
||
) |
Constructor for OR, AND, NOT.
Definition at line 81 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
Copy an operator, substituting from toBe row as appropriate.
Definition at line 106 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
Add another child to a conjunction-style operator.
Definition at line 158 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
Referenced by Operator().
const std::vector< Assertion::Operator * > & rdbModel::Assertion::Operator::getChildren | ( | ) | const |
Throw exception if Operator is a comparison operator.
Definition at line 338 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
const std::string * rdbModel::Assertion::Operator::getCompareArgs | ( | ) | const |
Throw exception if Operator is not a comparison operator.
Definition at line 193 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
const FIELDTYPE * rdbModel::Assertion::Operator::getCompareArgTypes | ( | ) | const |
Get types of comparison args.
Throw exception if Operator is not a comparison operator.
Definition at line 201 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
|
inline |
True if operator or sub-operator refers to existing row.
Definition at line 121 of file Calibration/rdbModel/rdbModel-00-01-00/rdbModel/Tables/Assertion.h.
Referenced by rdbModel::Assertion::getOld().
|
inline |
Definition at line 115 of file Calibration/rdbModel/rdbModel-00-01-00/rdbModel/Tables/Assertion.h.
const std::string & rdbModel::Assertion::Operator::getTableName | ( | ) | const |
Throw exception if Operaotr is not EXISTS.
Throw exception if Operator is not EXISTS.
Definition at line 208 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
|
inline |
True if operator or sub-operator refers to future row.
Definition at line 118 of file Calibration/rdbModel/rdbModel-00-01-00/rdbModel/Tables/Assertion.h.
Referenced by rdbModel::Assertion::getToBe().
|
inline |
True if operator is isNull, isEmpty or any of the usual arithmetic comparisons
Definition at line 101 of file Calibration/rdbModel/rdbModel-00-01-00/rdbModel/Tables/Assertion.h.
Referenced by Operator().
Check whether columns or column and literal to be compared have compatible types
Definition at line 174 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
Evaluate operator on argument Rows.
Definition at line 215 of file Calibration/rdbModel/rdbModel-00-01-00/src/Tables/Assertion.cxx.
Referenced by rdbModel::Assertion::verify().