A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
this static function is now useless
[simgrid.git]
/
src
/
smpi
/
smpi_info.cpp
diff --git
a/src/smpi/smpi_info.cpp
b/src/smpi/smpi_info.cpp
index
0171e11
..
9690b78
100644
(file)
--- a/
src/smpi/smpi_info.cpp
+++ b/
src/smpi/smpi_info.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-201
5
. The SimGrid Team.
+/* Copyright (c) 2007-201
7
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-11,8
+11,6
@@
namespace simgrid{
namespace smpi{
namespace simgrid{
namespace smpi{
-MPI_Info Info::null_id_=MPI_INFO_NULL;
-
Info::Info():refcount_(1){
dict_= xbt_dict_new_homogeneous(xbt_free_f);
}
Info::Info():refcount_(1){
dict_= xbt_dict_new_homogeneous(xbt_free_f);
}
@@
-31,8
+29,8
@@
Info::~Info(){
xbt_dict_free(&dict_);
}
xbt_dict_free(&dict_);
}
-void Info::ref(
Info* info
){
-
info->
refcount_++;
+void Info::ref(){
+ refcount_++;
}
void Info::unref(Info* info){
}
void Info::unref(Info* info){
@@
-93,7
+91,7
@@
int Info::get_nthkey(int n, char *key){
int Info::get_valuelen(char *key, int *valuelen, int *flag){
*flag=false;
int Info::get_valuelen(char *key, int *valuelen, int *flag){
*flag=false;
- char* tmpvalue=
(char*)xbt_dict_get_or_null(dict_, key
);
+ char* tmpvalue=
static_cast<char*>(xbt_dict_get_or_null(dict_, key)
);
if(tmpvalue){
*valuelen=strlen(tmpvalue);
*flag=true;
if(tmpvalue){
*valuelen=strlen(tmpvalue);
*flag=true;
@@
-101,6
+99,10
@@
int Info::get_valuelen(char *key, int *valuelen, int *flag){
return MPI_SUCCESS;
}
return MPI_SUCCESS;
}
+Info* Info::f2c(int id){
+ return static_cast<Info*>(F2C::f2c(id));
+}
+
}
}
}
}