mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Eliminate Location in favour of Layout.
This commit is contained in:
@@ -10,10 +10,10 @@ Sector::Sector(const LogicalLocation& location):
|
||||
physicalSide(Layout::remapSideLogicalToPhysical(location.logicalSide))
|
||||
{}
|
||||
|
||||
Sector::Sector(const Location& location):
|
||||
LogicalLocation({ location.logicalTrack, location.logicalSide, 0 }),
|
||||
physicalTrack(location.physicalTrack),
|
||||
physicalSide(location.physicalSide)
|
||||
Sector::Sector(std::shared_ptr<const Layout>& layout, unsigned sectorId):
|
||||
LogicalLocation({ layout->logicalTrack, layout->logicalSide, sectorId }),
|
||||
physicalTrack(layout->physicalTrack),
|
||||
physicalSide(layout->physicalSide)
|
||||
{}
|
||||
|
||||
std::string Sector::statusToString(Status status)
|
||||
|
||||
Reference in New Issue
Block a user