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

Method GetAllTopicID

phxqueue/config/globalconfig.cpp:163–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163comm::RetCode GlobalConfig::GetAllTopicID(set<int> &topic_ids) const {
164 topic_ids.clear();
165 for (auto &&it : impl_->topic_id2topic_config) {
166 topic_ids.insert(it.first);
167 }
168 return comm::RetCode::RET_OK;
169}
170
171comm::RetCode GlobalConfig::GetTopicIDByHandleID(const int handle_id, int &topic_id) const {
172 topic_id = 0;

Callers 5

InitTopicIDMethod · 0.80
ReloadTopicConfigMethod · 0.80
InitTopicIDMethod · 0.80
ProcessMethod · 0.80
InitTopicIDMethod · 0.80

Calls

no outgoing calls

Tested by 1

ProcessMethod · 0.64