Eclipse SUMO - Simulation of Urban MObility
|
A RT-tree for efficient storing of SUMO's Named objects. More...
#include <NamedRTree.h>
Public Member Functions | |
void | Insert (const float a_min[2], const float a_max[2], Named *const &a_data) |
Insert entry. | |
NamedRTree () | |
Constructor. | |
void | Remove (const float a_min[2], const float a_max[2], Named *const &a_data) |
Remove entry. | |
void | RemoveAll () |
Remove all enrties. | |
int | Search (const float a_min[2], const float a_max[2], const Named::StoringVisitor &c) const |
Find all within search rectangle. | |
~NamedRTree () | |
Destructor. | |
A RT-tree for efficient storing of SUMO's Named objects.
This class specialises the used RT-tree implementation from "rttree.h". It stores names of "Named"-objects.
Definition at line 61 of file NamedRTree.h.
|
inline |
Constructor.
Definition at line 64 of file NamedRTree.h.
|
inline |
Destructor.
Definition at line 69 of file NamedRTree.h.
|
inline |
Insert entry.
a_min | Min of bounding rect |
a_max | Max of bounding rect |
a_data | The instance of a Named-object to add (the ID is added) |
Definition at line 79 of file NamedRTree.h.
Referenced by NBPTStopCont::assignEdgeForFloatingStops(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), NBPTStopCont::findAccessEdgesForRailStops(), MSDevice_FCDReplay::FCDHandler::initLaneTree(), MSRouteHandler::initLaneTree(), RORouteHandler::initLaneTree(), NBNodeCont::insert(), NBNodeCont::insert(), NBEdgeCont::joinTramEdges(), and NWWriter_OpenDrive::mapmatchRoadObjects().
|
inline |
Remove entry.
a_min | Min of bounding rect |
a_max | Max of bounding rect |
a_data | The instance of a Named-object to remove |
Definition at line 90 of file NamedRTree.h.
Referenced by NBNodeCont::extract().
|
inline |
|
inline |
Find all within search rectangle.
a_min | Min of search bounding rect |
a_max | Max of search bounding rect |
a_searchResult | Search result array. Caller should set grow size. Function will reset, not append to array. |
a_resultCallback | Callback function to return result. Callback should return 'true' to continue searching |
a_context | User context to pass as parameter to a_resultCallback |
Definition at line 112 of file NamedRTree.h.
Referenced by NBPTStopCont::assignEdgeForFloatingStops(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), NBPTStopCont::findAccessEdgesForRailStops(), MapMatcher< E, L, N >::getClosestLane(), NBEdgeCont::joinTramEdges(), NWWriter_OpenDrive::mapmatchRoadObjects(), and NBNodeCont::retrieve().