Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1014)

Side by Side Diff: src/search/pref_evaluator.h

Issue 6454058: Issue77 Add evaluation contexts, to be passed into the evaluators by the search methods
Patch Set: Created 12 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/search/per_state_information.cc ('k') | src/search/pref_evaluator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef PREF_EVALUATOR_H 1 #ifndef PREF_EVALUATOR_H
2 #define PREF_EVALUATOR_H 2 #define PREF_EVALUATOR_H
3 3
4 #include "scalar_evaluator.h" 4 #include "scalar_evaluator.h"
5 5
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 9
10 class PrefEvaluator : public ScalarEvaluator { 10 class PrefEvaluator : public ScalarEvaluator {
11 private: 11 private:
12 bool value_preferred; 12 bool value_preferred;
13 13 protected:
14 void evaluate(int g, bool preferred);
15 bool is_last_evaluated_dead_end() const;
16 int get_last_evaluated_value() const;
14 public: 17 public:
15 PrefEvaluator(); 18 PrefEvaluator();
16 ~PrefEvaluator(); 19 ~PrefEvaluator();
17 20
18 void evaluate(int g, bool preferred);
19 bool is_dead_end() const;
20 bool dead_end_is_reliable() const; 21 bool dead_end_is_reliable() const;
21 int get_value() const;
22 void get_involved_heuristics(std::set<Heuristic *> &) {return; } 22 void get_involved_heuristics(std::set<Heuristic *> &) {return; }
23 }; 23 };
24 24
25 #endif 25 #endif
OLDNEW
« no previous file with comments | « src/search/per_state_information.cc ('k') | src/search/pref_evaluator.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b