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 | Friends
m::MatchBase Struct Referenceabstract

#include <PhysicalOptimizer.hpp>

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

Public Member Functions

virtual ~MatchBase ()
 
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()
 

Friends

template<typename >
struct Match
 
template<typename >
struct PhysicalOptimizerImpl
 
std::ostream & operator<< (std::ostream &out, const MatchBase &M)
 
std::string to_string (const MatchBase &M)
 

Detailed Description

Definition at line 199 of file PhysicalOptimizer.hpp.

Constructor & Destructor Documentation

◆ ~MatchBase()

virtual m::MatchBase::~MatchBase ( )
inlinevirtual

Definition at line 208 of file PhysicalOptimizer.hpp.

Member Function Documentation

◆ cost() [1/2]

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

Definition at line 218 of file PhysicalOptimizer.hpp.

References cost_.

◆ cost() [2/2]

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

Definition at line 220 of file PhysicalOptimizer.hpp.

References cost_.

◆ dump() [1/2]

void MatchBase::dump ( ) const

Definition at line 13 of file PhysicalOptimizer.cpp.

References dump().

Referenced by dump().

◆ dump() [2/2]

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

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 virtual

◆ get_matched_root()

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

◆ indent()

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

Definition at line 233 of file PhysicalOptimizer.hpp.

◆ print()

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

Friends And Related Function Documentation

◆ Match

template<typename >
friend struct Match
friend

Definition at line 201 of file PhysicalOptimizer.hpp.

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
const MatchBase M 
)
friend

Definition at line 226 of file PhysicalOptimizer.hpp.

◆ PhysicalOptimizerImpl

template<typename >
friend struct PhysicalOptimizerImpl
friend

Definition at line 202 of file PhysicalOptimizer.hpp.

◆ to_string

std::string to_string ( const MatchBase M)
friend

Definition at line 230 of file PhysicalOptimizer.hpp.

Field Documentation

◆ cost_

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

Definition at line 205 of file PhysicalOptimizer.hpp.

Referenced by cost().


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