Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the property holder does not take a dict in its constructor
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 13 Nov 2016 11:17:46 +0000 (12:17 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 13 Nov 2016 11:17:52 +0000 (12:17 +0100)
src/surf/HostImpl.cpp
src/surf/PropertyHolder.cpp
src/surf/PropertyHolder.hpp
src/surf/network_interface.cpp
src/surf/storage_interface.cpp

index f745663..576c6bd 100644 (file)
@@ -98,7 +98,7 @@ Action* HostModel::executeParallelTask(int host_nb, simgrid::s4u::Host** host_li
 /************
  * Resource *
  ************/
-HostImpl::HostImpl(s4u::Host* host, xbt_dynar_t storage) : PropertyHolder(nullptr), storage_(storage), piface_(host)
+HostImpl::HostImpl(s4u::Host* host, xbt_dynar_t storage) : storage_(storage), piface_(host)
 {
   piface_->pimpl_ = this;
 }
index b57e536..53f09d5 100644 (file)
@@ -9,10 +9,7 @@
 namespace simgrid {
 namespace surf {
 
-PropertyHolder::PropertyHolder(xbt_dict_t props)
-: properties_(props)
-{
-}
+PropertyHolder::PropertyHolder() = default;
 
 PropertyHolder::~PropertyHolder() {
   xbt_dict_free(&properties_);
index e7da433..ba06640 100644 (file)
@@ -17,7 +17,7 @@ namespace surf {
 class PropertyHolder { // DO NOT DERIVE THIS CLASS, or the diamond inheritance mayhem will get you
 
 public:
-  explicit PropertyHolder(xbt_dict_t props);
+  explicit PropertyHolder();
   ~PropertyHolder();
 
   const char *getProperty(const char*id);
index 89819e1..5a2e56d 100644 (file)
@@ -148,7 +148,7 @@ namespace simgrid {
      ************/
 
     Link::Link(simgrid::surf::NetworkModel* model, const char* name, lmm_constraint_t constraint)
-        : Resource(model, name, constraint), PropertyHolder(nullptr)
+        : Resource(model, name, constraint)
     {
       if (strcmp(name,"__loopback__"))
         xbt_assert(!Link::byName(name), "Link '%s' declared several times in the platform.", name);
index 26fd112..ff31c4c 100644 (file)
@@ -53,7 +53,6 @@ Storage::Storage(Model* model, const char* name, lmm_system_t maxminSystem, doub
                  double bconnection, const char* type_id, const char* content_name, const char* content_type,
                  sg_size_t size, const char* attach)
     : Resource(model, name, lmm_constraint_new(maxminSystem, this, bconnection))
-    , PropertyHolder(nullptr)
     , contentType_(xbt_strdup(content_type))
     , size_(size)
     , usedSize_(0)