OmniSciDB  04ee39c94c
Planner::Result Class Reference

#include <Planner.h>

+ Inheritance diagram for Planner::Result:
+ Collaboration diagram for Planner::Result:

Public Member Functions

 Result (std::vector< std::shared_ptr< Analyzer::TargetEntry >> &t, const std::list< std::shared_ptr< Analyzer::Expr >> &q, double c, Plan *p, const std::list< std::shared_ptr< Analyzer::Expr >> &cq)
 
const std::list< std::shared_ptr< Analyzer::Expr > > & get_constquals () const
 
void print () const override
 
- Public Member Functions inherited from Planner::Plan
 Plan (const std::vector< std::shared_ptr< Analyzer::TargetEntry >> &t, const std::list< std::shared_ptr< Analyzer::Expr >> &q, double c, Plan *p)
 
 Plan (const std::vector< std::shared_ptr< Analyzer::TargetEntry >> &t, double c, Plan *p)
 
 Plan ()
 
 Plan (const std::vector< std::shared_ptr< Analyzer::TargetEntry >> &t)
 
virtual ~Plan ()
 
const std::vector< std::shared_ptr< Analyzer::TargetEntry > > & get_targetlist () const
 
const std::list< std::shared_ptr< Analyzer::Expr > > & get_quals () const
 
double get_cost () const
 
const Planget_child_plan () const
 
void add_tle (std::shared_ptr< Analyzer::TargetEntry > tle)
 
void set_targetlist (const std::vector< std::shared_ptr< Analyzer::TargetEntry >> &t)
 

Private Attributes

std::list< std::shared_ptr< Analyzer::Expr > > const_quals
 

Additional Inherited Members

- Protected Attributes inherited from Planner::Plan
std::vector< std::shared_ptr< Analyzer::TargetEntry > > targetlist
 
std::list< std::shared_ptr< Analyzer::Expr > > quals
 
double cost
 
std::unique_ptr< Planchild_plan
 

Detailed Description

Definition at line 85 of file Planner.h.

Constructor & Destructor Documentation

◆ Result()

Planner::Result::Result ( std::vector< std::shared_ptr< Analyzer::TargetEntry >> &  t,
const std::list< std::shared_ptr< Analyzer::Expr >> &  q,
double  c,
Plan p,
const std::list< std::shared_ptr< Analyzer::Expr >> &  cq 
)
inline

Definition at line 87 of file Planner.h.

92  : Plan(t, q, c, p), const_quals(cq) {}
std::list< std::shared_ptr< Analyzer::Expr > > const_quals
Definition: Planner.h:100
void c(const std::string &query_string, const ExecutorDeviceType device_type)

Member Function Documentation

◆ get_constquals()

const std::list<std::shared_ptr<Analyzer::Expr> >& Planner::Result::get_constquals ( ) const
inline

Definition at line 93 of file Planner.h.

References Planner::Plan::print().

93  {
94  return const_quals;
95  }
std::list< std::shared_ptr< Analyzer::Expr > > const_quals
Definition: Planner.h:100
+ Here is the call graph for this function:

◆ print()

void Planner::Result::print ( ) const
overridevirtual

Reimplemented from Planner::Plan.

Definition at line 369 of file Planner.cpp.

References Planner::Plan::child_plan, and Planner::Plan::print().

369  {
370  std::cout << "(Result" << std::endl;
371  Plan::print();
372  child_plan->print();
373  std::cout << "const_quals: ";
374  for (auto p : const_quals) {
375  p->print();
376  }
377  std::cout << ")" << std::endl;
378 }
std::unique_ptr< Plan > child_plan
Definition: Planner.h:70
std::list< std::shared_ptr< Analyzer::Expr > > const_quals
Definition: Planner.h:100
virtual void print() const
Definition: Planner.cpp:356
+ Here is the call graph for this function:

Member Data Documentation

◆ const_quals

std::list<std::shared_ptr<Analyzer::Expr> > Planner::Result::const_quals
private

Definition at line 100 of file Planner.h.


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