| 231 | } |
| 232 | |
| 233 | comm::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 | |
| 242 | bool TopicConfig::IsValidPubID(const int pub_id) const { |
| 243 | auto &&it = impl_->pub_id2pub.find(pub_id); |
no outgoing calls