OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Parser::InExpr Class Referenceabstract

#include <ParserNode.h>

+ Inheritance diagram for Parser::InExpr:
+ Collaboration diagram for Parser::InExpr:

Public Member Functions

 InExpr (bool n, Expr *a)
bool get_is_not () const
const Exprget_arg () const
std::shared_ptr< Analyzer::Expranalyze (const Catalog_Namespace::Catalog &catalog, Analyzer::Query &query, TlistRefType allow_tlist_ref=TLIST_NONE) const override=0
std::string to_string () const override
- Public Member Functions inherited from Parser::Node
virtual ~Node ()

Protected Attributes

bool is_not_
std::unique_ptr< Exprarg_

Additional Inherited Members

- Public Types inherited from Parser::Expr

Detailed Description

Definition at line 364 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::InExpr::InExpr ( bool  n,
Expr a 

Definition at line 366 of file ParserNode.h.

366 : is_not_(n), arg_(a) {}
constexpr double a
Definition: Utm.h:32
constexpr double n
Definition: Utm.h:38
std::unique_ptr< Expr > arg_
Definition: ParserNode.h:377

Member Function Documentation

std::shared_ptr<Analyzer::Expr> Parser::InExpr::analyze ( const Catalog_Namespace::Catalog catalog,
Analyzer::Query query,
TlistRefType  allow_tlist_ref = TLIST_NONE 
) const
overridepure virtual

Implements Parser::Expr.

Implemented in Parser::InValues, and Parser::InSubquery.

const Expr* Parser::InExpr::get_arg ( ) const

Definition at line 368 of file ParserNode.h.

References arg_.

368 { return arg_.get(); }
std::unique_ptr< Expr > arg_
Definition: ParserNode.h:377
bool Parser::InExpr::get_is_not ( ) const

Definition at line 367 of file ParserNode.h.

References is_not_.

367 { return is_not_; }
std::string Parser::InExpr::to_string ( ) const

Implements Parser::Expr.

Reimplemented in Parser::InValues, and Parser::InSubquery.

Definition at line 2143 of file ParserNode.cpp.

2143  {
2144  std::string str = arg_->to_string();
2145  if (is_not_) {
2146  str += " NOT IN ";
2147  } else {
2148  str += " IN ";
2149  }
2150  return str;
2151 }
std::unique_ptr< Expr > arg_
Definition: ParserNode.h:377

Member Data Documentation

std::unique_ptr<Expr> Parser::InExpr::arg_

Definition at line 377 of file ParserNode.h.

Referenced by get_arg().

bool Parser::InExpr::is_not_

Definition at line 376 of file ParserNode.h.

Referenced by get_is_not().

The documentation for this class was generated from the following files: