1 /* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #include "src/kernel/resource/profile/DatedValue.hpp"
13 bool DatedValue::operator==(DatedValue const& e2) const
15 return (fabs(date_ - e2.date_) < 0.0001) && (fabs(value_ - e2.value_) < 0.0001);
17 std::ostream& operator<<(std::ostream& out, const DatedValue& e)
19 out << e.date_ << " " << e.value_;
23 } // namespace profile
25 } // namespace simgrid