OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Parser::UpdateStmt Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::UpdateStmt:
+ Collaboration diagram for Parser::UpdateStmt:

Public Member Functions

 UpdateStmt (std::string *t, std::list< Assignment * > *a, Expr *w)
 
const std::string * get_table () const
 
const std::list
< std::unique_ptr< Assignment > > & 
get_assignment_list () const
 
const Exprget_where_clause () const
 
void analyze (const Catalog_Namespace::Catalog &catalog, Analyzer::Query &query) const override
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

std::unique_ptr< std::string > table
 
std::list< std::unique_ptr
< Assignment > > 
assignment_list
 
std::unique_ptr< Exprwhere_clause
 

Detailed Description

Definition at line 1982 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::UpdateStmt::UpdateStmt ( std::string *  t,
std::list< Assignment * > *  a,
Expr w 
)
inline

Definition at line 1984 of file ParserNode.h.

References assignment_list, and CHECK().

1985  : table(t), where_clause(w) {
1986  CHECK(a);
1987  for (const auto e : *a) {
1988  assignment_list.emplace_back(e);
1989  }
1990  delete a;
1991  }
std::unique_ptr< std::string > table
Definition: ParserNode.h:2001
CHECK(cgen_state)
std::unique_ptr< Expr > where_clause
Definition: ParserNode.h:2003
std::list< std::unique_ptr< Assignment > > assignment_list
Definition: ParserNode.h:2002

+ Here is the call graph for this function:

Member Function Documentation

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

Implements Parser::DMLStmt.

Definition at line 1883 of file ParserNode.cpp.

1884  {
1885  throw std::runtime_error("UPDATE statement not supported yet.");
1886 }
const std::list<std::unique_ptr<Assignment> >& Parser::UpdateStmt::get_assignment_list ( ) const
inline

Definition at line 1993 of file ParserNode.h.

References assignment_list.

1993  {
1994  return assignment_list;
1995  }
std::list< std::unique_ptr< Assignment > > assignment_list
Definition: ParserNode.h:2002
const std::string* Parser::UpdateStmt::get_table ( ) const
inline

Definition at line 1992 of file ParserNode.h.

References table.

1992 { return table.get(); }
std::unique_ptr< std::string > table
Definition: ParserNode.h:2001
const Expr* Parser::UpdateStmt::get_where_clause ( ) const
inline

Definition at line 1996 of file ParserNode.h.

References where_clause.

1996 { return where_clause.get(); }
std::unique_ptr< Expr > where_clause
Definition: ParserNode.h:2003

Member Data Documentation

std::list<std::unique_ptr<Assignment> > Parser::UpdateStmt::assignment_list
private

Definition at line 2002 of file ParserNode.h.

Referenced by get_assignment_list(), and UpdateStmt().

std::unique_ptr<std::string> Parser::UpdateStmt::table
private

Definition at line 2001 of file ParserNode.h.

Referenced by get_table().

std::unique_ptr<Expr> Parser::UpdateStmt::where_clause
private

Definition at line 2003 of file ParserNode.h.

Referenced by get_where_clause().


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