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

Constructor & Destructor Documentation

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

Definition at line 854 of file ParserNode.h.

References CHECK, and column_list_.

854  : is_primarykey_(p) {
855  CHECK(cl);
856  for (const auto s : *cl) {
857  column_list_.emplace_back(s);
858  }
859  delete cl;
860  }
#define CHECK(condition)
Definition: Logger.h:222
std::list< std::unique_ptr< std::string > > column_list_
Definition: ParserNode.h:868

Member Function Documentation

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

Definition at line 862 of file ParserNode.h.

References column_list_.

862  {
863  return column_list_;
864  }
std::list< std::unique_ptr< std::string > > column_list_
Definition: ParserNode.h:868
bool Parser::UniqueDef::get_is_primarykey ( ) const
inline

Definition at line 861 of file ParserNode.h.

References is_primarykey_.

861 { return is_primarykey_; }

Member Data Documentation

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

Definition at line 868 of file ParserNode.h.

Referenced by get_column_list(), and UniqueDef().

bool Parser::UniqueDef::is_primarykey_
private

Definition at line 867 of file ParserNode.h.

Referenced by get_is_primarykey().


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