| 280 | } |
| 281 | |
| 282 | comm::RetCode TopicConfig::GetAllSubID(set<int> &sub_ids) const { |
| 283 | sub_ids.clear(); |
| 284 | |
| 285 | for (auto &&it : impl_->sub_id2sub) { |
| 286 | sub_ids.insert(it.first); |
| 287 | } |
| 288 | return comm::RetCode::RET_OK; |
| 289 | } |
| 290 | |
| 291 | bool TopicConfig::IsValidSubID(const int sub_id) const { |
| 292 | auto &&it = impl_->sub_id2sub.find(sub_id); |
no outgoing calls