| 503 | } |
| 504 | |
| 505 | comm::RetCode TopicConfig::GetHandleIDRank(const int handle_id, int &rank) const { |
| 506 | auto &&it = impl_->handle_id2rank.find(handle_id); |
| 507 | if (impl_->handle_id2rank.end() == it) return comm::RetCode::RET_ERR_RANGE_HANDLE; |
| 508 | rank = it->second; |
| 509 | return comm::RetCode::RET_OK; |
| 510 | } |
| 511 | |
| 512 | |
| 513 |
no outgoing calls