File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ namespace Partitioning {
4040template <typename T>
4141class PartitionState {
4242 public:
43+ virtual ~PartitionState () = default ;
44+
4345 virtual shared<Record<T>> getRecord (CXXGraph::id_t x) = 0;
4446 virtual int getMachineLoad (const int m) const = 0;
4547 virtual int getMachineWeight (const int m) const = 0;
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ namespace Partitioning {
3939template <typename T>
4040class PartitionStrategy {
4141 public:
42+ virtual ~PartitionStrategy () = default ;
43+
4244 virtual void performStep (shared<const Edge<T>> t,
4345 shared<PartitionState<T>> Sstate) = 0;
4446};
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ namespace Partitioning {
2929template <typename T>
3030class Record {
3131 public:
32+ virtual ~Record () = default ;
33+
3234 virtual const std::set<int > &getPartitions () const = 0;
3335 virtual void addPartition (const int m) = 0;
3436 virtual bool hasReplicaInPartition (const int m) const = 0;
@@ -41,4 +43,4 @@ class Record {
4143} // namespace Partitioning
4244} // namespace CXXGraph
4345
44- #endif // __CXXGRAPH_PARTITIONING_RECORD_H__
46+ #endif // __CXXGRAPH_PARTITIONING_RECORD_H__
Original file line number Diff line number Diff line change 2525namespace CXXGraph {
2626class Runnable {
2727 public:
28+ virtual ~Runnable () = default ;
29+
2830 virtual void run () = 0;
2931};
3032} // namespace CXXGraph
You can’t perform that action at this time.
0 commit comments