Revert "Move connected_items from hash table to tree"
This reverts commit 187aa1c171
.
This commit is contained in:
parent
f1c772ba55
commit
ae1cc29dc6
|
@ -26,7 +26,6 @@
|
||||||
#define SCH_ITEM_H
|
#define SCH_ITEM_H
|
||||||
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <map>
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
#include <eda_item.h>
|
#include <eda_item.h>
|
||||||
|
@ -492,7 +491,7 @@ protected:
|
||||||
// to store a initial pos of the item or mouse cursor
|
// to store a initial pos of the item or mouse cursor
|
||||||
|
|
||||||
/// Store pointers to other items that are connected to this one, per sheet.
|
/// Store pointers to other items that are connected to this one, per sheet.
|
||||||
std::map<SCH_SHEET_PATH, SCH_ITEM_SET, SHEET_PATH_CMP> m_connected_items;
|
std::unordered_map<SCH_SHEET_PATH, SCH_ITEM_SET> m_connected_items;
|
||||||
|
|
||||||
/// Store connectivity information, per sheet.
|
/// Store connectivity information, per sheet.
|
||||||
std::unordered_map<SCH_SHEET_PATH, SCH_CONNECTION*> m_connection_map;
|
std::unordered_map<SCH_SHEET_PATH, SCH_CONNECTION*> m_connection_map;
|
||||||
|
|
|
@ -393,14 +393,6 @@ namespace std
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SHEET_PATH_CMP
|
|
||||||
{
|
|
||||||
bool operator()( const SCH_SHEET_PATH& lhs, const SCH_SHEET_PATH& rhs ) const
|
|
||||||
{
|
|
||||||
return lhs.GetCurrentHash() < rhs.GetCurrentHash();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
typedef std::vector< SCH_SHEET_PATH > SCH_SHEET_PATHS;
|
typedef std::vector< SCH_SHEET_PATH > SCH_SHEET_PATHS;
|
||||||
typedef SCH_SHEET_PATHS::iterator SCH_SHEET_PATHS_ITER;
|
typedef SCH_SHEET_PATHS::iterator SCH_SHEET_PATHS_ITER;
|
||||||
|
|
Loading…
Reference in New Issue