mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-13 00:25:26 +00:00
Introduces Track::Address, a parallel to Sector::Address to enable more uniform storage.
This commit is contained in:
@@ -22,6 +22,17 @@ namespace Disk {
|
|||||||
*/
|
*/
|
||||||
class Track {
|
class Track {
|
||||||
public:
|
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,
|
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.
|
along with the length of time between the previous event and its occurance.
|
||||||
|
Reference in New Issue
Block a user