1 /* Copyright (c) 2016. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #include "src/kernel/EngineImpl.hpp"
7 #include "src/kernel/routing/NetCard.hpp"
8 #include "src/kernel/routing/NetZoneImpl.hpp"
9 #include <simgrid/s4u/host.hpp>
11 xbt_dict_t netcards_dict;
16 EngineImpl::EngineImpl()
18 netcards_dict = xbt_dict_new_homogeneous([](void* p) {
19 delete static_cast<simgrid::kernel::routing::NetCard*>(p);
22 EngineImpl::~EngineImpl()
25 xbt_dict_free(&netcards_dict);