-/* Copyright (c) 2017-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-2023. 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. */
xbt::Extension<s4u::Host, smpi::Host> Host::EXTENSION_ID;
-double Host::orecv(size_t size, s4u::Host* src, s4u::Host* dst)
+double Host::orecv(size_t size, s4u::Host* src, s4u::Host* dst) const
{
/* return user's callback if available */
if (auto it = cost_cbs.find(SmpiOperation::RECV); it != cost_cbs.end())
return orecv_(size);
}
-double Host::osend(size_t size, s4u::Host* src, s4u::Host* dst)
+double Host::osend(size_t size, s4u::Host* src, s4u::Host* dst) const
{
/* return user's callback if available */
if (auto it = cost_cbs.find(SmpiOperation::SEND); it != cost_cbs.end())
return osend_(size);
}
-double Host::oisend(size_t size, s4u::Host* src, s4u::Host* dst)
+double Host::oisend(size_t size, s4u::Host* src, s4u::Host* dst) const
{
/* return user's callback if available */
if (auto it = cost_cbs.find(SmpiOperation::ISEND); it != cost_cbs.end())