class
NumberExpression
Base classes
- class SQLExpression
Public static functions
-
static auto number(double) -> std::
shared_ptr<SQLExpression>
Constructors, destructors, conversion operators
- NumberExpression(double value)
- NumberExpression(const NumberExpression&)
- ~NumberExpression()
Public functions
-
auto clone() const -> std::
shared_ptr<SQLExpression> override -
auto reshift(int minColumnShift) const -> std::
shared_ptr<SQLExpression> override - void value(double v)
- void preprepare(SQLSelect&) virtual
- void updateType(SQLSelect&) virtual
- void eval(double* out, bool& missing) const virtual
-
auto evalAsString(bool& missing) const -> std::
string virtual -
auto andSplit(expression::
Expressions&) -> bool virtual -
void tables(std::
set<const SQLTable*>&) virtual -
auto simplify(bool&) -> std::
shared_ptr<SQLExpression> virtual -
void title(const std::
string&) virtual -
auto title() const -> std::
string virtual - auto isAggregate() const -> bool virtual
- void output(SQLOutput&) const virtual
- void partialResult() virtual
-
void expandStars(const std::
vector<std:: reference_wrapper<const SQLTable>>&, expression:: Expressions&) virtual - auto isBitfield() const -> bool virtual
- auto bitfieldDef() const -> BitfieldDef
- auto hasMissingValue() const -> bool virtual
- auto missingValue() const -> double
- auto shared_from_this(T... args) -> T
- auto weak_from_this(T... args) -> T
Private functions
-
void print(std::
ostream& s) const override - void prepare(SQLSelect& sql) override
- void cleanup(SQLSelect& sql) override
-
auto type() const -> const type::
SQLType* override - auto eval(bool& missing) const -> double override
- auto isConstant() const -> bool override
- auto isNumber() const -> bool override
Function documentation
static std:: shared_ptr<SQLExpression> eckit:: sql:: expression:: NumberExpression:: number(double)
void eckit:: sql:: expression:: NumberExpression:: preprepare(SQLSelect&) virtual
pre-prepare ideally wouldn't exist. To enable a two-pass prepare of SQL columns for SQLSelect, this is here.
void eckit:: sql:: expression:: NumberExpression:: updateType(SQLSelect&) virtual
void eckit:: sql:: expression:: NumberExpression:: eval(double* out,
bool& missing) const virtual
std:: string eckit:: sql:: expression:: NumberExpression:: evalAsString(bool& missing) const virtual
bool eckit:: sql:: expression:: NumberExpression:: andSplit(expression:: Expressions&) virtual
std:: shared_ptr<SQLExpression> eckit:: sql:: expression:: NumberExpression:: simplify(bool&) virtual
void eckit:: sql:: expression:: NumberExpression:: title(const std:: string&) virtual
std:: string eckit:: sql:: expression:: NumberExpression:: title() const virtual
bool eckit:: sql:: expression:: NumberExpression:: isAggregate() const virtual
void eckit:: sql:: expression:: NumberExpression:: partialResult() virtual
void eckit:: sql:: expression:: NumberExpression:: expandStars(const std:: vector<std:: reference_wrapper<const SQLTable>>&,
expression:: Expressions&) virtual
bool eckit:: sql:: expression:: NumberExpression:: isBitfield() const virtual
BitfieldDef eckit:: sql:: expression:: NumberExpression:: bitfieldDef() const
bool eckit:: sql:: expression:: NumberExpression:: hasMissingValue() const virtual
double eckit:: sql:: expression:: NumberExpression:: missingValue() const