1#ifndef PROBFD_OPEN_LISTS_LIFO_OPEN_LIST_H
2#define PROBFD_OPEN_LISTS_LIFO_OPEN_LIST_H
4#include "probfd/algorithms/open_list.h"
10template <
typename Action>
11class LifoOpenList :
public algorithms::OpenList<Action> {
12 std::deque<StateID> queue_;
16 bool empty()
const override
18 return queue_.empty();
22 unsigned size()
const override
27 StateID pop()
override
29 StateID s = queue_.back();
34 void push(StateID state_id)
override { queue_.push_back(state_id); }
36 void clear()
override { queue_.clear(); }
This namespace contains implementations of open lists.
Definition fifo_open_list.h:9