1 /* Copyright (c) 2009-2023. The SimGrid Team.
2 * All rights reserved. */
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. */
7 #ifndef SMPI_STATUS_HPP
8 #define SMPI_STATUS_HPP
10 #include "smpi/smpi.h"
12 namespace simgrid::smpi {
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.
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);
25 } // namespace simgrid::smpi