#include "src/surf/AsCluster.hpp"
namespace simgrid {
- namespace surf {
+ namespace routing {
class XBT_PRIVATE DragonflyRouter {
unsigned int group_;
unsigned int chassis_;
unsigned int blade_;
- Link** blueLinks_=NULL;
- Link** blackLinks_=NULL;
- Link** greenLinks_=NULL;
- Link** myNodes_=NULL;
+ surf::Link** blueLinks_=nullptr;
+ surf::Link** blackLinks_=nullptr;
+ surf::Link** greenLinks_=nullptr;
+ surf::Link** myNodes_=nullptr;
DragonflyRouter(int i, int j, int k);
~DragonflyRouter();
};
* is also not realistic, as blue level can use more links than a single
* Aries can handle, thus it should use several routers.
*/
-class XBT_PRIVATE AsClusterDragonfly:public simgrid::surf::AsCluster {
+class XBT_PRIVATE AsClusterDragonfly
+ : public AsCluster {
public:
explicit AsClusterDragonfly(const char*name);
~AsClusterDragonfly() override;
unsigned int numLinksBlack_ = 0;
unsigned int numLinksBlue_ = 0;
unsigned int numLinksperLink_ = 1; //fullduplex -> 2, only for local link
- DragonflyRouter** routers_=NULL;
+ DragonflyRouter** routers_=nullptr;
};
}}