X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/df0ad90cff845556fb7bb2a6fd6e2c10196f5776..8fb33d38a40ca0d377aa543a401d34309514e542:/src/kernel/lmm/maxmin.hpp diff --git a/src/kernel/lmm/maxmin.hpp b/src/kernel/lmm/maxmin.hpp index 3f7dd3878a..5aef06ad2b 100644 --- a/src/kernel/lmm/maxmin.hpp +++ b/src/kernel/lmm/maxmin.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -313,7 +313,7 @@ public: Constraint* get_constraint(unsigned num) const { return num < cnsts_.size() ? cnsts_[num].constraint : nullptr; } /** - * @brief Get the weigth of the numth constraint associated to the variable + * @brief Get the weight of the numth constraint associated to the variable * @param num The rank of constraint we want to get * @return The numth constraint */ @@ -439,7 +439,7 @@ public: /** @brief Update a constraint bound */ void update_constraint_bound(Constraint * cnst, double bound); - int constraint_used(Constraint* cnst) { return cnst->active_constraint_set_hook_.is_linked(); } + int constraint_used(const Constraint* cnst) const { return cnst->active_constraint_set_hook_.is_linked(); } /** @brief Print the lmm system */ void print() const; @@ -505,8 +505,8 @@ private: */ void update(Constraint * cnst, Variable * var, double value); - void update_modified_set(Constraint * cnst); - void update_modified_set_rec(Constraint * cnst); + void update_modified_set(Constraint* cnst); + void update_modified_set_rec(const Constraint* cnst); /** @brief Remove all constraints of the modified_constraint_set. */ void remove_all_modified_set();