BlockMap.h 319 B

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