OmniSciDB  cde582ebc3
 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 1746 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 1748 of file ParserNode.h.

1748 : is_unionall_(u), left_(l), right_(r) {}
std::unique_ptr< QueryExpr > left_
Definition: ParserNode.h:1757
std::unique_ptr< QueryExpr > right_
Definition: ParserNode.h:1758

Member Function Documentation

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

Implements Parser::QueryExpr.

Definition at line 1754 of file ParserNode.cpp.

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

1755  {
1756  left_->analyze(catalog, query);
1757  Analyzer::Query* right_query = new Analyzer::Query();
1758  right_->analyze(catalog, *right_query);
1759  query.set_next_query(right_query);
1761 }
std::unique_ptr< QueryExpr > left_
Definition: ParserNode.h:1757
void set_next_query(Query *q)
Definition: Analyzer.h:2524
void set_is_unionall(bool u)
Definition: Analyzer.h:2525
std::unique_ptr< QueryExpr > right_
Definition: ParserNode.h:1758

+ Here is the call graph for this function:

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

Definition at line 1749 of file ParserNode.h.

References is_unionall_.

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

Definition at line 1750 of file ParserNode.h.

References left_.

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

Definition at line 1751 of file ParserNode.h.

References right_.

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

Member Data Documentation

bool Parser::UnionQuery::is_unionall_
private

Definition at line 1756 of file ParserNode.h.

Referenced by get_is_unionall().

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

Definition at line 1757 of file ParserNode.h.

Referenced by get_left().

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

Definition at line 1758 of file ParserNode.h.

Referenced by get_right().


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