Bug fixes + tabbing
[iotcloud.git] / version2 / src / C / ArbitrationRound.h
index da1a2a8a2186e14e8b033401e9f250bee636bd3e..ba4ed86f1a201bab71559af15a33c01b63d473b9 100644 (file)
@@ -1,33 +1,34 @@
 #ifndef ARBITRATIONROUND_H
 #define ARBITRATIONROUND_H
 
-#define MAX_PARTS 10
+#define ArbitrationRound_MAX_PARTS 10
 #include "common.h"
 
 class ArbitrationRound {
- private:
-  Hashset<Abort *> * abortsBefore;
-  Vector<Entry *> * parts;
-  Commit * commit;
-  int currentSize;
-  bool didSendPart;
-  bool didGenerateParts;
+private:
+       Hashset<Abort *> *abortsBefore;
+       Vector<Entry *> *parts;
+       Commit *commit;
+       int currentSize;
+       bool didSendPart;
+       bool didGenerateParts;
 
- public:
-  ArbitrationRound(Commit * _commit, Hashset<Abort *> * _abortsBefore);
+public:
+       ArbitrationRound(Commit *_commit, Hashset<Abort *> *_abortsBefore);
        ~ArbitrationRound();
-  void generateParts();
-  Vector<Entry *> * getParts();
-  void removeParts(Vector<Entry *> * removeParts);
-  bool isDoneSending();
-  void setCommit(Commit * _commit);
-  void addAbort(Abort * abort);
-  void addAborts(Hashset<Abort *> * aborts);
-  Hashset<Abort *> * getAborts();
-  int getAbortsCount();
-  int getCurrentSize();
-  bool isFull();
-  bool getDidSendPart();
+       void generateParts();
+       Commit *getCommit();
+       Vector<Entry *> *getParts();
+       void removeParts(Vector<Entry *> *removeParts);
+       bool isDoneSending();
+       void setCommit(Commit *_commit);
+       void addAbort(Abort *abort);
+       void addAborts(Hashset<Abort *> *aborts);
+       Hashset<Abort *> *getAborts();
+       int getAbortsCount();
+       int getCurrentSize();
+       bool isFull();
+       bool getDidSendPart();
 };
 
 #endif