Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Concatenate nested namespaces (sonar).
[simgrid.git] / src / smpi / include / smpi_status.hpp
1 /* Copyright (c) 2009-2022. 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::smpi {
13
14 //Status has to stay in C, as its fields are public.
15 //So status class only defines static methods to handle the C struct.
16 class Status{
17 public:
18 static void empty(MPI_Status * status);
19 static int cancelled (const MPI_Status * status);
20 static void set_cancelled (MPI_Status * status, int flag);
21 static void set_elements(MPI_Status* status, const Datatype*, int count);
22 static int get_count(const MPI_Status* status, const Datatype* datatype);
23 };
24
25 } // namespace simgrid::smpi
26 #endif