OmniSciDB  eee9fa949c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Analyzer::TargetEntry Class Reference

#include <Analyzer.h>

+ Collaboration diagram for Analyzer::TargetEntry:

Public Member Functions

 TargetEntry (const std::string &n, std::shared_ptr< Analyzer::Expr > e, bool u)
 
virtual ~TargetEntry ()
 
const std::string & get_resname () const
 
void set_resname (const std::string &name)
 
Exprget_expr () const
 
std::shared_ptr< Exprget_own_expr () const
 
void set_expr (std::shared_ptr< Analyzer::Expr > e)
 
bool get_unnest () const
 
std::string toString () const
 
void print () const
 

Private Attributes

std::string resname
 
std::shared_ptr< Analyzer::Exprexpr
 
bool unnest
 

Detailed Description

Definition at line 1487 of file Analyzer.h.

Constructor & Destructor Documentation

Analyzer::TargetEntry::TargetEntry ( const std::string &  n,
std::shared_ptr< Analyzer::Expr e,
bool  u 
)
inline

Definition at line 1489 of file Analyzer.h.

1490  : resname(n), expr(e), unnest(u) {}
std::shared_ptr< Analyzer::Expr > expr
Definition: Analyzer.h:1503
bool unnest
Definition: Analyzer.h:1504
std::string resname
Definition: Analyzer.h:1502
virtual Analyzer::TargetEntry::~TargetEntry ( )
inlinevirtual

Definition at line 1491 of file Analyzer.h.

1491 {}

Member Function Documentation

Expr* Analyzer::TargetEntry::get_expr ( ) const
inline

Definition at line 1494 of file Analyzer.h.

References expr.

1494 { return expr.get(); }
std::shared_ptr< Analyzer::Expr > expr
Definition: Analyzer.h:1503
std::shared_ptr<Expr> Analyzer::TargetEntry::get_own_expr ( ) const
inline

Definition at line 1495 of file Analyzer.h.

References expr.

1495 { return expr; }
std::shared_ptr< Analyzer::Expr > expr
Definition: Analyzer.h:1503
const std::string& Analyzer::TargetEntry::get_resname ( ) const
inline

Definition at line 1492 of file Analyzer.h.

References resname.

1492 { return resname; }
std::string resname
Definition: Analyzer.h:1502
bool Analyzer::TargetEntry::get_unnest ( ) const
inline

Definition at line 1497 of file Analyzer.h.

References unnest.

1497 { return unnest; }
bool unnest
Definition: Analyzer.h:1504
void Analyzer::TargetEntry::print ( ) const
inline

Definition at line 1499 of file Analyzer.h.

References toString().

1499 { std::cout << toString(); }
std::string toString() const
Definition: Analyzer.cpp:2625

+ Here is the call graph for this function:

void Analyzer::TargetEntry::set_expr ( std::shared_ptr< Analyzer::Expr e)
inline

Definition at line 1496 of file Analyzer.h.

References expr.

1496 { expr = e; }
std::shared_ptr< Analyzer::Expr > expr
Definition: Analyzer.h:1503
void Analyzer::TargetEntry::set_resname ( const std::string &  name)
inline

Definition at line 1493 of file Analyzer.h.

References resname.

1493 { resname = name; }
std::string resname
Definition: Analyzer.h:1502
std::string Analyzer::TargetEntry::toString ( ) const

Definition at line 2625 of file Analyzer.cpp.

References expr, resname, and unnest.

Referenced by print().

2625  {
2626  std::string str{"(" + resname + " "};
2627  str += expr->toString();
2628  if (unnest) {
2629  str += " UNNEST";
2630  }
2631  str += ") ";
2632  return str;
2633 }
std::shared_ptr< Analyzer::Expr > expr
Definition: Analyzer.h:1503
bool unnest
Definition: Analyzer.h:1504
std::string resname
Definition: Analyzer.h:1502

+ Here is the caller graph for this function:

Member Data Documentation

std::shared_ptr<Analyzer::Expr> Analyzer::TargetEntry::expr
private

Definition at line 1503 of file Analyzer.h.

Referenced by get_expr(), get_own_expr(), set_expr(), and toString().

std::string Analyzer::TargetEntry::resname
private

Definition at line 1502 of file Analyzer.h.

Referenced by get_resname(), set_resname(), and toString().

bool Analyzer::TargetEntry::unnest
private

Definition at line 1504 of file Analyzer.h.

Referenced by get_unnest(), and toString().


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