#ifndef SECTORSET_H #define SECTORSET_H class Sector; class SectorSet { private: typedef std::tuple key_t; public: static key_t keyof(int track, int head, int sector) { return std::tuple(track, head, sector); } SectorSet() {}; std::unique_ptr& get(int track, int head, int sector); Sector* get(int track, int head, int sector) const; const std::map>& get() const { return _data; } void calculateSize( unsigned& numTracks, unsigned& numHeads, unsigned& numSectors, unsigned& sectorSize) const; private: std::map> _data; }; #endif