43 os <<
"Solution:" << endl;
54 for (ProblemSolutionList::const_iterator iter = solutionlist.begin(); iter != solutionlist.end(); ++iter) {
63 for (CProblemSolutionList::const_iterator iter = solutionlist.begin(); iter != solutionlist.end(); ++iter) {
64 os << *(*iter) << endl;
71 ProblemSolution::ProblemSolution( ResolverProblem_Ptr parent,
const string & description,
const string & details )
73 , _description (description)
93 DBG <<
"apply solution " << *
this << endl;
95 for (solver::detail::CSolutionActionList::const_iterator iter =
_actions.begin();
97 solver::detail::SolutionAction_constPtr action = *iter;
98 if (! action->execute (resolver))
100 WAR <<
"apply solution action failed: " << action << endl;
std::list< ProblemSolution_Ptr > ProblemSolutionList
void addAction(solver::detail::SolutionAction_constPtr action)
Add an action to the actions list.
void clear()
Clear all data.
A mid layer class we should remove.
std::ostream & operator<<(std::ostream &str, const ::_Dataiterator *obj)
bool apply(solver::detail::Resolver &resolver)
Apply this solution, i.e.
solver::detail::CSolutionActionList _actions
Class representing one possible solution to one problem found during resolving.
#define IMPL_PTR_TYPE(NAME)
~ProblemSolution()
Destructor.
std::list< ProblemSolution_constPtr > CProblemSolutionList