OmniSciDB  dfae7c3b14
Parser::InSubquery Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::InSubquery:
+ Collaboration diagram for Parser::InSubquery:

Public Member Functions

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

Private Attributes

std::unique_ptr< SubqueryExprsubquery

Additional Inherited Members

- Public Types inherited from Parser::Expr
- Protected Attributes inherited from Parser::InExpr
bool is_not
std::unique_ptr< Exprarg

Detailed Description

Definition at line 379 of file ParserNode.h.

Constructor & Destructor Documentation

◆ InSubquery()

Parser::InSubquery::InSubquery ( bool  n,
Expr a,
SubqueryExpr q 

Definition at line 381 of file ParserNode.h.

381 : InExpr(n, a), subquery(q) {}
InExpr(bool n, Expr *a)
Definition: ParserNode.h:361
std::unique_ptr< SubqueryExpr > subquery
Definition: ParserNode.h:390

Member Function Documentation

◆ analyze()

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

Implements Parser::InExpr.

Definition at line 371 of file ParserNode.cpp.

374  {
375  throw std::runtime_error("Subqueries are not supported yet.");
376  return nullptr;
377 }

◆ get_subquery()

const SubqueryExpr* Parser::InSubquery::get_subquery ( ) const

Definition at line 382 of file ParserNode.h.

References to_string().

382 { return subquery.get(); }
std::unique_ptr< SubqueryExpr > subquery
Definition: ParserNode.h:390
+ Here is the call graph for this function:

◆ to_string()

std::string Parser::InSubquery::to_string ( ) const

Reimplemented from Parser::InExpr.

Definition at line 1337 of file ParserNode.cpp.

References to_string().

1337  {
1338  std::string str = InExpr::to_string();
1339  str += subquery->to_string();
1340  return str;
1341 }
std::string to_string() const override
std::unique_ptr< SubqueryExpr > subquery
Definition: ParserNode.h:390
+ Here is the call graph for this function:

Member Data Documentation

◆ subquery

std::unique_ptr<SubqueryExpr> Parser::InSubquery::subquery

Definition at line 390 of file ParserNode.h.

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