OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
enum  TlistRefType { TLIST_NONE, TLIST_REF, TLIST_COPY }
 
- Protected Attributes inherited from Parser::InExpr
bool is_not_
 
std::unique_ptr< Exprarg_
 

Detailed Description

Definition at line 385 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 387 of file ParserNode.h.

387 : InExpr(n, a), subquery_(q) {}
std::unique_ptr< SubqueryExpr > subquery_
Definition: ParserNode.h:396
constexpr double a
Definition: Utm.h:32
InExpr(bool n, Expr *a)
Definition: ParserNode.h:367
constexpr double n
Definition: Utm.h:38

Member Function Documentation

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

Implements Parser::InExpr.

Definition at line 525 of file ParserNode.cpp.

528  {
529  throw std::runtime_error("Subqueries are not supported yet.");
530  return nullptr;
531 }
const SubqueryExpr* Parser::InSubquery::get_subquery ( ) const
inline

Definition at line 388 of file ParserNode.h.

References subquery_.

388 { return subquery_.get(); }
std::unique_ptr< SubqueryExpr > subquery_
Definition: ParserNode.h:396
std::string Parser::InSubquery::to_string ( ) const
overridevirtual

Reimplemented from Parser::InExpr.

Definition at line 2197 of file ParserNode.cpp.

References to_string().

2197  {
2198  std::string str = InExpr::to_string();
2199  str += subquery_->to_string();
2200  return str;
2201 }
std::unique_ptr< SubqueryExpr > subquery_
Definition: ParserNode.h:396
std::string to_string() const override

+ Here is the call graph for this function:

Member Data Documentation

std::unique_ptr<SubqueryExpr> Parser::InSubquery::subquery_
private

Definition at line 396 of file ParserNode.h.

Referenced by get_subquery().


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