OmniSciDB  1dac507f6e
 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 841 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 843 of file ParserNode.h.

References CHECK(), and column_list.

843  : is_primarykey(p) {
844  CHECK(cl);
845  for (const auto s : *cl) {
846  column_list.emplace_back(s);
847  }
848  delete cl;
849  }
std::list< std::unique_ptr< std::string > > column_list
Definition: ParserNode.h:857
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 851 of file ParserNode.h.

References column_list.

851  {
852  return column_list;
853  }
std::list< std::unique_ptr< std::string > > column_list
Definition: ParserNode.h:857
bool Parser::UniqueDef::get_is_primarykey ( ) const
inline

Definition at line 850 of file ParserNode.h.

References is_primarykey.

850 { return is_primarykey; }

Member Data Documentation

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

Definition at line 857 of file ParserNode.h.

Referenced by get_column_list(), and UniqueDef().

bool Parser::UniqueDef::is_primarykey
private

Definition at line 856 of file ParserNode.h.

Referenced by get_is_primarykey().


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