sub ********************/
| 271 | |
| 272 | /******************* sub ********************/ |
| 273 | comm::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 | |
| 282 | comm::RetCode TopicConfig::GetAllSubID(set<int> &sub_ids) const { |
| 283 | sub_ids.clear(); |
no outgoing calls