49 char step_type_name[3][15] = {
"DO_MAIN_STEP",
"DO_PRE_STEP" ,
"DO_POST_STEP" };
52 namespace IterationPack {
90 ,
poss_type assoc_step_poss ,std::ostream&
out,
const std::string& leading_str )
const
93 << std::endl << leading_str << step_poss <<
", " << step_type_name[type];
101 <<
", " << assoc_step_poss
105 <<
"\" : print_step(algo,step_poss,type,assoc_step_poss,out) called\n";
116 << std::endl << step_poss <<
", " << step_type_name[type];
124 <<
", " << assoc_step_poss
bool do_step(Algorithm &algo, poss_type step_poss, EDoStepType type, poss_type assoc_step_poss)
virtual std::ostream & journal_out() const
Return a reference to a std::ostream to be used to output debug information and the like...
void print_algorithm_step(const Algorithm &algo, Algorithm::poss_type step_poss, EDoStepType type, Algorithm::poss_type assoc_step_poss, std::ostream &out)
Prints to 'out' the algorithm step.
void print_step_poss(const Algorithm &algo, poss_type step_poss, EDoStepType type, poss_type assoc_step_poss) const
void initialize_step(Algorithm &algo, poss_type step_poss, EDoStepType type, poss_type assoc_step_poss)
void finalize_step(Algorithm &algo, poss_type step_poss, EDoStepType type, poss_type assoc_step_poss)
virtual const std::string & get_step_name(poss_type step_poss) const
Return the name of a step given its possition.
Acts as the central hub for an iterative algorithm.
void inform_updated(Algorithm &algo, poss_type step_poss, EDoStepType type, poss_type assoc_step_poss)
virtual const std::string & get_assoc_step_name(poss_type step_poss, EAssocStepType type, poss_type assoc_step_poss) const
Return the name of the pre or post step at step_poss and at assoc_step_poss.
void print_step(const Algorithm &algo, poss_type step_poss, EDoStepType type, poss_type assoc_step_poss, std::ostream &out, const std::string &leading_str) const