Remove using from hpp

This commit is contained in:
tatiana-kondakova 2017-07-31 11:26:22 +03:00 committed by Добрый Ээх
parent 8820c27179
commit ef2b582807
4 changed files with 13 additions and 11 deletions

View file

@ -3,6 +3,7 @@
#include "routing_common/vehicle_model.hpp"
#include "std/shared_ptr.hpp"
#include "std/string.hpp"
#include "std/unordered_map.hpp"
namespace routing

View file

@ -3,6 +3,7 @@
#include "routing_common/vehicle_model.hpp"
#include "std/shared_ptr.hpp"
#include "std/string.hpp"
namespace routing
{

View file

@ -3,6 +3,7 @@
#include "routing_common/vehicle_model.hpp"
#include "std/shared_ptr.hpp"
#include "std/string.hpp"
#include "std/unordered_map.hpp"
namespace routing

View file

@ -6,8 +6,6 @@
#include <unordered_map>
#include <vector>
using namespace std;
class Classificator;
class FeatureType;
@ -50,10 +48,11 @@ public:
virtual ~VehicleModelFactory() {}
/// @return Default vehicle model which corresponds for all countrines,
/// but it may be non optimal for some countries
virtual shared_ptr<IVehicleModel> GetVehicleModel() const = 0;
virtual std::shared_ptr<IVehicleModel> GetVehicleModel() const = 0;
/// @return The most optimal vehicle model for specified country
virtual shared_ptr<IVehicleModel> GetVehicleModelForCountry(string const & country) const = 0;
virtual std::shared_ptr<IVehicleModel> GetVehicleModelForCountry(
std::string const & country) const = 0;
};
class VehicleModel : public IVehicleModel
@ -66,7 +65,7 @@ public:
bool m_isTransitAllowed; /// transit allowed for this road type
};
typedef initializer_list<FeatureTypeLimits> InitListT;
typedef std::initializer_list<FeatureTypeLimits> InitListT;
VehicleModel(Classificator const & c, InitListT const & featureTypeLimits);
@ -95,7 +94,7 @@ public:
protected:
struct AdditionalRoadTags final
{
initializer_list<char const *> m_hwtag;
std::initializer_list<char const *> m_hwtag;
double m_speedKMpH;
};
@ -104,7 +103,7 @@ protected:
/// Used in derived class constructors only. Not for public use.
void SetAdditionalRoadTypes(Classificator const & c,
vector<AdditionalRoadTags> const & additionalTags);
std::vector<AdditionalRoadTags> const & additionalTags);
/// \returns true if |types| is a oneway feature.
/// \note According to OSM, tag "oneway" could have value "-1". That means it's a oneway feature
@ -143,13 +142,13 @@ private:
bool const m_isTransitAllowed;
};
vector<AdditionalRoadType>::const_iterator FindRoadType(uint32_t type) const;
std::vector<AdditionalRoadType>::const_iterator FindRoadType(uint32_t type) const;
unordered_map<uint32_t, RoadLimits> m_types;
std::unordered_map<uint32_t, RoadLimits> m_types;
vector<AdditionalRoadType> m_addRoadTypes;
std::vector<AdditionalRoadType> m_addRoadTypes;
uint32_t m_onewayType;
};
string DebugPrint(IVehicleModel::RoadAvailability const l);
std::string DebugPrint(IVehicleModel::RoadAvailability const l);
} // namespace routing