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

Constructor & Destructor Documentation

◆ UniqueDef()

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

Definition at line 832 of file ParserNode.h.

References CHECK.

832  : is_primarykey(p) {
833  CHECK(cl);
834  for (const auto s : *cl) {
835  column_list.emplace_back(s);
836  }
837  delete cl;
838  }
std::list< std::unique_ptr< std::string > > column_list
Definition: ParserNode.h:846
#define CHECK(condition)
Definition: Logger.h:187

Member Function Documentation

◆ get_column_list()

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

Definition at line 840 of file ParserNode.h.

840  {
841  return column_list;
842  }
std::list< std::unique_ptr< std::string > > column_list
Definition: ParserNode.h:846

◆ get_is_primarykey()

bool Parser::UniqueDef::get_is_primarykey ( ) const
inline

Definition at line 839 of file ParserNode.h.

839 { return is_primarykey; }

Member Data Documentation

◆ column_list

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

Definition at line 846 of file ParserNode.h.

◆ is_primarykey

bool Parser::UniqueDef::is_primarykey
private

Definition at line 845 of file ParserNode.h.


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