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

Constructor & Destructor Documentation

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

Definition at line 724 of file ParserNode.h.

724 : table_name_(t), range_var_(nullptr) {}
std::unique_ptr< std::string > table_name_
Definition: ParserNode.h:731
char * t
std::unique_ptr< std::string > range_var_
Definition: ParserNode.h:732
Parser::TableRef::TableRef ( std::string *  t,
std::string *  r 
)
inline

Definition at line 725 of file ParserNode.h.

725 : table_name_(t), range_var_(r) {}
std::unique_ptr< std::string > table_name_
Definition: ParserNode.h:731
char * t
std::unique_ptr< std::string > range_var_
Definition: ParserNode.h:732

Member Function Documentation

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

Definition at line 727 of file ParserNode.h.

References range_var_.

727 { return range_var_.get(); }
std::unique_ptr< std::string > range_var_
Definition: ParserNode.h:732
const std::string* Parser::TableRef::get_table_name ( ) const
inline

Definition at line 726 of file ParserNode.h.

References table_name_.

726 { return table_name_.get(); }
std::unique_ptr< std::string > table_name_
Definition: ParserNode.h:731
std::string Parser::TableRef::to_string ( ) const

Definition at line 1414 of file ParserNode.cpp.

1414  {
1415  std::string str = *table_name_;
1416  if (range_var_ != nullptr) {
1417  str += " " + *range_var_;
1418  }
1419  return str;
1420 }
std::unique_ptr< std::string > table_name_
Definition: ParserNode.h:731
std::unique_ptr< std::string > range_var_
Definition: ParserNode.h:732

Member Data Documentation

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

Definition at line 732 of file ParserNode.h.

Referenced by get_range_var().

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

Definition at line 731 of file ParserNode.h.

Referenced by get_table_name().


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