Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / kernel / resource / profile / DatedValue.cpp
1 /* Copyright (c) 2004-2021. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #include "src/kernel/resource/profile/DatedValue.hpp"
7 #include <cmath>
8
9 namespace simgrid {
10 namespace kernel {
11 namespace profile {
12
13 bool DatedValue::operator==(DatedValue const& e2) const
14 {
15   return (fabs(date_ - e2.date_) < 0.0001) && (fabs(value_ - e2.value_) < 0.0001);
16 }
17
18 } // namespace profile
19 } // namespace kernel
20 } // namespace simgrid