OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Parser::UniqueDef Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::UniqueDef:
+ Collaboration diagram for Parser::UniqueDef:

Public Member Functions

 UniqueDef (bool p, std::list< std::string * > *cl)
 
bool get_is_primarykey () const
 
const std::list
< std::unique_ptr< std::string > > & 
get_column_list () const
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

bool is_primarykey
 
std::list< std::unique_ptr
< std::string > > 
column_list
 

Detailed Description

Definition at line 819 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::UniqueDef::UniqueDef ( bool  p,
std::list< std::string * > *  cl 
)
inline

Definition at line 821 of file ParserNode.h.

References CHECK(), and column_list.

821  : is_primarykey(p) {
822  CHECK(cl);
823  for (const auto s : *cl) {
824  column_list.emplace_back(s);
825  }
826  delete cl;
827  }
std::list< std::unique_ptr< std::string > > column_list
Definition: ParserNode.h:835
CHECK(cgen_state)

+ Here is the call graph for this function:

Member Function Documentation

const std::list<std::unique_ptr<std::string> >& Parser::UniqueDef::get_column_list ( ) const
inline

Definition at line 829 of file ParserNode.h.

References column_list.

829  {
830  return column_list;
831  }
std::list< std::unique_ptr< std::string > > column_list
Definition: ParserNode.h:835
bool Parser::UniqueDef::get_is_primarykey ( ) const
inline

Definition at line 828 of file ParserNode.h.

References is_primarykey.

828 { return is_primarykey; }

Member Data Documentation

std::list<std::unique_ptr<std::string> > Parser::UniqueDef::column_list
private

Definition at line 835 of file ParserNode.h.

Referenced by get_column_list(), and UniqueDef().

bool Parser::UniqueDef::is_primarykey
private

Definition at line 834 of file ParserNode.h.

Referenced by get_is_primarykey().


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