Skip to content

Commit

Permalink
Update BlindSearchHeuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
grucla committed Feb 7, 2024
1 parent 9fe28ad commit 2e08173
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/search/AAA_Mechanical_Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ search
├── heuristics
│ ├── additive_heuristic.cc✅
│ ├── additive_heuristic.h✅
│ ├── array_pool.h
│ ├── blind_search_heuristic.cc
│ ├── blind_search_heuristic.h
│ ├── array_pool.h
│ ├── blind_search_heuristic.cc
│ ├── blind_search_heuristic.h
│ ├── cea_heuristic.cc
│ ├── cea_heuristic.h
│ ├── cg_cache.cc
Expand Down Expand Up @@ -215,4 +215,4 @@ search
└── utils
```
```
10 changes: 3 additions & 7 deletions src/search/heuristics/blind_search_heuristic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ BlindSearchHeuristic::BlindSearchHeuristic(
}
}

BlindSearchHeuristic::~BlindSearchHeuristic() {
}

int BlindSearchHeuristic::compute_heuristic(const State &ancestor_state) {
State state = convert_ancestor_state(ancestor_state);
if (task_properties::is_goal_state(task_proxy, state))
Expand Down Expand Up @@ -57,10 +54,9 @@ class BlindSearchHeuristicFeature : public plugins::TypedFeature<Evaluator, Blin

virtual shared_ptr<BlindSearchHeuristic> create_component(
const plugins::Options &opts, const utils::Context &) const override {
return make_shared<BlindSearchHeuristic>(opts.get<shared_ptr<AbstractTask>>("transform"),
opts.get<bool>("cache_estimates"),
opts.get<string>("description"),
opts.get<utils::Verbosity>("verbosity"));
return plugins::make_shared_from_args_tuple_and_args<BlindSearchHeuristic>(
Heuristic::get_heuristic_parameters_from_options(opts)
);
}
};

Expand Down
1 change: 0 additions & 1 deletion src/search/heuristics/blind_search_heuristic.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class BlindSearchHeuristic : public Heuristic {
bool cache_estimates,
const std::string &name,
utils::Verbosity verbosity);
~BlindSearchHeuristic();
};
}

Expand Down

0 comments on commit 2e08173

Please sign in to comment.