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

Method GetAllSub

phxqueue/config/topicconfig.cpp:273–280  ·  view source on GitHub ↗

sub ********************/

Source from the content-addressed store, hash-verified

271
272/******************* sub ********************/
273comm::RetCode TopicConfig::GetAllSub(vector<shared_ptr<const proto::Sub>> &subs) const {
274 subs.clear();
275
276 for (auto &&it : impl_->sub_id2sub) {
277 subs.push_back(it.second);
278 }
279 return comm::RetCode::RET_OK;
280}
281
282comm::RetCode TopicConfig::GetAllSubID(set<int> &sub_ids) const {
283 sub_ids.clear();

Callers 2

CheckTopicConfigMethod · 0.80
TestTopicConfigMethod · 0.80

Calls

no outgoing calls

Tested by 2

CheckTopicConfigMethod · 0.64
TestTopicConfigMethod · 0.64