Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
various cleanups in actors/processes
[simgrid.git] / src / smpi / smpi_op.hpp
index 1e3c127..167a346 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009-2010, 2012-2014. The SimGrid Team.
+/* Copyright (c) 2009-2010, 2012-2017. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -7,24 +7,24 @@
 #ifndef SMPI_OP_HPP
 #define SMPI_OP_HPP
 
-#include <xbt/base.h>
-
-#include "private.h"
+#include "src/smpi/smpi_info.hpp"
 
 namespace simgrid{
 namespace smpi{
 
-class Op {
+class Op : public F2C{
   private:
     MPI_User_function *func_;
     bool is_commutative_;
     bool is_fortran_op_;
   public:
+
     Op(MPI_User_function * function, bool commutative);
     bool is_commutative();
     bool is_fortran_op();
     void set_fortran_op();
     void apply(void *invec, void *inoutvec, int *len, MPI_Datatype datatype);
+    static Op* f2c(int id);
 };
 
 }