-/* Copyright (c) 2010-2020. The SimGrid Team.
+/* Copyright (c) 2010-2023. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include "smpi_f2c.hpp"
#include <smpi/smpi.h>
-
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
class Errhandler: public F2C {
private:
explicit Errhandler(MPI_File_errhandler_fn *function):file_func_(function){};
explicit Errhandler(MPI_Win_errhandler_fn *function):win_func_(function){};
void ref();
+ std::string name() const override {return "MPI_Errhandler";}
void call(MPI_Comm comm, int errorcode) const;
void call(MPI_Win win, int errorcode) const;
void call(MPI_File file, int errorcode) const;
static void unref(Errhandler* errhandler);
static Errhandler* f2c(int id);
};
-}
-}
+} // namespace simgrid::smpi
#endif