X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/fdc3237504c68a8f89faf2c56fa281df7f2bb972..e77b88227729cc003cb8e74b5657886ed61a270f:/neighbor.h 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