Skip to content
Snippets Groups Projects

Fix collidable destructor

Merged Noah Schick requested to merge nschick/osi-query-library-dev:v1.1.4 into v1.1.x
All threads resolved!
Files
6
@@ -27,8 +27,15 @@ class Route;
template <typename Instance>
struct Collidable
{
constexpr Collidable(Id);
~Collidable();
//! Returns the id of this object
//!
//!\return Id The id of this object
constexpr Id GetId() const;
//! Returns the collection of overlaps of this object with any object of the given type (excluding self)
//!
//! \tparam StreetType Type of the overlapping objects. Either Lane or Road
@@ -96,5 +103,7 @@ struct Collidable
private:
std::vector<Overlap<Road>> roadOverlaps;
std::vector<Overlap<Lane>> laneOverlaps;
// The id of the object is stored as a copy so that when the handle is deleted, the object can still be identified.
Id id;
};
} // namespace osiql
Loading