Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SAMPI] Move ampi signals to simgrid::smpi::plugin::ampi
[simgrid.git] / src / smpi / include / smpi_host.hpp
1 /* Copyright (c) 2017-2018. 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 SMPI_HOST_HPP_
7 #define SMPI_HOST_HPP_
8
9 #include "smpi_utils.hpp"
10
11 #include "simgrid/s4u/Host.hpp"
12 #include <string>
13 #include <vector>
14 #include <xbt/Extendable.hpp>
15
16 namespace simgrid {
17 namespace smpi {
18
19 class Host {
20
21   private:
22   std::vector<s_smpi_factor_t> orecv_parsed_values;
23   std::vector<s_smpi_factor_t> osend_parsed_values;
24   std::vector<s_smpi_factor_t> oisend_parsed_values;
25   simgrid::s4u::Host *host = nullptr;
26
27   public:
28   static simgrid::xbt::Extension<simgrid::s4u::Host, Host> EXTENSION_ID;
29
30   explicit Host(simgrid::s4u::Host *ptr);
31   ~Host();
32
33   double orecv(size_t size);
34   double osend(size_t size);
35   double oisend(size_t size);
36 };
37
38 }
39 }
40 #endif