-/* Copyright (c) 2012, 2014-2017. The SimGrid Team.
+/* Copyright (c) 2012, 2014-2018. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
unsigned int find_node_success = 0; // Number of find_node which have succeeded.
unsigned int find_node_failed = 0; // Number of find_node which have failed.
explicit Node(unsigned int node_id) : id_(node_id), table(new RoutingTable(node_id)), receive_comm(nullptr) {}
+ Node(const Node&) = delete;
+ Node& operator=(const Node&) = delete;
~Node() { delete table; }
unsigned int getId() { return id_; }
-/* Copyright (c) 2012, 2014, 2017. The SimGrid Team.
+/* Copyright (c) 2012, 2014, 2017-2018. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
public:
Bucket** buckets; // Node bucket list - 160 sized.
explicit RoutingTable(unsigned int node_id);
+ RoutingTable(const RoutingTable&) = delete;
+ RoutingTable& operator=(const RoutingTable&) = delete;
~RoutingTable();
void print();
Bucket* findBucket(unsigned int id);