use unordered map for entity by id

This commit is contained in:
Otso Alho
2018-04-13 12:48:42 +03:00
committed by Thomas Krijnen
parent ac75a6d08c
commit 06ed79dd7c
+2 -1
View File
@@ -22,6 +22,7 @@
#include <map>
#include <set>
#include <boost/unordered_map.hpp>
#include "ifc_parse_api.h"
@@ -35,7 +36,7 @@ namespace IfcParse {
class IFC_PARSE_API IfcFile {
public:
typedef std::map<IfcSchema::Type::Enum, IfcEntityList::ptr> entities_by_type_t;
typedef std::map<unsigned int, IfcUtil::IfcBaseClass*> entity_by_id_t;
typedef boost::unordered_map<unsigned int, IfcUtil::IfcBaseClass*> entity_by_id_t;
typedef std::map<std::string, IfcSchema::IfcRoot*> entity_by_guid_t;
typedef std::map<unsigned int, std::vector<unsigned int> > entities_by_ref_t;
typedef entity_by_id_t::const_iterator const_iterator;