#include <ParserNode.h>
Definition at line 585 of file ParserNode.h.
Parser::LikelihoodExpr::LikelihoodExpr |
( |
bool |
n, |
|
|
Expr * |
a, |
|
|
float |
l |
|
) |
| |
|
inline |
Implements Parser::Expr.
Definition at line 839 of file ParserNode.cpp.
843 auto arg_expr =
arg_->analyze(catalog, query, allow_tlist_ref);
std::unique_ptr< Expr > arg_
static std::shared_ptr< Analyzer::Expr > get(std::shared_ptr< Analyzer::Expr > arg_expr, float likelihood, const bool is_not)
std::shared_ptr< Analyzer::Expr > Parser::LikelihoodExpr::get |
( |
std::shared_ptr< Analyzer::Expr > |
arg_expr, |
|
|
float |
likelihood, |
|
|
const bool |
is_not |
|
) |
| |
|
static |
Definition at line 847 of file ParserNode.cpp.
References run_benchmark_import::result.
851 if (!arg_expr->get_type_info().is_boolean()) {
852 throw std::runtime_error(
"likelihood expression expects boolean type.");
854 std::shared_ptr<Analyzer::Expr>
result = makeExpr<Analyzer::LikelihoodExpr>(
855 arg_expr->decompress(), is_not ? 1 - likelihood : likelihood);
const Expr* Parser::LikelihoodExpr::get_arg |
( |
| ) |
const |
|
inline |
Definition at line 589 of file ParserNode.h.
References arg_.
589 {
return arg_.get(); }
std::unique_ptr< Expr > arg_
bool Parser::LikelihoodExpr::get_is_not |
( |
| ) |
const |
|
inline |
float Parser::LikelihoodExpr::get_likelihood |
( |
| ) |
const |
|
inline |
std::string Parser::LikelihoodExpr::to_string |
( |
| ) |
const |
|
overridevirtual |
Implements Parser::Expr.
Definition at line 2295 of file ParserNode.cpp.
2296 std::string str =
" LIKELIHOOD ";
2297 str +=
arg_->to_string();
std::unique_ptr< Expr > arg_
std::unique_ptr<Expr> Parser::LikelihoodExpr::arg_ |
|
private |
bool Parser::LikelihoodExpr::is_not_ |
|
private |
float Parser::LikelihoodExpr::likelihood_ |
|
private |
The documentation for this class was generated from the following files:
- /home/jenkins-slave/workspace/core-os-doxygen/Parser/ParserNode.h
- /home/jenkins-slave/workspace/core-os-doxygen/Parser/ParserNode.cpp