X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8efe3e99d14122796d6587a1ce290c6d42f25b66..390ee57ed79bf7577c2bce6df6a25aba57ff476e:/src/surf/network_ib.hpp diff --git a/src/surf/network_ib.hpp b/src/surf/network_ib.hpp index b8357fb559..8d1103e6c0 100644 --- a/src/surf/network_ib.hpp +++ b/src/surf/network_ib.hpp @@ -22,7 +22,7 @@ namespace simgrid { IBNode* destination; NetworkAction *action; double init_rate; - ActiveComm() : destination(NULL),action(NULL),init_rate(-1){}; + ActiveComm() : destination(nullptr),action(nullptr),init_rate(-1){}; ~ActiveComm(){}; }; @@ -35,7 +35,7 @@ namespace simgrid { std::map ActiveCommsDown; //number of comms the node is receiving int nbActiveCommsDown; - IBNode(int id) : id(id),nbActiveCommsDown(0){}; + explicit IBNode(int id) : id(id),nbActiveCommsDown(0){}; ~IBNode(){}; }; @@ -45,8 +45,8 @@ namespace simgrid { void computeIBfactors(IBNode *root); public: NetworkIBModel(); - NetworkIBModel(const char *name); - ~NetworkIBModel(); + explicit NetworkIBModel(const char *name); + ~NetworkIBModel() override; void updateIBfactors(NetworkAction *action, IBNode *from, IBNode * to, int remove); xbt_dict_t active_nodes;