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

Intermediate match type for physical operator matches with a single child. More...

#include <WasmOperator.hpp>

Inheritance diagram for m::wasm::MatchSingleChild:
[legend]
Collaboration diagram for m::wasm::MatchSingleChild:
[legend]

Public Member Functions

 MatchSingleChild (std::vector< unsharable_shared_ptr< const m::MatchBase > > &&children)
 
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
 

Data Fields

unsharable_shared_ptr< const wasm::MatchBasechild
 

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

Intermediate match type for physical operator matches with a single child.

Definition at line 623 of file WasmOperator.hpp.

Constructor & Destructor Documentation

◆ MatchSingleChild()

m::wasm::MatchSingleChild::MatchSingleChild ( std::vector< unsharable_shared_ptr< const m::MatchBase > > &&  children)
inline

Definition at line 627 of file WasmOperator.hpp.

References M_insist.

Member Function Documentation

◆ accept() [1/2]

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

◆ accept() [2/2]

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

◆ 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

◆ child

unsharable_shared_ptr<const wasm::MatchBase> m::wasm::MatchSingleChild::child

Definition at line 625 of file WasmOperator.hpp.

◆ 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: