Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pass the real pointer to the englobing MC class for the event callback.
[simgrid.git] / src / include / surf / surf.hpp
index fc415ec81ecae75459e7362ae8c6a130877e88fb..d5d1645a727be8cf2a8b7419485ffc58136b8157 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2021. 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. */
@@ -8,27 +8,6 @@
 
 #include "simgrid/forward.h"
 
-/** @ingroup SURF_models
- *  @brief The CPU model object for the physical machine layer
- */
-XBT_PUBLIC_DATA simgrid::surf::CpuModel* surf_cpu_model_pm;
-
-/** @ingroup SURF_models
- *  @brief The CPU model object for the virtual machine layer
- */
-XBT_PUBLIC_DATA simgrid::surf::CpuModel* surf_cpu_model_vm;
-
-XBT_PUBLIC_DATA simgrid::surf::StorageModel* surf_storage_model;
-
-/** @ingroup SURF_models
- *  @brief The host model
- *
- *  Note that when you create an API on top of SURF, the host model should be the only one you use
- *  because depending on the platform model, the network model and the CPU model may not exist.
- */
-XBT_PUBLIC_DATA simgrid::surf::HostModel* surf_host_model;
-
-
 /*** SURF Globals **************************/
 
 /** @ingroup SURF_simulation
@@ -79,6 +58,6 @@ XBT_PUBLIC double surf_get_clock();
 XBT_PUBLIC void surf_exit();
 
 /* surf parse file related (public because called from a test suite) */
-XBT_PUBLIC void parse_platform_file(std::string file);
+XBT_PUBLIC void parse_platform_file(const std::string& file);
 
 #endif