Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
extend the example with another type of Zone
[simgrid.git] / include / simgrid / s4u / NetZone.hpp
index a226bfa..778d179 100644 (file)
 #include <xbt/graph.h>
 #include <xbt/signal.hpp>
 
+#include <simgrid/forward.h>
 #include <simgrid/s4u/forward.hpp>
 
 namespace simgrid {
-namespace kernel {
-namespace routing {
-class NetZoneImpl;
-class NetPoint;
-}
-}
-namespace surf {
-class LinkImpl;
-}
 
 namespace s4u {
 
@@ -55,6 +47,7 @@ public:
 
   std::vector<NetZone*>* getChildren();             // Sub netzones
   void getHosts(std::vector<s4u::Host*> * whereto); // retrieve my content as a vector of hosts
+  int getHostCount();
 
   /** Get the properties assigned to a host */
   std::unordered_map<std::string, std::string>* getProperties();