OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 1645 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 1647 of file ParserNode.h.

1647 : is_unionall(u), left(l), right(r) {}
std::unique_ptr< QueryExpr > right
Definition: ParserNode.h:1657
std::unique_ptr< QueryExpr > left
Definition: ParserNode.h:1656

Member Function Documentation

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

Implements Parser::QueryExpr.

Definition at line 1013 of file ParserNode.cpp.

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

1014  {
1015  left->analyze(catalog, query);
1016  Analyzer::Query* right_query = new Analyzer::Query();
1017  right->analyze(catalog, *right_query);
1018  query.set_next_query(right_query);
1020 }
std::unique_ptr< QueryExpr > right
Definition: ParserNode.h:1657
void set_next_query(Query *q)
Definition: Analyzer.h:1636
std::unique_ptr< QueryExpr > left
Definition: ParserNode.h:1656
void set_is_unionall(bool u)
Definition: Analyzer.h:1637

+ Here is the call graph for this function:

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

Definition at line 1648 of file ParserNode.h.

References is_unionall.

1648 { return is_unionall; }
const QueryExpr* Parser::UnionQuery::get_left ( ) const
inline

Definition at line 1649 of file ParserNode.h.

References left.

1649 { return left.get(); }
std::unique_ptr< QueryExpr > left
Definition: ParserNode.h:1656
const QueryExpr* Parser::UnionQuery::get_right ( ) const
inline

Definition at line 1650 of file ParserNode.h.

References right.

1650 { return right.get(); }
std::unique_ptr< QueryExpr > right
Definition: ParserNode.h:1657

Member Data Documentation

bool Parser::UnionQuery::is_unionall
private

Definition at line 1655 of file ParserNode.h.

Referenced by get_is_unionall().

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

Definition at line 1656 of file ParserNode.h.

Referenced by get_left().

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

Definition at line 1657 of file ParserNode.h.

Referenced by get_right().


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