restructured to only return valid turns to the outside + cleanup

This commit is contained in:
Moritz Kobitzsch
2016-03-17 14:09:09 +01:00
committed by Patrick Niklaus
parent 71c0d5253d
commit 0cc23dec6f
8 changed files with 1286 additions and 1155 deletions
+7 -2
View File
@@ -10,14 +10,19 @@ namespace osrm
{
namespace util
{
// While this could, theoretically, hold any names in the fitting format,
// the NameTable allows access to a part of the Datafacade to allow
// processing based on name indices.
class NameTable
{
private:
//FIXME should this use shared memory
// FIXME should this use shared memory
RangeTable<16, false> m_name_table;
ShM<char, false>::vector m_names_char_list;
public:
NameTable( const std::string &filename );
NameTable(const std::string &filename);
std::string get_name_for_id(const unsigned name_id) const;
};
} // namespace util