Logo AND Algorithmique Numérique Distribuée

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