BlockMap.h 316 B

12345678910111213141516171819
  1. #ifndef BLOCKMAP_H
  2. #define BLOCKMAP_H
  3. #include "common/Block.h"
  4. #include "utils/BitArray.h"
  5. #include "utils/List.h"
  6. class BlockMap {
  7. BitArray blocks;
  8. List<Block::Id> map;
  9. public:
  10. BlockMap(int length, Block::Id id);
  11. Block::Id get(int index) const;
  12. void set(int index, Block::Id id);
  13. };
  14. #endif