Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ExplorationQueue.h
Go to the documentation of this file.
1#pragma once
2
3#include <deque>
4#include <unordered_set>
5
8
9namespace storm::pomdp::beliefs {
10
12 public:
14
21 void changeOrder(ExplorationQueueOrder const newOrder);
22
26 bool hasNext() const;
27
31 bool push(BeliefId const id);
32
37
41 std::unordered_set<storm::pomdp::beliefs::BeliefId> getContents() const;
42
43 private:
46
48 std::unordered_set<storm::pomdp::beliefs::BeliefId> contents;
49
51 std::deque<storm::pomdp::beliefs::BeliefId> queue;
52};
53
54} // namespace storm::pomdp::beliefs
std::unordered_set< storm::pomdp::beliefs::BeliefId > getContents() const
void changeOrder(ExplorationQueueOrder const newOrder)
Changes the order in which the queue processes the elements.
ExplorationQueue(ExplorationQueueOrder const order=ExplorationQueueOrder::Unordered)
bool push(BeliefId const id)
Adds the given belief id to the queue.
BeliefId popNext()
Removes and returns the next belief id from the queue.
uint64_t BeliefId
Definition types.h:12
ExplorationQueueOrder
Order used to select the next discovered belief for exploration.