OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Parser::UnionQuery Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::UnionQuery:
+ Collaboration diagram for Parser::UnionQuery:

Public Member Functions

 UnionQuery (bool u, QueryExpr *l, QueryExpr *r)
 
bool get_is_unionall () const
 
const QueryExprget_left () const
 
const QueryExprget_right () const
 
void analyze (const Catalog_Namespace::Catalog &catalog, Analyzer::Query &query) const override
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

bool is_unionall_
 
std::unique_ptr< QueryExprleft_
 
std::unique_ptr< QueryExprright_
 

Detailed Description

Definition at line 1688 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::UnionQuery::UnionQuery ( bool  u,
QueryExpr l,
QueryExpr r 
)
inline

Definition at line 1690 of file ParserNode.h.

1690 : is_unionall_(u), left_(l), right_(r) {}
std::unique_ptr< QueryExpr > left_
Definition: ParserNode.h:1699
std::unique_ptr< QueryExpr > right_
Definition: ParserNode.h:1700

Member Function Documentation

void Parser::UnionQuery::analyze ( const Catalog_Namespace::Catalog catalog,
Analyzer::Query query 
) const
overridevirtual

Implements Parser::QueryExpr.

Definition at line 1087 of file ParserNode.cpp.

References Analyzer::Query::set_is_unionall(), and Analyzer::Query::set_next_query().

1088  {
1089  left_->analyze(catalog, query);
1090  Analyzer::Query* right_query = new Analyzer::Query();
1091  right_->analyze(catalog, *right_query);
1092  query.set_next_query(right_query);
1094 }
std::unique_ptr< QueryExpr > left_
Definition: ParserNode.h:1699
void set_next_query(Query *q)
Definition: Analyzer.h:1801
void set_is_unionall(bool u)
Definition: Analyzer.h:1802
std::unique_ptr< QueryExpr > right_
Definition: ParserNode.h:1700

+ Here is the call graph for this function:

bool Parser::UnionQuery::get_is_unionall ( ) const
inline

Definition at line 1691 of file ParserNode.h.

References is_unionall_.

1691 { return is_unionall_; }
const QueryExpr* Parser::UnionQuery::get_left ( ) const
inline

Definition at line 1692 of file ParserNode.h.

References left_.

1692 { return left_.get(); }
std::unique_ptr< QueryExpr > left_
Definition: ParserNode.h:1699
const QueryExpr* Parser::UnionQuery::get_right ( ) const
inline

Definition at line 1693 of file ParserNode.h.

References right_.

1693 { return right_.get(); }
std::unique_ptr< QueryExpr > right_
Definition: ParserNode.h:1700

Member Data Documentation

bool Parser::UnionQuery::is_unionall_
private

Definition at line 1698 of file ParserNode.h.

Referenced by get_is_unionall().

std::unique_ptr<QueryExpr> Parser::UnionQuery::left_
private

Definition at line 1699 of file ParserNode.h.

Referenced by get_left().

std::unique_ptr<QueryExpr> Parser::UnionQuery::right_
private

Definition at line 1700 of file ParserNode.h.

Referenced by get_right().


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