6 #include "Navigation.h"
16 namespace NavGraphConforming
18 using namespace Resources::Roads::Navigation;
29 bool directionFromToA;
30 bool directionFromToB;
36 bool directionFromToA,
37 bool directionFromToB)
40 , directionFromToA(directionFromToA)
41 , directionFromToB(directionFromToB)
48 bool GetDirectionFromToA()
const {
return directionFromToA; }
49 bool GetDirectionFromToB()
const {
return directionFromToB; }
51 bool operator ==(
const Key& other)
const
53 return roadA == other.roadA &&
54 roadB == other.roadB &&
55 directionFromToA == other.directionFromToA &&
56 directionFromToB == other.directionFromToB;
64 bool TryGetValue(
const Key& key,
bool& out_isConnectionValue)
const
66 TCache::const_iterator iter = m_cache.find(key);
67 if (iter != m_cache.end())
69 out_isConnectionValue = iter->second;
76 void Add(
const Key& key,
bool value)
78 m_cache.insert(std::make_pair(key, value));
83 size_t operator()(
const Key& key)
const;
86 typedef Eegeo::unordered_map<Key, bool, Hash>::type TCache;