| 104 | |
| 105 | |
| 106 | comm::RetCode StoreConfig::GetAllStore(std::vector<shared_ptr<const proto::Store>> &stores) const { |
| 107 | for (auto &&it : impl_->store_id2store) { |
| 108 | stores.push_back(it.second); |
| 109 | } |
| 110 | return comm::RetCode::RET_OK; |
| 111 | } |
| 112 | |
| 113 | comm::RetCode StoreConfig::GetAllStoreID(std::set<int> &store_ids) const { |
| 114 | for (auto &&it : impl_->store_id2store) { |
no outgoing calls