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

#include <AST.hpp>

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

Public Types

using order_type = std::pair< std::unique_ptr< Expr >, bool >
 

Public Member Functions

 OrderByClause (Token tok, std::vector< order_type > order_by)
 
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< order_typeorder_by
 

‍true means ascending, false means descending


 
Token tok
 

Detailed Description

Definition at line 612 of file AST.hpp.

Member Typedef Documentation

◆ order_type

using m::ast::OrderByClause::order_type = std::pair<std::unique_ptr<Expr>, bool>

Definition at line 614 of file AST.hpp.

Constructor & Destructor Documentation

◆ OrderByClause()

m::ast::OrderByClause::OrderByClause ( Token  tok,
std::vector< order_type order_by 
)
inline

Definition at line 618 of file AST.hpp.

Member Function Documentation

◆ accept() [1/2]

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

Implements m::ast::Clause.

◆ accept() [2/2]

void m::ast::OrderByClause::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

◆ order_by

std::vector<order_type> m::ast::OrderByClause::order_by

‍true means ascending, false means descending

Definition at line 616 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: