namespace simgrid {
namespace surf {
- NetworkModel::~NetworkModel()
- {
- delete maxminSystem_;
- delete modifiedSet_;
- }
+ NetworkModel::~NetworkModel() = default;
double NetworkModel::latencyFactor(double /*size*/) {
return sg_latency_factor;
* Resource *
************/
- LinkImpl::LinkImpl(simgrid::surf::NetworkModel* model, const std::string& name, lmm_constraint_t constraint)
+ LinkImpl::LinkImpl(simgrid::surf::NetworkModel* model, const std::string& name, kernel::lmm::Constraint* constraint)
: Resource(model, name, constraint), piface_(this)
{
for (int i = 0; i < llen; i++) {
/* Beware of composite actions: ptasks put links and cpus together */
// extra pb: we cannot dynamic_cast from void*...
- Resource* resource = static_cast<Resource*>(getVariable()->get_constraint(i)->get_id());
+ kernel::model::Resource* resource =
+ static_cast<kernel::model::Resource*>(getVariable()->get_constraint(i)->get_id());
LinkImpl* link = dynamic_cast<LinkImpl*>(resource);
if (link != nullptr)
retlist.push_back(link);