OmniSciDB  04ee39c94c
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 697 of file ParserNode.h.

Constructor & Destructor Documentation

◆ TableRef() [1/2]

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

Definition at line 699 of file ParserNode.h.

699 : table_name(t), range_var(nullptr) {}
std::unique_ptr< std::string > table_name
Definition: ParserNode.h:706
std::unique_ptr< std::string > range_var
Definition: ParserNode.h:707

◆ TableRef() [2/2]

Parser::TableRef::TableRef ( std::string *  t,
std::string *  r 
)
inline

Definition at line 700 of file ParserNode.h.

700 : table_name(t), range_var(r) {}
std::unique_ptr< std::string > table_name
Definition: ParserNode.h:706
std::unique_ptr< std::string > range_var
Definition: ParserNode.h:707

Member Function Documentation

◆ get_range_var()

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

Definition at line 702 of file ParserNode.h.

References to_string().

702 { return range_var.get(); }
std::unique_ptr< std::string > range_var
Definition: ParserNode.h:707
+ Here is the call graph for this function:

◆ get_table_name()

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

Definition at line 701 of file ParserNode.h.

701 { return table_name.get(); }
std::unique_ptr< std::string > table_name
Definition: ParserNode.h:706

◆ to_string()

std::string Parser::TableRef::to_string ( ) const

Definition at line 1308 of file ParserNode.cpp.

1308  {
1309  std::string str = *table_name;
1310  if (range_var != nullptr) {
1311  str += " " + *range_var;
1312  }
1313  return str;
1314 }
std::unique_ptr< std::string > table_name
Definition: ParserNode.h:706
std::unique_ptr< std::string > range_var
Definition: ParserNode.h:707

Member Data Documentation

◆ range_var

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

Definition at line 707 of file ParserNode.h.

◆ table_name

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

Definition at line 706 of file ParserNode.h.


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