Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert some C bits into C++ in surf
[simgrid.git] / include / simgrid / Host.hpp
index 2810c16..99494dc 100644 (file)
 #include <xbt/string.hpp>
 #include <xbt/Extendable.hpp>
 
+
 namespace simgrid {
 
 XBT_PUBLIC_CLASS Host :
 public simgrid::xbt::Extendable<Host> {
 
 public:
-         surf::Cpu     *p_cpu = nullptr;
-         surf::NetCard *p_netcard = nullptr;
+       double getSpeed();
+       int getCoreAmount();
 
+       /* FIXME: these should be protected, but it leads to many errors */
+       surf::Cpu     *p_cpu = nullptr;
+       surf::NetCard *p_netcard = nullptr;
 private:
   simgrid::xbt::string name_ = "noname";
 public: