Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
constify MPI_Topo*
[simgrid.git] / src / smpi / include / smpi_status.hpp
1 /* Copyright (c) 2009-2019. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SMPI_STATUS_HPP
8 #define SMPI_STATUS_HPP
9
10 #include "smpi/smpi.h"
11
12 namespace simgrid{
13 namespace smpi{
14
15 //Status has to stay in C, as its fields are public.
16 //So status class only defines static methods to handle the C struct.
17 class Status{
18 public:
19 static void empty(MPI_Status * status);
20 static int cancelled (MPI_Status * status);
21 static void set_cancelled (MPI_Status * status, int flag);
22 static void set_elements (MPI_Status * status, MPI_Datatype , int count);
23 static int get_count(MPI_Status * status, MPI_Datatype datatype);
24 };
25
26
27 }
28 }
29 #endif