OmniSciDB  b24e664e58
 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 1585 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 1587 of file ParserNode.h.

1587 : is_unionall(u), left(l), right(r) {}
std::unique_ptr< QueryExpr > right
Definition: ParserNode.h:1597
std::unique_ptr< QueryExpr > left
Definition: ParserNode.h:1596

Member Function Documentation

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

Implements Parser::QueryExpr.

Definition at line 993 of file ParserNode.cpp.

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

994  {
995  left->analyze(catalog, query);
996  Analyzer::Query* right_query = new Analyzer::Query();
997  right->analyze(catalog, *right_query);
998  query.set_next_query(right_query);
1000 }
std::unique_ptr< QueryExpr > right
Definition: ParserNode.h:1597
void set_next_query(Query *q)
Definition: Analyzer.h:1551
std::unique_ptr< QueryExpr > left
Definition: ParserNode.h:1596
void set_is_unionall(bool u)
Definition: Analyzer.h:1552

+ Here is the call graph for this function:

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

Definition at line 1588 of file ParserNode.h.

References is_unionall.

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

Definition at line 1589 of file ParserNode.h.

References left.

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

Definition at line 1590 of file ParserNode.h.

References right.

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

Member Data Documentation

bool Parser::UnionQuery::is_unionall
private

Definition at line 1595 of file ParserNode.h.

Referenced by get_is_unionall().

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

Definition at line 1596 of file ParserNode.h.

Referenced by get_left().

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

Definition at line 1597 of file ParserNode.h.

Referenced by get_right().


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