| 131 | } |
| 132 | |
| 133 | void BackendRegistry::RegisterMemoryOptimizerStrategy(const BackendId& id, |
| 134 | std::shared_ptr<IMemoryOptimizerStrategy> strategy) |
| 135 | { |
| 136 | if (m_MemoryOptimizerStrategyMap.find(id) != m_MemoryOptimizerStrategyMap.end()) |
| 137 | { |
| 138 | throw InvalidArgumentException( |
| 139 | std::string(id) + " already has an memory optimizer strategy associated with it", |
| 140 | CHECK_LOCATION()); |
| 141 | } |
| 142 | m_MemoryOptimizerStrategyMap[id] = strategy; |
| 143 | } |
| 144 | |
| 145 | void BackendRegistry::DeregisterMemoryOptimizerStrategy(const BackendId &id) |
| 146 | { |
no test coverage detected