Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
e791d399984f5b9840b0f2bc34461552bd53b1de
[simgrid.git] / src / kernel / routing / BypassRoute.hpp
1 /* Copyright (c) 2013-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 #ifndef KERNEL_ROUTING_BYPASSROUTE_HPP_
7 #define KERNEL_ROUTING_BYPASSROUTE_HPP_
8
9 #include <xbt/base.h>
10 #include <xbt/signal.hpp>
11
12 #include "src/kernel/routing/NetCard.hpp"
13
14 namespace simgrid {
15 namespace kernel {
16 namespace routing {
17
18 class BypassRoute {
19 public:
20   explicit BypassRoute(NetCard* gwSrc, NetCard* gwDst) : gw_src(gwSrc), gw_dst(gwDst) {}
21   const NetCard* gw_src;
22   const NetCard* gw_dst;
23   std::vector<Link*> links;
24 };
25 }
26 }
27 }
28
29 #endif /* KERNEL_ROUTING_BYPASSROUTE_HPP_ */