All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RouteViewRepository.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "Routes.h"
7 #include "MortonKey.h"
8 #include <vector>
9 #include <map>
10 
11 namespace Eegeo
12 {
13  namespace Routes
14  {
15  namespace View
16  {
18  {
19  public:
20 
21  void InsertView(IRouteView& view);
22 
23  void RemoveViewsForRouteAtKey(const Route* route, const Streaming::MortonKey& key, std::vector<IRouteView*>& out_removedViews);
24 
25  void GetViews(std::vector<IRouteView*>& out_views) const;
26 
27  bool HasViewForRouteAtKey(const Route* route, const Streaming::MortonKey& key) const;
28 
29  private:
30  typedef std::multimap<Streaming::MortonKey, IRouteView*> TMapKeyToViews;
31  TMapKeyToViews m_keysToViews;
32  };
33  }
34  }
35 }