Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid unsafe things
[simgrid.git] / src / kernel / EngineImpl.cpp
1 /* Copyright (c) 2016. The SimGrid Team. All rights reserved.               */
2
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. */
5
6 #include "src/kernel/EngineImpl.hpp"
7 #include "src/kernel/routing/NetPoint.hpp"
8 #include "src/kernel/routing/NetZoneImpl.hpp"
9 #include <simgrid/s4u/host.hpp>
10
11 namespace simgrid {
12 namespace kernel {
13
14 EngineImpl::EngineImpl() = default;
15 EngineImpl::~EngineImpl()
16 {
17   delete netRoot_;
18   for (auto kv : netpoints_)
19     delete kv.second;
20 }
21 }
22 }