mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
m::ast::SelectClause Struct Reference

#include <AST.hpp>

Inheritance diagram for m::ast::SelectClause:
[legend]
Collaboration diagram for m::ast::SelectClause:
[legend]

Public Types

using select_type = std::pair< std::unique_ptr< Expr >, Token >
 

Public Member Functions

 SelectClause (Token tok, std::vector< select_type > select, Token select_all)
 

‍list of expressions expanded from SELECT *


 
void accept (ASTClauseVisitor &v) override
 
void accept (ConstASTClauseVisitor &v) const override
 
void dot (std::ostream &out) const
 
void dump (std::ostream &out) const
 
void dump () const
 

Data Fields

std::vector< select_typeselect
 

‍list of selected elements; expr AS name


 
Token select_all
 
std::vector< std::unique_ptr< Expr > > expanded_select_all
 
Token tok
 

Detailed Description

Definition at line 524 of file AST.hpp.

Member Typedef Documentation

◆ select_type

using m::ast::SelectClause::select_type = std::pair<std::unique_ptr<Expr>, Token>

Definition at line 526 of file AST.hpp.

Constructor & Destructor Documentation

◆ SelectClause()

m::ast::SelectClause::SelectClause ( Token  tok,
std::vector< select_type select,
Token  select_all 
)
inline

‍list of expressions expanded from SELECT *

Definition at line 532 of file AST.hpp.

Member Function Documentation

◆ accept() [1/2]

void m::ast::SelectClause::accept ( ASTClauseVisitor v)
overridevirtual

Implements m::ast::Clause.

◆ accept() [2/2]

void m::ast::SelectClause::accept ( ConstASTClauseVisitor v) const
overridevirtual

Implements m::ast::Clause.

◆ dot()

void Clause::dot ( std::ostream &  out) const
inherited

Definition at line 211 of file AST.cpp.

References m::ast::Clause::dot().

Referenced by m::ast::Clause::dot().

◆ dump() [1/2]

void Clause::dump ( ) const
inherited

Definition at line 243 of file AST.cpp.

References m::ast::Clause::dump().

Referenced by m::ast::Clause::dump().

◆ dump() [2/2]

void Clause::dump ( std::ostream &  out) const
inherited

Definition at line 237 of file AST.cpp.

Field Documentation

◆ expanded_select_all

std::vector<std::unique_ptr<Expr> > m::ast::SelectClause::expanded_select_all

Definition at line 530 of file AST.hpp.

◆ select

std::vector<select_type> m::ast::SelectClause::select

‍list of selected elements; expr AS name

Definition at line 528 of file AST.hpp.

◆ select_all

Token m::ast::SelectClause::select_all

Definition at line 529 of file AST.hpp.

◆ tok

Token m::ast::Clause::tok
inherited

Definition at line 500 of file AST.hpp.


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