MCPcopy Create free account
hub / github.com/Tencent/phxqueue / GetFactory

Method GetFactory

phxqueue/comm/handler.h:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

GetHandlerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected