| 86 | public: |
| 87 | FactoryList() {} |
| 88 | ~FactoryList() { |
| 89 | typename FList::iterator it; |
| 90 | for (it = list_.begin(); list_.end() != it; ++it) { |
| 91 | delete it->second, it->second = nullptr; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | void AddFactory(int handle_id, F *factory) { |
| 96 | list_.push_back(std::make_pair(handle_id, factory)); |
nothing calls this directly
no outgoing calls
no test coverage detected