mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-29 12:50:28 +00:00
Merge pull request #1334 from TomHarte/EqualsDefault
Switch to `= default`.
This commit is contained in:
commit
c36288dd6b
@ -23,7 +23,7 @@ namespace Activity {
|
|||||||
*/
|
*/
|
||||||
class Observer {
|
class Observer {
|
||||||
public:
|
public:
|
||||||
virtual ~Observer() {}
|
virtual ~Observer() = default;
|
||||||
|
|
||||||
/// Provides hints as to the sort of information presented on an LED.
|
/// Provides hints as to the sort of information presented on an LED.
|
||||||
enum LEDPresentation: uint8_t {
|
enum LEDPresentation: uint8_t {
|
||||||
|
@ -57,7 +57,7 @@ struct Media {
|
|||||||
*/
|
*/
|
||||||
struct Target {
|
struct Target {
|
||||||
Target(Machine machine) : machine(machine) {}
|
Target(Machine machine) : machine(machine) {}
|
||||||
virtual ~Target() {}
|
virtual ~Target() = default;
|
||||||
|
|
||||||
// This field is entirely optional.
|
// This field is entirely optional.
|
||||||
std::unique_ptr<Reflection::Struct> state;
|
std::unique_ptr<Reflection::Struct> state;
|
||||||
|
@ -30,7 +30,7 @@ class WD1770: public Storage::Disk::MFMController {
|
|||||||
@param p The type of controller to emulate.
|
@param p The type of controller to emulate.
|
||||||
*/
|
*/
|
||||||
WD1770(Personality p);
|
WD1770(Personality p);
|
||||||
virtual ~WD1770() {}
|
virtual ~WD1770() = default;
|
||||||
|
|
||||||
/// Sets the value of the double-density input; when @c is_double_density is @c true, reads and writes double-density format data.
|
/// Sets the value of the double-density input; when @c is_double_density is @c true, reads and writes double-density format data.
|
||||||
using Storage::Disk::MFMController::set_is_double_density;
|
using Storage::Disk::MFMController::set_is_double_density;
|
||||||
|
@ -21,7 +21,7 @@ namespace Intel::i8272 {
|
|||||||
|
|
||||||
class BusHandler {
|
class BusHandler {
|
||||||
public:
|
public:
|
||||||
virtual ~BusHandler() {}
|
virtual ~BusHandler() = default;
|
||||||
virtual void set_dma_data_request([[maybe_unused]] bool drq) {}
|
virtual void set_dma_data_request([[maybe_unused]] bool drq) {}
|
||||||
virtual void set_interrupt([[maybe_unused]] bool irq) {}
|
virtual void set_interrupt([[maybe_unused]] bool irq) {}
|
||||||
};
|
};
|
||||||
|
@ -132,7 +132,7 @@ struct Command {
|
|||||||
CommandContext &context;
|
CommandContext &context;
|
||||||
ModeDescription &mode_description;
|
ModeDescription &mode_description;
|
||||||
Command(CommandContext &context, ModeDescription &mode_description) : context(context), mode_description(mode_description) {}
|
Command(CommandContext &context, ModeDescription &mode_description) : context(context), mode_description(mode_description) {}
|
||||||
virtual ~Command() {}
|
virtual ~Command() = default;
|
||||||
|
|
||||||
/// @returns @c true if all output from this command is done; @c false otherwise.
|
/// @returns @c true if all output from this command is done; @c false otherwise.
|
||||||
virtual bool done() = 0;
|
virtual bool done() = 0;
|
||||||
|
@ -21,8 +21,6 @@ namespace Apple::Clock {
|
|||||||
*/
|
*/
|
||||||
class ClockStorage {
|
class ClockStorage {
|
||||||
public:
|
public:
|
||||||
ClockStorage() {}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Advances the clock by 1 second.
|
Advances the clock by 1 second.
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ namespace Inputs {
|
|||||||
*/
|
*/
|
||||||
class Joystick {
|
class Joystick {
|
||||||
public:
|
public:
|
||||||
virtual ~Joystick() {}
|
virtual ~Joystick() = default;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Defines a single input, any individually-measured thing — a fire button or
|
Defines a single input, any individually-measured thing — a fire button or
|
||||||
|
@ -45,7 +45,7 @@ class Keyboard {
|
|||||||
/// Constructs a Keyboard that declares itself to observe only members of @c observed_keys.
|
/// Constructs a Keyboard that declares itself to observe only members of @c observed_keys.
|
||||||
Keyboard(const std::set<Key> &observed_keys, const std::set<Key> &essential_modifiers);
|
Keyboard(const std::set<Key> &observed_keys, const std::set<Key> &essential_modifiers);
|
||||||
|
|
||||||
virtual ~Keyboard() {}
|
virtual ~Keyboard() = default;
|
||||||
|
|
||||||
// Host interface.
|
// Host interface.
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ struct Instruction {
|
|||||||
|
|
||||||
Instruction(Operation operation, AddressingMode addressing_mode, uint8_t opcode) : operation(operation), addressing_mode(addressing_mode), opcode(opcode) {}
|
Instruction(Operation operation, AddressingMode addressing_mode, uint8_t opcode) : operation(operation), addressing_mode(addressing_mode), opcode(opcode) {}
|
||||||
Instruction(uint8_t opcode) : opcode(opcode) {}
|
Instruction(uint8_t opcode) : opcode(opcode) {}
|
||||||
Instruction() {}
|
Instruction() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -478,7 +478,7 @@ class Preinstruction {
|
|||||||
static constexpr int SizeShift = 0;
|
static constexpr int SizeShift = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
Preinstruction() {}
|
Preinstruction() = default;
|
||||||
|
|
||||||
/// Produces a string description of this instruction; if @c opcode
|
/// Produces a string description of this instruction; if @c opcode
|
||||||
/// is supplied then any quick fields in this instruction will be decoded;
|
/// is supplied then any quick fields in this instruction will be decoded;
|
||||||
|
@ -256,5 +256,3 @@ std::unique_ptr<Machine> Machine::Amiga(const Analyser::Static::Target *target,
|
|||||||
const Target *const amiga_target = dynamic_cast<const Target *>(target);
|
const Target *const amiga_target = dynamic_cast<const Target *>(target);
|
||||||
return std::make_unique<Amiga::ConcreteMachine>(*amiga_target, rom_fetcher);
|
return std::make_unique<Amiga::ConcreteMachine>(*amiga_target, rom_fetcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -17,7 +17,7 @@ namespace Amiga {
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns an Amiga.
|
/// Creates and returns an Amiga.
|
||||||
static std::unique_ptr<Machine> Amiga(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> Amiga(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
@ -62,7 +62,7 @@ template <bool record_bus = false> class Blitter: public DMADevice<4, 4> {
|
|||||||
uint32_t address = 0;
|
uint32_t address = 0;
|
||||||
uint16_t value = 0;
|
uint16_t value = 0;
|
||||||
|
|
||||||
Transaction() {}
|
Transaction() = default;
|
||||||
Transaction(Type type) : type(type) {}
|
Transaction(Type type) : type(type) {}
|
||||||
Transaction(Type type, uint32_t address, uint16_t value) : type(type), address(address), value(value) {}
|
Transaction(Type type, uint32_t address, uint16_t value) : type(type), address(address), value(value) {}
|
||||||
|
|
||||||
|
@ -1293,5 +1293,3 @@ std::unique_ptr<Machine> Machine::AmstradCPC(const Analyser::Static::Target *tar
|
|||||||
case Target::Model::CPC464: return std::make_unique<AmstradCPC::ConcreteMachine<false>>(*cpc_target, rom_fetcher);
|
case Target::Model::CPC464: return std::make_unique<AmstradCPC::ConcreteMachine<false>>(*cpc_target, rom_fetcher);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -22,7 +22,7 @@ namespace AmstradCPC {
|
|||||||
*/
|
*/
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns an Amstrad CPC.
|
/// Creates and returns an Amstrad CPC.
|
||||||
static std::unique_ptr<Machine> AmstradCPC(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> AmstradCPC(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
@ -34,7 +34,7 @@ struct Command {
|
|||||||
uint8_t device = AllDevices;
|
uint8_t device = AllDevices;
|
||||||
uint8_t reg = NoRegister;
|
uint8_t reg = NoRegister;
|
||||||
|
|
||||||
Command() {}
|
Command() = default;
|
||||||
Command(Type type) : type(type) {}
|
Command(Type type) : type(type) {}
|
||||||
Command(Type type, uint8_t device) : type(type), device(device) {}
|
Command(Type type, uint8_t device) : type(type), device(device) {}
|
||||||
Command(Type type, uint8_t device, uint8_t reg) : type(type), device(device), reg(reg) {}
|
Command(Type type, uint8_t device, uint8_t reg) : type(type), device(device), reg(reg) {}
|
||||||
|
@ -1107,5 +1107,3 @@ std::unique_ptr<Machine> Machine::AppleII(const Analyser::Static::Target *target
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -19,7 +19,7 @@ namespace Apple::II {
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns an AppleII.
|
/// Creates and returns an AppleII.
|
||||||
static std::unique_ptr<Machine> AppleII(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> AppleII(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
@ -1013,6 +1013,3 @@ using namespace Apple::IIgs;
|
|||||||
std::unique_ptr<Machine> Machine::AppleIIgs(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher) {
|
std::unique_ptr<Machine> Machine::AppleIIgs(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher) {
|
||||||
return std::make_unique<ConcreteMachine>(*dynamic_cast<const Analyser::Static::AppleIIgs::Target *>(target), rom_fetcher);
|
return std::make_unique<ConcreteMachine>(*dynamic_cast<const Analyser::Static::AppleIIgs::Target *>(target), rom_fetcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ namespace Apple::IIgs {
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns an AppleIIgs.
|
/// Creates and returns an AppleIIgs.
|
||||||
static std::unique_ptr<Machine> AppleIIgs(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> AppleIIgs(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
@ -852,5 +852,3 @@ std::unique_ptr<Machine> Machine::Macintosh(const Analyser::Static::Target *targ
|
|||||||
case Model::MacPlus: return std::make_unique<ConcreteMachine<Model::MacPlus>>(*mac_target, rom_fetcher);
|
case Model::MacPlus: return std::make_unique<ConcreteMachine<Model::MacPlus>>(*mac_target, rom_fetcher);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -17,7 +17,7 @@ namespace Apple::Macintosh {
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns a Macintosh.
|
/// Creates and returns a Macintosh.
|
||||||
static std::unique_ptr<Machine> Macintosh(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> Macintosh(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
@ -216,5 +216,3 @@ std::unique_ptr<Machine> Machine::Atari2600(const Analyser::Static::Target *targ
|
|||||||
const Target *const atari_target = dynamic_cast<const Target *>(target);
|
const Target *const atari_target = dynamic_cast<const Target *>(target);
|
||||||
return std::make_unique<Atari2600::ConcreteMachine>(*atari_target);
|
return std::make_unique<Atari2600::ConcreteMachine>(*atari_target);
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -23,7 +23,7 @@ namespace Atari2600 {
|
|||||||
*/
|
*/
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns an Atari 2600 on the heap.
|
/// Creates and returns an Atari 2600 on the heap.
|
||||||
static std::unique_ptr<Machine> Atari2600(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> Atari2600(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
@ -717,5 +717,3 @@ std::unique_ptr<Machine> Machine::AtariST(const Analyser::Static::Target *target
|
|||||||
|
|
||||||
return std::make_unique<ConcreteMachine>(*atari_target, rom_fetcher);
|
return std::make_unique<ConcreteMachine>(*atari_target, rom_fetcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -19,7 +19,7 @@ namespace Atari::ST {
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
static std::unique_ptr<Machine> AtariST(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> AtariST(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
|
||||||
|
@ -415,5 +415,3 @@ using namespace Coleco::Vision;
|
|||||||
std::unique_ptr<Machine> Machine::ColecoVision(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher) {
|
std::unique_ptr<Machine> Machine::ColecoVision(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher) {
|
||||||
return std::make_unique<ConcreteMachine>(*target, rom_fetcher);
|
return std::make_unique<ConcreteMachine>(*target, rom_fetcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -19,7 +19,7 @@ namespace Coleco::Vision {
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
static std::unique_ptr<Machine> ColecoVision(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> ColecoVision(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
|
||||||
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options> {
|
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options> {
|
||||||
|
@ -73,7 +73,7 @@ namespace Commodore::Serial {
|
|||||||
class Port {
|
class Port {
|
||||||
public:
|
public:
|
||||||
Port() : line_levels_{High, High, High, High, High} {}
|
Port() : line_levels_{High, High, High, High, High} {}
|
||||||
virtual ~Port() {}
|
virtual ~Port() = default;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Sets the current level of an output line on this serial port.
|
Sets the current level of an output line on this serial port.
|
||||||
|
@ -767,5 +767,3 @@ std::unique_ptr<Machine> Machine::Vic20(const Analyser::Static::Target *target,
|
|||||||
const Target *const commodore_target = dynamic_cast<const Target *>(target);
|
const Target *const commodore_target = dynamic_cast<const Target *>(target);
|
||||||
return std::make_unique<Vic20::ConcreteMachine>(*commodore_target, rom_fetcher);
|
return std::make_unique<Vic20::ConcreteMachine>(*commodore_target, rom_fetcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -22,7 +22,7 @@ std::unique_ptr<Reflection::Struct> get_options();
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns a Vic-20.
|
/// Creates and returns a Vic-20.
|
||||||
static std::unique_ptr<Machine> Vic20(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> Vic20(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
@ -20,7 +20,7 @@ namespace Machine {
|
|||||||
the machine's parent class or, therefore, the need to establish a common one.
|
the machine's parent class or, therefore, the need to establish a common one.
|
||||||
*/
|
*/
|
||||||
struct DynamicMachine {
|
struct DynamicMachine {
|
||||||
virtual ~DynamicMachine() {}
|
virtual ~DynamicMachine() = default;
|
||||||
|
|
||||||
virtual Activity::Source *activity_source() = 0;
|
virtual Activity::Source *activity_source() = 0;
|
||||||
virtual Configurable::Device *configurable_device() = 0;
|
virtual Configurable::Device *configurable_device() = 0;
|
||||||
|
@ -796,5 +796,3 @@ std::unique_ptr<Machine> Machine::Electron(const Analyser::Static::Target *targe
|
|||||||
return std::make_unique<Electron::ConcreteMachine<true>>(*acorn_target, rom_fetcher);
|
return std::make_unique<Electron::ConcreteMachine<true>>(*acorn_target, rom_fetcher);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -25,7 +25,7 @@ namespace Electron {
|
|||||||
*/
|
*/
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns an Electron.
|
/// Creates and returns an Electron.
|
||||||
static std::unique_ptr<Machine> Electron(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> Electron(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
@ -768,5 +768,3 @@ std::unique_ptr<Machine> Machine::Enterprise(const Analyser::Static::Target *tar
|
|||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -25,7 +25,7 @@ namespace Enterprise {
|
|||||||
*/
|
*/
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
static std::unique_ptr<Machine> Enterprise(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> Enterprise(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
|
||||||
/// Defines the runtime options available for an Enterprise.
|
/// Defines the runtime options available for an Enterprise.
|
||||||
|
@ -1050,5 +1050,3 @@ std::unique_ptr<Machine> Machine::MSX(const Analyser::Static::Target *target, co
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -19,7 +19,7 @@ namespace MSX {
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
static std::unique_ptr<Machine> MSX(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> MSX(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
|
||||||
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options>, public Configurable::QuickloadOption<Options> {
|
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options>, public Configurable::QuickloadOption<Options> {
|
||||||
|
@ -121,7 +121,7 @@ class PrimarySlot {
|
|||||||
|
|
||||||
class MemorySlotHandler {
|
class MemorySlotHandler {
|
||||||
public:
|
public:
|
||||||
virtual ~MemorySlotHandler() {}
|
virtual ~MemorySlotHandler() = default;
|
||||||
|
|
||||||
/*! Advances time by @c half_cycles. */
|
/*! Advances time by @c half_cycles. */
|
||||||
virtual void run_for([[maybe_unused]] HalfCycles half_cycles) {}
|
virtual void run_for([[maybe_unused]] HalfCycles half_cycles) {}
|
||||||
|
@ -570,5 +570,3 @@ std::unique_ptr<Machine> Machine::MasterSystem(const Analyser::Static::Target *t
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -19,7 +19,7 @@ namespace Sega::MasterSystem {
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
static std::unique_ptr<Machine> MasterSystem(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> MasterSystem(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
|
||||||
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options> {
|
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options> {
|
||||||
|
@ -816,5 +816,3 @@ std::unique_ptr<Machine> Machine::Oric(const Analyser::Static::Target *target_hi
|
|||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -22,7 +22,7 @@ namespace Oric {
|
|||||||
*/
|
*/
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns an Oric.
|
/// Creates and returns an Oric.
|
||||||
static std::unique_ptr<Machine> Oric(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> Oric(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
@ -1208,5 +1208,3 @@ std::unique_ptr<Machine> Machine::PCCompatible(const Analyser::Static::Target *t
|
|||||||
default: return nullptr;
|
default: return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -20,7 +20,7 @@ namespace PCCompatible {
|
|||||||
*/
|
*/
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
|
|
||||||
/// Creates and returns a PC Compatible.
|
/// Creates and returns a PC Compatible.
|
||||||
static std::unique_ptr<Machine> PCCompatible(
|
static std::unique_ptr<Machine> PCCompatible(
|
||||||
|
@ -503,5 +503,3 @@ std::unique_ptr<Machine> Machine::ZX8081(const Analyser::Static::Target *target,
|
|||||||
if(zx_target->is_ZX81) return std::make_unique<ConcreteMachine<true>>(*zx_target, rom_fetcher);
|
if(zx_target->is_ZX81) return std::make_unique<ConcreteMachine<true>>(*zx_target, rom_fetcher);
|
||||||
else return std::make_unique<ConcreteMachine<false>>(*zx_target, rom_fetcher);
|
else return std::make_unique<ConcreteMachine<false>>(*zx_target, rom_fetcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -20,7 +20,7 @@ namespace Sinclair::ZX8081 {
|
|||||||
/// The ZX80/81 machine.
|
/// The ZX80/81 machine.
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
static std::unique_ptr<Machine> ZX8081(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> ZX8081(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
|
||||||
virtual void set_tape_is_playing(bool is_playing) = 0;
|
virtual void set_tape_is_playing(bool is_playing) = 0;
|
||||||
|
@ -1008,5 +1008,3 @@ std::unique_ptr<Machine> Machine::ZXSpectrum(const Analyser::Static::Target *tar
|
|||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Machine::~Machine() {}
|
|
||||||
|
@ -19,7 +19,7 @@ namespace Sinclair::ZXSpectrum {
|
|||||||
|
|
||||||
class Machine {
|
class Machine {
|
||||||
public:
|
public:
|
||||||
virtual ~Machine();
|
virtual ~Machine() = default;
|
||||||
static std::unique_ptr<Machine> ZXSpectrum(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
static std::unique_ptr<Machine> ZXSpectrum(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
||||||
|
|
||||||
virtual void set_tape_is_playing(bool is_playing) = 0;
|
virtual void set_tape_is_playing(bool is_playing) = 0;
|
||||||
|
@ -222,7 +222,7 @@ std::vector<Description> all_descriptions();
|
|||||||
|
|
||||||
struct Request {
|
struct Request {
|
||||||
Request(Name name, bool optional = false);
|
Request(Name name, bool optional = false);
|
||||||
Request() {}
|
Request() = default;
|
||||||
|
|
||||||
/// Forms the request that would be satisfied by @c this plus the right-hand side.
|
/// Forms the request that would be satisfied by @c this plus the right-hand side.
|
||||||
Request operator &&(const Request &);
|
Request operator &&(const Request &);
|
||||||
|
@ -22,7 +22,7 @@ namespace Utility {
|
|||||||
*/
|
*/
|
||||||
class CharacterMapper {
|
class CharacterMapper {
|
||||||
public:
|
public:
|
||||||
virtual ~CharacterMapper() {}
|
virtual ~CharacterMapper() = default;
|
||||||
|
|
||||||
/// @returns The EndSequence-terminated sequence of keys that would cause @c character to be typed.
|
/// @returns The EndSequence-terminated sequence of keys that would cause @c character to be typed.
|
||||||
virtual const uint16_t *sequence_for_character(char character) const = 0;
|
virtual const uint16_t *sequence_for_character(char character) const = 0;
|
||||||
|
@ -20,7 +20,7 @@ namespace CPU {
|
|||||||
/// Provides access to all intermediate parts of a larger int.
|
/// Provides access to all intermediate parts of a larger int.
|
||||||
template <typename Full, typename Half> union alignas(Full) alignas(Half) RegisterPair {
|
template <typename Full, typename Half> union alignas(Full) alignas(Half) RegisterPair {
|
||||||
RegisterPair(Full v) : full(v) {}
|
RegisterPair(Full v) : full(v) {}
|
||||||
RegisterPair() {}
|
RegisterPair() = default;
|
||||||
|
|
||||||
Full full;
|
Full full;
|
||||||
#if TARGET_RT_BIG_ENDIAN
|
#if TARGET_RT_BIG_ENDIAN
|
||||||
|
@ -981,7 +981,7 @@ int main(int argc, char *argv[]) {
|
|||||||
KeyPress(uint32_t timestamp, const char *text) : timestamp(timestamp), input(text) {}
|
KeyPress(uint32_t timestamp, const char *text) : timestamp(timestamp), input(text) {}
|
||||||
KeyPress(uint32_t timestamp, SDL_Scancode scancode, SDL_Keycode keycode, bool is_down, bool repeat) :
|
KeyPress(uint32_t timestamp, SDL_Scancode scancode, SDL_Keycode keycode, bool is_down, bool repeat) :
|
||||||
timestamp(timestamp), scancode(scancode), keycode(keycode), is_down(is_down), repeat(repeat) {}
|
timestamp(timestamp), scancode(scancode), keycode(keycode), is_down(is_down), repeat(repeat) {}
|
||||||
KeyPress() {}
|
KeyPress() = default;
|
||||||
};
|
};
|
||||||
std::vector<KeyPress> keypresses;
|
std::vector<KeyPress> keypresses;
|
||||||
|
|
||||||
|
@ -198,7 +198,7 @@ inline std::array<float, 9> from_rgb_matrix(ColourSpace colour_space) {
|
|||||||
for use of shared memory where available.
|
for use of shared memory where available.
|
||||||
*/
|
*/
|
||||||
struct ScanTarget {
|
struct ScanTarget {
|
||||||
virtual ~ScanTarget() {}
|
virtual ~ScanTarget() = default;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -55,7 +55,7 @@ template <bool stereo> struct SampleT {
|
|||||||
*/
|
*/
|
||||||
class Speaker {
|
class Speaker {
|
||||||
public:
|
public:
|
||||||
virtual ~Speaker() {}
|
virtual ~Speaker() = default;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@returns The best output clock rate for the audio being supplied to this speaker, from the range given.
|
@returns The best output clock rate for the audio being supplied to this speaker, from the range given.
|
||||||
|
@ -17,7 +17,7 @@ class AllRAMProcessor:
|
|||||||
public ::CPU::AllRAMProcessor {
|
public ::CPU::AllRAMProcessor {
|
||||||
public:
|
public:
|
||||||
static AllRAMProcessor *Processor(CPU::MOS6502Esque::Type type, bool has_cias = false);
|
static AllRAMProcessor *Processor(CPU::MOS6502Esque::Type type, bool has_cias = false);
|
||||||
virtual ~AllRAMProcessor() {}
|
virtual ~AllRAMProcessor() = default;
|
||||||
|
|
||||||
virtual void run_for(const Cycles cycles) = 0;
|
virtual void run_for(const Cycles cycles) = 0;
|
||||||
virtual void run_for_instructions(int) = 0;
|
virtual void run_for_instructions(int) = 0;
|
||||||
|
@ -37,7 +37,7 @@ struct Struct {
|
|||||||
return const_cast<Struct *>(this)->get(name);
|
return const_cast<Struct *>(this)->get(name);
|
||||||
}
|
}
|
||||||
virtual std::vector<std::string> values_for(const std::string &name) const = 0;
|
virtual std::vector<std::string> values_for(const std::string &name) const = 0;
|
||||||
virtual ~Struct() {}
|
virtual ~Struct() = default;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@returns A string describing this struct. This string has no guaranteed layout, may not be
|
@returns A string describing this struct. This string has no guaranteed layout, may not be
|
||||||
|
@ -70,9 +70,9 @@ class Cartridge {
|
|||||||
const std::vector<Segment> &get_segments() const {
|
const std::vector<Segment> &get_segments() const {
|
||||||
return segments_;
|
return segments_;
|
||||||
}
|
}
|
||||||
virtual ~Cartridge() {}
|
virtual ~Cartridge() = default;
|
||||||
|
|
||||||
Cartridge() {}
|
Cartridge() = default;
|
||||||
Cartridge(const std::vector<Segment> &segments) : segments_(segments) {}
|
Cartridge(const std::vector<Segment> &segments) : segments_(segments) {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -24,7 +24,7 @@ namespace Storage::Disk {
|
|||||||
*/
|
*/
|
||||||
class Disk {
|
class Disk {
|
||||||
public:
|
public:
|
||||||
virtual ~Disk() {}
|
virtual ~Disk() = default;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@returns the number of discrete positions that this disk uses to model its complete surface area.
|
@returns the number of discrete positions that this disk uses to model its complete surface area.
|
||||||
|
@ -31,7 +31,7 @@ enum class Error {
|
|||||||
*/
|
*/
|
||||||
class DiskImage {
|
class DiskImage {
|
||||||
public:
|
public:
|
||||||
virtual ~DiskImage() {}
|
virtual ~DiskImage() = default;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@returns the distance at which there stops being any further content.
|
@returns the distance at which there stops being any further content.
|
||||||
|
@ -56,7 +56,7 @@ struct Sector {
|
|||||||
};
|
};
|
||||||
Encoding encoding = Encoding::SixAndTwo;
|
Encoding encoding = Encoding::SixAndTwo;
|
||||||
|
|
||||||
Sector() {}
|
Sector() = default;
|
||||||
|
|
||||||
Sector(Sector &&rhs) :
|
Sector(Sector &&rhs) :
|
||||||
address(rhs.address),
|
address(rhs.address),
|
||||||
|
@ -82,7 +82,7 @@ enum class SurfaceItem {
|
|||||||
class MFMEncoder: public Encoder {
|
class MFMEncoder: public Encoder {
|
||||||
public:
|
public:
|
||||||
MFMEncoder(std::vector<bool> &target, std::vector<bool> *fuzzy_target = nullptr) : Encoder(target, fuzzy_target) {}
|
MFMEncoder(std::vector<bool> &target, std::vector<bool> *fuzzy_target = nullptr) : Encoder(target, fuzzy_target) {}
|
||||||
virtual ~MFMEncoder() {}
|
virtual ~MFMEncoder() = default;
|
||||||
|
|
||||||
void add_byte(uint8_t input, uint8_t fuzzy_mask = 0) final {
|
void add_byte(uint8_t input, uint8_t fuzzy_mask = 0) final {
|
||||||
crc_generator_.add(input);
|
crc_generator_.add(input);
|
||||||
|
@ -42,7 +42,7 @@ std::shared_ptr<Storage::Disk::Track> TrackWithSectors(
|
|||||||
class Encoder {
|
class Encoder {
|
||||||
public:
|
public:
|
||||||
Encoder(std::vector<bool> &target, std::vector<bool> *fuzzy_target);
|
Encoder(std::vector<bool> &target, std::vector<bool> *fuzzy_target);
|
||||||
virtual ~Encoder() {}
|
virtual ~Encoder() = default;
|
||||||
virtual void reset_target(std::vector<bool> &target, std::vector<bool> *fuzzy_target = nullptr);
|
virtual void reset_target(std::vector<bool> &target, std::vector<bool> *fuzzy_target = nullptr);
|
||||||
|
|
||||||
virtual void add_byte(uint8_t input, uint8_t fuzzy_mask = 0) = 0;
|
virtual void add_byte(uint8_t input, uint8_t fuzzy_mask = 0) = 0;
|
||||||
|
@ -104,7 +104,7 @@ struct PCMSegment {
|
|||||||
Constructs an instance of PCMSegment where each bit window is 1 unit of time
|
Constructs an instance of PCMSegment where each bit window is 1 unit of time
|
||||||
long and @c data is empty.
|
long and @c data is empty.
|
||||||
*/
|
*/
|
||||||
PCMSegment() {}
|
PCMSegment() = default;
|
||||||
|
|
||||||
/// Empties the PCMSegment.
|
/// Empties the PCMSegment.
|
||||||
void clear() {
|
void clear() {
|
||||||
|
@ -68,7 +68,7 @@ class HeadPosition {
|
|||||||
*/
|
*/
|
||||||
class Track {
|
class Track {
|
||||||
public:
|
public:
|
||||||
virtual ~Track() {}
|
virtual ~Track() = default;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Describes the location of a track, implementing < to allow for use as a set key.
|
Describes the location of a track, implementing < to allow for use as a set key.
|
||||||
|
@ -27,7 +27,7 @@ namespace Storage::MassStorage {
|
|||||||
*/
|
*/
|
||||||
class MassStorageDevice {
|
class MassStorageDevice {
|
||||||
public:
|
public:
|
||||||
virtual ~MassStorageDevice() {}
|
virtual ~MassStorageDevice() = default;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@returns The size of each individual block.
|
@returns The size of each individual block.
|
||||||
|
@ -39,7 +39,7 @@ class Tape {
|
|||||||
Time length;
|
Time length;
|
||||||
|
|
||||||
Pulse(Type type, Time length) : type(type), length(length) {}
|
Pulse(Type type, Time length) : type(type), length(length) {}
|
||||||
Pulse() {}
|
Pulse() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -78,7 +78,7 @@ class Tape {
|
|||||||
*/
|
*/
|
||||||
virtual void seek(Time &time);
|
virtual void seek(Time &time);
|
||||||
|
|
||||||
virtual ~Tape() {};
|
virtual ~Tape() = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint64_t offset_;
|
uint64_t offset_;
|
||||||
@ -98,7 +98,7 @@ class Tape {
|
|||||||
class TapePlayer: public TimedEventLoop, public ClockingHint::Source {
|
class TapePlayer: public TimedEventLoop, public ClockingHint::Source {
|
||||||
public:
|
public:
|
||||||
TapePlayer(int input_clock_rate);
|
TapePlayer(int input_clock_rate);
|
||||||
virtual ~TapePlayer() {}
|
virtual ~TapePlayer() = default;
|
||||||
|
|
||||||
void set_tape(std::shared_ptr<Storage::Tape::Tape> tape);
|
void set_tape(std::shared_ptr<Storage::Tape::Tape> tape);
|
||||||
bool has_tape();
|
bool has_tape();
|
||||||
|
Loading…
Reference in New Issue
Block a user