Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Give a p_netcard to simgrid::Host instead of relying on extensions for that
[simgrid.git] / include / simgrid / Host.hpp
index 6e102c2..2810c16 100644 (file)
 namespace simgrid {
 
 XBT_PUBLIC_CLASS Host :
-       public simgrid::xbt::Extendable<Host> {
+public simgrid::xbt::Extendable<Host> {
 
-       public:
-       surf::Cpu *p_cpu;
+public:
+         surf::Cpu     *p_cpu = nullptr;
+         surf::NetCard *p_netcard = nullptr;
 
 private:
-  simgrid::xbt::string name_;
+  simgrid::xbt::string name_ = "noname";
 public:
   Host(std::string const& name);
   ~Host();