mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes
m::interpreter::MatchBase Struct Referenceabstract

An abstract MatchBase for the Interpreter backend. More...

#include <InterpreterOperator.hpp>

Inheritance diagram for m::interpreter::MatchBase:
[legend]
Collaboration diagram for m::interpreter::MatchBase:
[legend]

Public Member Functions

virtual void accept (MatchBaseVisitor &v)=0
 
virtual void accept (ConstMatchBaseVisitor &v) const =0
 
virtual void execute (setup_t setup, pipeline_t pipeline, teardown_t teardown) const =0
 Executes this physical operator match.
 
virtual const Operatorget_matched_root () const =0
 Returns the matched logical root operator for physical operators.
 
double cost () const
 
void dump (std::ostream &out) const
 
void dump () const
 

Protected Member Functions

virtual void print (std::ostream &out, unsigned level=0) const =0
 

Static Protected Member Functions

static std::ostream & indent (std::ostream &out, unsigned level)
 

Private Member Functions

void cost (double new_cost)
 

Private Attributes

double cost_ = std::numeric_limits<double>::infinity()
 

Detailed Description

An abstract MatchBase for the Interpreter backend.

Adds accept methods for respective visitor.

Definition at line 15 of file InterpreterOperator.hpp.

Member Function Documentation

◆ accept() [1/2]

virtual void m::interpreter::MatchBase::accept ( ConstMatchBaseVisitor &  v) const
pure virtual

◆ accept() [2/2]

virtual void m::interpreter::MatchBase::accept ( MatchBaseVisitor &  v)
pure virtual

◆ cost() [1/2]

double m::MatchBase::cost ( ) const
inlineinherited

Definition at line 218 of file PhysicalOptimizer.hpp.

References m::MatchBase::cost_.

◆ cost() [2/2]

void m::MatchBase::cost ( double  new_cost)
inlineprivateinherited

Definition at line 220 of file PhysicalOptimizer.hpp.

References m::MatchBase::cost_.

◆ dump() [1/2]

void MatchBase::dump ( ) const
inherited

Definition at line 13 of file PhysicalOptimizer.cpp.

References m::MatchBase::dump().

Referenced by m::MatchBase::dump().

◆ dump() [2/2]

M_LCOV_EXCL_START void MatchBase::dump ( std::ostream &  out) const
inherited

Definition at line 12 of file PhysicalOptimizer.cpp.

◆ execute()

virtual void m::MatchBase::execute ( setup_t  setup,
pipeline_t  pipeline,
teardown_t  teardown 
) const
pure virtualinherited

◆ get_matched_root()

virtual const Operator & m::MatchBase::get_matched_root ( ) const
pure virtualinherited

◆ indent()

static std::ostream & m::MatchBase::indent ( std::ostream &  out,
unsigned  level 
)
inlinestaticprotectedinherited

Definition at line 233 of file PhysicalOptimizer.hpp.

◆ print()

virtual void m::MatchBase::print ( std::ostream &  out,
unsigned  level = 0 
) const
protectedpure virtualinherited

Field Documentation

◆ cost_

double m::MatchBase::cost_ = std::numeric_limits<double>::infinity()
privateinherited

Definition at line 205 of file PhysicalOptimizer.hpp.

Referenced by m::MatchBase::cost().


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