A number. More...
#include <qExpr.h>
Public Member Functions | |
virtual number * | dup () const |
Make a duplicate copy of the term. | |
virtual double | eval () const |
Evaluate the term. | |
void | invert () |
To invert the value. | |
virtual bool | isConstant () const |
Is this expression a constant? A constant remains the same not matter which row it is applied to. | |
virtual bool | isTrue () const |
Should the value be treated as true? This implementation captures the normal case, where an arithmetic expression is treated as 'true' if it is not zero. | |
void | negate () |
To negate the value. | |
virtual uint32_t | nItems () const |
Count the number of items in the query expression. | |
number (const char *num) | |
number (double v) | |
virtual void | print (std::ostream &out) const |
Print a human readable version of the expression. | |
virtual void | printFull (std::ostream &out) const |
Same as print. | |
virtual TERM_TYPE | termType () const |
Friends | |
class | bediener |
void | ibis::qExpr::simplify (ibis::qExpr *&) |
A number.
virtual bool ibis::math::number::isConstant | ( | ) | const [inline, virtual] |
Is this expression a constant? A constant remains the same not matter which row it is applied to.
Reimplemented from ibis::qExpr.
virtual bool ibis::math::number::isTrue | ( | ) | const [inline, virtual] |
Should the value be treated as true? This implementation captures the normal case, where an arithmetic expression is treated as 'true' if it is not zero.
Reimplemented from ibis::math::term.
![]() |