| 39 | } |
| 40 | |
| 41 | void CostFunctionManager::freeMemoryIfNeeded() |
| 42 | { |
| 43 | if ( _multipliers ) |
| 44 | { |
| 45 | delete[] _multipliers; |
| 46 | _multipliers = NULL; |
| 47 | } |
| 48 | |
| 49 | if ( _basicCosts ) |
| 50 | { |
| 51 | delete[] _basicCosts; |
| 52 | _basicCosts = NULL; |
| 53 | } |
| 54 | |
| 55 | if ( _costFunction ) |
| 56 | { |
| 57 | delete[] _costFunction; |
| 58 | _costFunction = NULL; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | void CostFunctionManager::initialize() |
| 63 | { |
nothing calls this directly
no outgoing calls
no test coverage detected