X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/b78d5563826957045678f4c3bcfdcef6c9bfc48d..ffea735548f5d4940dae32d8071a2676f6716ad0:/neighbor.h?ds=inline diff --git a/neighbor.h b/neighbor.h index 9607c07..58f6c1c 100644 --- a/neighbor.h +++ b/neighbor.h @@ -25,6 +25,7 @@ public: // Getter and setter for to_send double get_to_send() const { return to_send; } void set_to_send(double amount) { to_send = amount; } + void add_to_send(double amount) { to_send += amount; } private: const hostdata* host; // pointer to this neighbor's hostdata