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

Method GetAllPub

phxqueue/config/topicconfig.cpp:224–231  ·  view source on GitHub ↗

pub ********************/

Source from the content-addressed store, hash-verified

222
223/******************* pub ********************/
224comm::RetCode TopicConfig::GetAllPub(vector<shared_ptr<const proto::Pub>> &pubs) const {
225 pubs.clear();
226
227 for (auto &&it : impl_->pub_id2pub) {
228 pubs.push_back(it.second);
229 }
230 return comm::RetCode::RET_OK;
231}
232
233comm::RetCode TopicConfig::GetAllPubID(set<int> &pub_ids) const {
234 pub_ids.clear();

Callers 2

CheckTopicConfigMethod · 0.80
TestTopicConfigMethod · 0.80

Calls

no outgoing calls

Tested by 2

CheckTopicConfigMethod · 0.64
TestTopicConfigMethod · 0.64