MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / ~PathfindingOpenSet

Method ~PathfindingOpenSet

src/Battlescape/PathfindingOpenSet.cpp:29–37  ·  view source on GitHub ↗

* Cleans up all the entries still in set. */

Source from the content-addressed store, hash-verified

27 * Cleans up all the entries still in set.
28 */
29PathfindingOpenSet::~PathfindingOpenSet()
30{
31 while (!_queue.empty())
32 {
33 OpenSetEntry *entry = _queue.top();
34 _queue.pop();
35 delete entry;
36 }
37}
38
39/**
40 * Keeps removing all discarded entries that have come to the top of the queue.

Callers

nothing calls this directly

Calls 3

topMethod · 0.80
popMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected