/************
* 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;
}
namespace simgrid {
namespace surf {
-PropertyHolder::PropertyHolder(xbt_dict_t props)
-: properties_(props)
-{
-}
+PropertyHolder::PropertyHolder() = default;
PropertyHolder::~PropertyHolder() {
xbt_dict_free(&properties_);
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);
************/
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);
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)