OmniSciDB  a5dc49c757
 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 853 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 855 of file ParserNode.h.

References CHECK, and column_list_.

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

Member Function Documentation

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

Definition at line 863 of file ParserNode.h.

References column_list_.

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

Definition at line 862 of file ParserNode.h.

References is_primarykey_.

862 { return is_primarykey_; }

Member Data Documentation

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

Definition at line 869 of file ParserNode.h.

Referenced by get_column_list(), and UniqueDef().

bool Parser::UniqueDef::is_primarykey_
private

Definition at line 868 of file ParserNode.h.

Referenced by get_is_primarykey().


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