MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / ~LocalSearch

Method ~LocalSearch

common/map_sdk/map_engine/src/local_search.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33LocalSearch::~LocalSearch() {
34 if (dbPtr == NULL) {
35 optInfo = std::string("DB already released");
36 } else {
37 dbFactory::getInstance()->releaseDB(&dbPtr);
38 dbPtr = NULL;
39 optInfo = std::string("DB release successful");
40 }
41}
42
43double calcLaneWidth(const hadmap::txCurve* leftB, const hadmap::txCurve* rightB) {
44 if (leftB == NULL || rightB == NULL) return 3.75;

Callers

nothing calls this directly

Calls 1

releaseDBMethod · 0.80

Tested by

no test coverage detected