OmniSciDB  a5dc49c757
 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 1689 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 1691 of file ParserNode.h.

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

Member Function Documentation

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

Implements Parser::QueryExpr.

Definition at line 1803 of file ParserNode.cpp.

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

1804  {
1805  left_->analyze(catalog, query);
1806  Analyzer::Query* right_query = new Analyzer::Query();
1807  right_->analyze(catalog, *right_query);
1808  query.set_next_query(right_query);
1810 }
std::unique_ptr< QueryExpr > left_
Definition: ParserNode.h:1700
void set_next_query(Query *q)
Definition: Analyzer.h:3182
void set_is_unionall(bool u)
Definition: Analyzer.h:3183
std::unique_ptr< QueryExpr > right_
Definition: ParserNode.h:1701

+ Here is the call graph for this function:

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

Definition at line 1692 of file ParserNode.h.

References is_unionall_.

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

Definition at line 1693 of file ParserNode.h.

References left_.

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

Definition at line 1694 of file ParserNode.h.

References right_.

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

Member Data Documentation

bool Parser::UnionQuery::is_unionall_
private

Definition at line 1699 of file ParserNode.h.

Referenced by get_is_unionall().

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

Definition at line 1700 of file ParserNode.h.

Referenced by get_left().

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

Definition at line 1701 of file ParserNode.h.

Referenced by get_right().


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