Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
No need to check for activities_ nullness
[simgrid.git] / src / surf / HostImpl.hpp
index 944844b..610068b 100644 (file)
@@ -13,9 +13,7 @@
 
 #include <vector>
 
-namespace simgrid {
-namespace kernel {
-namespace resource {
+namespace simgrid::kernel::resource {
 /*********
  * Model *
  *********/
@@ -67,6 +65,7 @@ public:
   std::vector<s4u::Disk*> get_disks() const;
   s4u::Disk* create_disk(const std::string& name, double read_bandwidth, double write_bandwidth);
   s4u::VirtualMachine* create_vm(const std::string& name, int core_amount, size_t ramsize = 1024);
+  s4u::VirtualMachine* create_vm(const std::string& name, s4u::VirtualMachine* vm);
   void destroy_vm(const std::string& name);
   void add_disk(const s4u::Disk* disk);
   void remove_disk(const std::string& name);
@@ -103,8 +102,6 @@ public:
       function(actor);
   }
 };
-} // namespace resource
-} // namespace kernel
-} // namespace simgrid
+} // namespace simgrid::kernel::resource
 
 #endif /* HOST_INTERFACE_HPP */