// Add the peers the tracker gave us to our peer list.
for (auto const& peer_id : answer->getPeers())
if (id != peer_id)
- connected_peers.try_emplace(peer_id, Connection(peer_id));
+ connected_peers.try_emplace(peer_id, peer_id);
} catch (const simgrid::TimeoutException&) {
XBT_DEBUG("Timeout expired when requesting peers to tracker");
return false;
// Check if the peer is in our connection list.
if (remote_peer == nullptr) {
XBT_DEBUG("This peer %d was unknown, answer to its handshake", message->peer_id);
- connected_peers.try_emplace(message->peer_id, Connection(message->peer_id));
+ connected_peers.try_emplace(message->peer_id, message->peer_id);
sendMessage(message->return_mailbox, MessageType::HANDSHAKE, message_size(MessageType::HANDSHAKE));
}
// Send our bitfield to the peer
auto it = values_.find(name);
if (it == values_.end()) {
XBT_DEBUG("new value %s, child of %s", name.c_str(), get_cname());
- values_.try_emplace(name, EntityValue(name, color, this));
+ values_.try_emplace(name, name, color, this);
}
}
insert_link_latency(route->link_list_, e_route->link_list_, lat);
}
- auto elm = route_cache_.try_emplace(src_id, std::vector<unsigned long>());
+ auto elm = route_cache_.try_emplace(src_id);
std::vector<unsigned long>& pred_arr = elm.first->second;
if (elm.second) { /* new element was inserted (not cached mode, or cache miss) */
{
/* add default empty links if nothing was configured by user */
for (auto const& node : get_vertices()) {
- auto route = routes_.try_emplace(node->id(), StarRoute());
+ auto route = routes_.try_emplace(node->id());
if (route.second) {
route.first->second.links_down_set = true;
route.first->second.links_up_set = true;
if (code != nullptr) // When started with smpirun, we will not execute a function
simgrid::s4u::Engine::get_instance()->register_function(name, code);
- smpi_instances.try_emplace(name, Instance(num_processes));
+ smpi_instances.try_emplace(name, num_processes);
}
void smpi_deployment_register_process(const std::string& instance_id, int rank, const simgrid::s4u::Actor* actor)
{
void* mem;
smpi_source_location loc(file, line);
- auto res = allocs.try_emplace(loc, shared_data_t());
+ auto res = allocs.try_emplace(loc);
auto data = res.first;
if (res.second) {
// The new element was inserted.
{
static int id = 0;
auto* ibModel = static_cast<NetworkIBModel*>(host.get_netpoint()->get_englobing_zone()->get_network_model().get());
- ibModel->active_nodes.try_emplace(host.get_name(), IBNode(id));
+ ibModel->active_nodes.try_emplace(host.get_name(), id);
id++;
}