2017-01-13 02:32:17 -05:00
|
|
|
#ifndef OSRM_CONTRACTOR_CONTRACTOR_HEAP_HPP_
|
|
|
|
#define OSRM_CONTRACTOR_CONTRACTOR_HEAP_HPP_
|
|
|
|
|
2017-05-02 07:12:28 -04:00
|
|
|
#include "util/query_heap.hpp"
|
2017-01-13 02:32:17 -05:00
|
|
|
#include "util/typedefs.hpp"
|
|
|
|
#include "util/xor_fast_hash_storage.hpp"
|
|
|
|
|
2022-12-11 04:10:26 -05:00
|
|
|
namespace osrm::contractor
|
2017-01-13 02:32:17 -05:00
|
|
|
{
|
|
|
|
struct ContractorHeapData
|
|
|
|
{
|
|
|
|
ContractorHeapData() {}
|
|
|
|
ContractorHeapData(short hop_, bool target_) : hop(hop_), target(target_) {}
|
|
|
|
|
|
|
|
short hop = 0;
|
|
|
|
bool target = false;
|
|
|
|
};
|
|
|
|
|
2017-05-02 07:12:28 -04:00
|
|
|
using ContractorHeap = util::QueryHeap<NodeID,
|
|
|
|
NodeID,
|
|
|
|
EdgeWeight,
|
|
|
|
ContractorHeapData,
|
|
|
|
util::XORFastHashStorage<NodeID, NodeID>>;
|
2017-01-13 02:32:17 -05:00
|
|
|
|
|
|
|
} // namespace osrm
|
|
|
|
|
|
|
|
#endif // OSRM_CONTRACTOR_CONTRACTOR_HEAP_HPP_
|