OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Parser::TableRef Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::TableRef:
+ Collaboration diagram for Parser::TableRef:

Public Member Functions

 TableRef (std::string *t)
 
 TableRef (std::string *t, std::string *r)
 
const std::string * get_table_name () const
 
const std::string * get_range_var () const
 
std::string to_string () const
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

std::unique_ptr< std::string > table_name
 
std::unique_ptr< std::string > range_var
 

Detailed Description

Definition at line 708 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::TableRef::TableRef ( std::string *  t)
inlineexplicit

Definition at line 710 of file ParserNode.h.

710 : table_name(t), range_var(nullptr) {}
std::unique_ptr< std::string > table_name
Definition: ParserNode.h:717
std::unique_ptr< std::string > range_var
Definition: ParserNode.h:718
Parser::TableRef::TableRef ( std::string *  t,
std::string *  r 
)
inline

Definition at line 711 of file ParserNode.h.

711 : table_name(t), range_var(r) {}
std::unique_ptr< std::string > table_name
Definition: ParserNode.h:717
std::unique_ptr< std::string > range_var
Definition: ParserNode.h:718

Member Function Documentation

const std::string* Parser::TableRef::get_range_var ( ) const
inline

Definition at line 713 of file ParserNode.h.

References range_var.

713 { return range_var.get(); }
std::unique_ptr< std::string > range_var
Definition: ParserNode.h:718
const std::string* Parser::TableRef::get_table_name ( ) const
inline

Definition at line 712 of file ParserNode.h.

References table_name.

712 { return table_name.get(); }
std::unique_ptr< std::string > table_name
Definition: ParserNode.h:717
std::string Parser::TableRef::to_string ( ) const

Definition at line 1323 of file ParserNode.cpp.

1323  {
1324  std::string str = *table_name;
1325  if (range_var != nullptr) {
1326  str += " " + *range_var;
1327  }
1328  return str;
1329 }
std::unique_ptr< std::string > table_name
Definition: ParserNode.h:717
std::unique_ptr< std::string > range_var
Definition: ParserNode.h:718

Member Data Documentation

std::unique_ptr<std::string> Parser::TableRef::range_var
private

Definition at line 718 of file ParserNode.h.

Referenced by get_range_var().

std::unique_ptr<std::string> Parser::TableRef::table_name
private

Definition at line 717 of file ParserNode.h.

Referenced by get_table_name().


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