OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Planner::Append Class Reference

#include <Planner.h>

+ Inheritance diagram for Planner::Append:
+ Collaboration diagram for Planner::Append:

Public Member Functions

 Append (const std::vector< std::shared_ptr< Analyzer::TargetEntry >> &t, const std::list< std::shared_ptr< Analyzer::Expr >> &q, double c, Plan *p, std::list< std::unique_ptr< Plan >> &pl)
 
const std::list
< std::unique_ptr< Plan > > & 
get_plan_list () 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::unique_ptr
< Plan > > 
plan_list
 

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 198 of file Planner.h.

Constructor & Destructor Documentation

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

Definition at line 200 of file Planner.h.

205  : Plan(t, q, c, p), plan_list(std::move(pl)) {}
std::list< std::unique_ptr< Plan > > plan_list
Definition: Planner.h:210

Member Function Documentation

const std::list<std::unique_ptr<Plan> >& Planner::Append::get_plan_list ( ) const
inline

Definition at line 206 of file Planner.h.

References plan_list.

206 { return plan_list; }
std::list< std::unique_ptr< Plan > > plan_list
Definition: Planner.h:210
void Planner::Append::print ( ) const
overridevirtual

Reimplemented from Planner::Plan.

Definition at line 423 of file Planner.cpp.

References plan_list.

423  {
424  std::cout << "(Append" << std::endl;
425  for (const auto& p : plan_list) {
426  p->print();
427  }
428  std::cout << ")" << std::endl;
429 }
std::list< std::unique_ptr< Plan > > plan_list
Definition: Planner.h:210

Member Data Documentation

std::list<std::unique_ptr<Plan> > Planner::Append::plan_list
private

Definition at line 210 of file Planner.h.

Referenced by get_plan_list(), and print().


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