]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/resource/profile/Profile.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove unused attribute name_ and method set_name()
[simgrid.git] / src / kernel / resource / profile / Profile.hpp
index fdae8c5f9d5cb9f396d9dbfed3d8ff39364a4edf..5aa60588f454a0271140667ebf63dc548d5e585c 100644 (file)
@@ -1,13 +1,15 @@
-/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2020. 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. */
 
-#ifndef PROFILE_HPP
-#define PROFILE_HPP
+#ifndef SIMGRID_KERNEL_PROFILE_HPP
+#define SIMGRID_KERNEL_PROFILE_HPP
 
+#include "simgrid/forward.h"
 #include "src/kernel/resource/profile/DatedValue.hpp"
 #include "src/kernel/resource/profile/FutureEvtSet.hpp"
+
 #include <queue>
 #include <vector>
 
@@ -15,14 +17,6 @@ namespace simgrid {
 namespace kernel {
 namespace profile {
 
-class Event {
-public:
-  Profile* profile;
-  unsigned int idx;
-  resource::Resource* resource;
-  bool free_me;
-};
-
 /** @brief A profile is a set of timed values, encoding the value that a variable takes at what time
  *
  * It is useful to model dynamic platforms, where an external load that makes the resource availability change over
@@ -50,4 +44,7 @@ private:
 } // namespace kernel
 } // namespace simgrid
 
-#endif
\ No newline at end of file
+/** Module finalizer: frees all profiles */
+XBT_PUBLIC void tmgr_finalize();
+
+#endif