OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Parser::ColumnConstraintDef Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::ColumnConstraintDef:
+ Collaboration diagram for Parser::ColumnConstraintDef:

Public Member Functions

 ColumnConstraintDef (bool n, bool u, bool p, Literal *d)
 
 ColumnConstraintDef (Expr *c)
 
 ColumnConstraintDef (std::string *t, std::string *c)
 
bool get_notnull () const
 
bool get_unique () const
 
bool get_is_primarykey () const
 
const Literalget_defaultval () const
 
const Exprget_check_condition () const
 
const std::string * get_foreign_table () const
 
const std::string * get_foreign_column () const
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

bool notnull_
 
bool unique_
 
bool is_primarykey_
 
std::unique_ptr< Literaldefaultval_
 
std::unique_ptr< Exprcheck_condition_
 
std::unique_ptr< std::string > foreign_table_
 
std::unique_ptr< std::string > foreign_column_
 

Detailed Description

Definition at line 780 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::ColumnConstraintDef::ColumnConstraintDef ( bool  n,
bool  u,
bool  p,
Literal d 
)
inline

Definition at line 782 of file ParserNode.h.

Parser::ColumnConstraintDef::ColumnConstraintDef ( Expr c)
inline

Definition at line 784 of file ParserNode.h.

Parser::ColumnConstraintDef::ColumnConstraintDef ( std::string *  t,
std::string *  c 
)
inline

Definition at line 786 of file ParserNode.h.

787  : notnull_(false)
788  , unique_(false)
789  , is_primarykey_(false)
790  , foreign_table_(t)
791  , foreign_column_(c) {}
std::unique_ptr< std::string > foreign_table_
Definition: ParserNode.h:806
std::unique_ptr< std::string > foreign_column_
Definition: ParserNode.h:807

Member Function Documentation

const Expr* Parser::ColumnConstraintDef::get_check_condition ( ) const
inline

Definition at line 796 of file ParserNode.h.

References check_condition_.

796 { return check_condition_.get(); }
std::unique_ptr< Expr > check_condition_
Definition: ParserNode.h:805
const Literal* Parser::ColumnConstraintDef::get_defaultval ( ) const
inline

Definition at line 795 of file ParserNode.h.

References defaultval_.

Referenced by Parser::set_column_descriptor().

795 { return defaultval_.get(); }
std::unique_ptr< Literal > defaultval_
Definition: ParserNode.h:804

+ Here is the caller graph for this function:

const std::string* Parser::ColumnConstraintDef::get_foreign_column ( ) const
inline

Definition at line 798 of file ParserNode.h.

References foreign_column_.

798 { return foreign_column_.get(); }
std::unique_ptr< std::string > foreign_column_
Definition: ParserNode.h:807
const std::string* Parser::ColumnConstraintDef::get_foreign_table ( ) const
inline

Definition at line 797 of file ParserNode.h.

References foreign_table_.

797 { return foreign_table_.get(); }
std::unique_ptr< std::string > foreign_table_
Definition: ParserNode.h:806
bool Parser::ColumnConstraintDef::get_is_primarykey ( ) const
inline

Definition at line 794 of file ParserNode.h.

References is_primarykey_.

794 { return is_primarykey_; }
bool Parser::ColumnConstraintDef::get_notnull ( ) const
inline

Definition at line 792 of file ParserNode.h.

References notnull_.

Referenced by Parser::set_column_descriptor().

792 { return notnull_; }

+ Here is the caller graph for this function:

bool Parser::ColumnConstraintDef::get_unique ( ) const
inline

Definition at line 793 of file ParserNode.h.

References unique_.

793 { return unique_; }

Member Data Documentation

std::unique_ptr<Expr> Parser::ColumnConstraintDef::check_condition_
private

Definition at line 805 of file ParserNode.h.

Referenced by get_check_condition().

std::unique_ptr<Literal> Parser::ColumnConstraintDef::defaultval_
private

Definition at line 804 of file ParserNode.h.

Referenced by get_defaultval().

std::unique_ptr<std::string> Parser::ColumnConstraintDef::foreign_column_
private

Definition at line 807 of file ParserNode.h.

Referenced by get_foreign_column().

std::unique_ptr<std::string> Parser::ColumnConstraintDef::foreign_table_
private

Definition at line 806 of file ParserNode.h.

Referenced by get_foreign_table().

bool Parser::ColumnConstraintDef::is_primarykey_
private

Definition at line 803 of file ParserNode.h.

Referenced by get_is_primarykey().

bool Parser::ColumnConstraintDef::notnull_
private

Definition at line 801 of file ParserNode.h.

Referenced by get_notnull().

bool Parser::ColumnConstraintDef::unique_
private

Definition at line 802 of file ParserNode.h.

Referenced by get_unique().


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