Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get rid of simdag tracing. was superficial anyway
[simgrid.git] / include / simgrid / s4u / host.hpp
index 10b6bc9..0d1cfb4 100644 (file)
 #include <simgrid/s4u/forward.hpp>
 
 namespace simgrid {
+
+namespace xbt {
+extern template class XBT_PUBLIC() Extendable<simgrid::s4u::Host>;
+}
+
 namespace s4u {
 
 /** @brief Simulated machine that can host some actors
@@ -81,10 +86,8 @@ public:
        /** Get an associative list [mount point]->[Storage] off all local mount points.
         *
         *      This is defined in the platform file, and cannot be modified programatically (yet).
-        *
-        *      Do not change the returned value in any way.
         */
-       boost::unordered_map<std::string, Storage*> &mounted_storages();
+       boost::unordered_map<std::string, Storage*> const &mounted_storages();
 
 private:
        simgrid::xbt::string name_ = "noname";
@@ -93,6 +96,7 @@ private:
 public:
        // FIXME: these should be protected, but it leads to many errors
        // Use the extensions stuff for this? Go through simgrid::surf::Host?
+  // TODO, this could be a unique_ptr
        surf::Cpu     *pimpl_cpu = nullptr;
        surf::NetCard *pimpl_netcard = nullptr;