OmniSciDB  343343d194
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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
enum  TlistRefType { TLIST_NONE, TLIST_REF, TLIST_COPY }
 

Detailed Description

Definition at line 371 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 373 of file ParserNode.h.

373 : is_not(n), arg(a) {}
std::unique_ptr< Expr > arg
Definition: ParserNode.h:384

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
inline

Definition at line 375 of file ParserNode.h.

References arg.

375 { return arg.get(); }
std::unique_ptr< Expr > arg
Definition: ParserNode.h:384
bool Parser::InExpr::get_is_not ( ) const
inline

Definition at line 374 of file ParserNode.h.

References is_not.

374 { return is_not; }
std::string Parser::InExpr::to_string ( ) const
overridevirtual

Implements Parser::Expr.

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

Definition at line 1351 of file ParserNode.cpp.

1351  {
1352  std::string str = arg->to_string();
1353  if (is_not) {
1354  str += " NOT IN ";
1355  } else {
1356  str += " IN ";
1357  }
1358  return str;
1359 }
std::unique_ptr< Expr > arg
Definition: ParserNode.h:384

Member Data Documentation

std::unique_ptr<Expr> Parser::InExpr::arg
protected

Definition at line 384 of file ParserNode.h.

Referenced by get_arg().

bool Parser::InExpr::is_not
protected

Definition at line 383 of file ParserNode.h.

Referenced by get_is_not().


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