Changeset 106900 in vbox for trunk/src/VBox/Main/include/ObjectsTracker.h
- Timestamp:
- Nov 8, 2024 10:45:15 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ObjectsTracker.h
r106891 r106900 33 33 34 34 #include <set> 35 #include < unordered_map>35 #include <map> 36 36 #include <vector> 37 37 #include <string> … … 150 150 }; 151 151 152 /** The string representation for object IDs in the internal map. 153 * @todo r=bird: Why are you using std::string here? We use 154 * should use com::Utf8Str where possible. In this case, though, it's a 155 * com::Guid which would have much more efficient storage compared 156 * to both the string variants... */ 157 #if 1 158 typedef std::string ObjIdString_T; 159 #else 160 typedef com::Utf8Str ObjIdString_T; 161 #endif 162 152 163 ///////////////////////////////////////////////////////////////////////////// 153 164 // TrackedObjectsCollector 154 ///////////////////////////////////////////////////////////////////////////// 165 ///////////////////////////////////////////////////////////////////////////// 155 166 class TrackedObjectsCollector 156 167 { … … 160 171 std::set<com::Utf8Str> m_trackedObjectIds;//Full list of valid + invalid objects 161 172 std::set<com::Utf8Str> m_trackedInvalidObjectIds;//List of invalid objects only 162 std:: unordered_map<std::string, TrackedObjectData> m_trackedObjectsData;//Mapping Object Id -> Object Data173 std::map<ObjIdString_T, TrackedObjectData> m_trackedObjectsData;//Mapping Object Id -> Object Data 163 174 164 175 uint64_t m_Added;//Counter of the added objects
Note:
See TracChangeset
for help on using the changeset viewer.