- class IBNode{
- public :
- int id;
- //store related links, to ease computation of the penalties
- std::vector<ActiveComm*> ActiveCommsUp;
- //store the number of comms received from each node
- std::map<IBNode*, int> ActiveCommsDown;
- //number of comms the node is receiving
- int nbActiveCommsDown;
- explicit IBNode(int id) : id(id),nbActiveCommsDown(0){};
- ~IBNode(){};
- };
+class IBNode {
+public:
+ int id;
+ // store related links, to ease computation of the penalties
+ std::vector<ActiveComm*> ActiveCommsUp;
+ // store the number of comms received from each node
+ std::map<IBNode*, int> ActiveCommsDown;
+ // number of comms the node is receiving
+ int nbActiveCommsDown;
+ explicit IBNode(int id) : id(id), nbActiveCommsDown(0){};
+ virtual ~IBNode() = default;
+};