1 /* Copyright (c) 2009-2010, 2012-2017. 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. */
10 #include "smpi/smpi.h"
11 #include "smpi_f2c.hpp"
12 #include <unordered_map>
17 class Info : public F2C{
19 std::unordered_map<std::string, std::string> map_;
24 explicit Info(Info* orig);
27 static void unref(MPI_Info info);
28 void set(char *key, char *value);
29 int get(char *key,int valuelen, char *value, int *flag);
30 int remove(char* key);
31 int get_nkeys(int *nkeys);
32 int get_nthkey(int n, char *key);
33 int get_valuelen(char *key, int *valuelen, int *flag);
34 static Info* f2c(int id);