| 23 | ContribAlgorithmFactory::~ContribAlgorithmFactory() {} |
| 24 | |
| 25 | IAlgorithmInterface * |
| 26 | ContribAlgorithmFactory::createAlgorithmInstance(int algorithm_type) { |
| 27 | auto it = func_mp_.find(algorithm_type); |
| 28 | if (it != func_mp_.end()) { |
| 29 | return it->second(); |
| 30 | } |
| 31 | return nullptr; |
| 32 | } |
| 33 | |
| 34 | bool ContribAlgorithmFactory::registerCreator( |
| 35 | int algorithm_type, std::function<IAlgorithmInterface *()> pfunc) { |
no test coverage detected