Adding files to initialize, update, and read key-value (to be used together with...
[iotcloud.git] / version2 / src / C / SlotIndexer.h
1 #ifndef SLOTINDEXER_H
2 #define SLOTINDEXER_H
3 #include "common.h"
4 /**
5  * Slot indexer allows slots in both the slot buffer and the new
6  * server response to looked up in a consistent fashion.
7  * @author Brian Demsky
8  * @version 1.0
9  */
10
11 class SlotIndexer {
12 private:
13         Array<Slot *> *updates;
14         SlotBuffer *buffer;
15         int64_t firstslotseqnum;
16
17 public:
18         SlotIndexer(Array<Slot *> *_updates, SlotBuffer *_buffer);
19         Slot *getSlot(int64_t seqnum);
20 };
21 #endif