Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Convert enum smpi_process_state to enum class.
[simgrid.git] / src / smpi / include / smpi_op.hpp
1 /* Copyright (c) 2009-2018. 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_OP_HPP
8 #define SMPI_OP_HPP
9
10 #include "smpi_info.hpp"
11
12 namespace simgrid{
13 namespace smpi{
14
15 class Op : public F2C{
16   private:
17     MPI_User_function *func_;
18     bool is_commutative_;
19     bool is_fortran_op_;
20   public:
21
22     Op(MPI_User_function * function, bool commutative);
23     bool is_commutative();
24     bool is_fortran_op();
25     void set_fortran_op();
26     void apply(void *invec, void *inoutvec, int *len, MPI_Datatype datatype);
27     static Op* f2c(int id);
28 };
29
30 }
31 }
32
33 #endif