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

Method GetAllPubID

phxqueue/config/topicconfig.cpp:233–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233comm::RetCode TopicConfig::GetAllPubID(set<int> &pub_ids) const {
234 pub_ids.clear();
235
236 for (auto &&it : impl_->pub_id2pub) {
237 pub_ids.insert(it.first);
238 }
239 return comm::RetCode::RET_OK;
240}
241
242bool TopicConfig::IsValidPubID(const int pub_id) const {
243 auto &&it = impl_->pub_id2pub.find(pub_id);

Callers 3

CheckTopicConfigMethod · 0.80
TestTopicConfigMethod · 0.80
GetPubIDsByStoreIDFunction · 0.80

Calls

no outgoing calls

Tested by 2

CheckTopicConfigMethod · 0.64
TestTopicConfigMethod · 0.64