| 97 | } |
| 98 | |
| 99 | F *GetFactory(int handle_id) { |
| 100 | typename FList::iterator it; |
| 101 | for (it = list_.begin(); list_.end() != it; ++it) { |
| 102 | if (it->first == handle_id) return it->second; |
| 103 | } |
| 104 | return nullptr; |
| 105 | } |
| 106 | |
| 107 | private: |
| 108 | typedef std::vector<std::pair<int, F *>> FList; |