| 31 | } |
| 32 | |
| 33 | LocalSearch::~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 | |
| 43 | double calcLaneWidth(const hadmap::txCurve* leftB, const hadmap::txCurve* rightB) { |
| 44 | if (leftB == NULL || rightB == NULL) return 3.75; |