mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Introduces Track::Address, a parallel to Sector::Address to enable more uniform storage.
This commit is contained in:
parent
e3420f62c6
commit
c3e1489a8e
@ -22,6 +22,17 @@ namespace Disk {
|
||||
*/
|
||||
class Track {
|
||||
public:
|
||||
/*!
|
||||
Describes the location of a track, implementing < to allow for use as a set key.
|
||||
*/
|
||||
struct Address {
|
||||
int head, position;
|
||||
|
||||
bool operator < (const Address &rhs) const {
|
||||
return (head < rhs.head) || (position < rhs.position);
|
||||
}
|
||||
};
|
||||
|
||||
/*!
|
||||
Describes a detectable track event — either a flux transition or the passing of the index hole,
|
||||
along with the length of time between the previous event and its occurance.
|
||||
|
Loading…
x
Reference in New Issue
Block a user