forked from Archive/PX4-Autopilot
mixer: delete copy constructors and operators
This commit is contained in:
parent
a172858db2
commit
011186b8a5
|
@ -72,6 +72,12 @@ public:
|
|||
HelicopterMixer(ControlCallback control_cb, uintptr_t cb_handle, mixer_heli_s *mixer_info);
|
||||
virtual ~HelicopterMixer() = default;
|
||||
|
||||
// no copy, assignment, move, move assignment
|
||||
HelicopterMixer(const HelicopterMixer &) = delete;
|
||||
HelicopterMixer &operator=(const HelicopterMixer &) = delete;
|
||||
HelicopterMixer(HelicopterMixer &&) = delete;
|
||||
HelicopterMixer &operator=(HelicopterMixer &&) = delete;
|
||||
|
||||
/**
|
||||
* Factory method.
|
||||
*
|
||||
|
|
|
@ -77,6 +77,12 @@ public:
|
|||
Mixer(ControlCallback control_cb, uintptr_t cb_handle);
|
||||
virtual ~Mixer() = default;
|
||||
|
||||
// no copy, assignment, move, move assignment
|
||||
Mixer(const Mixer &) = delete;
|
||||
Mixer &operator=(const Mixer &) = delete;
|
||||
Mixer(Mixer &&) = delete;
|
||||
Mixer &operator=(Mixer &&) = delete;
|
||||
|
||||
/**
|
||||
* Perform the mixing function.
|
||||
*
|
||||
|
|
|
@ -43,6 +43,12 @@ public:
|
|||
MixerGroup(ControlCallback control_cb, uintptr_t cb_handle);
|
||||
virtual ~MixerGroup();
|
||||
|
||||
// no copy, assignment, move, move assignment
|
||||
MixerGroup(const MixerGroup &) = delete;
|
||||
MixerGroup &operator=(const MixerGroup &) = delete;
|
||||
MixerGroup(MixerGroup &&) = delete;
|
||||
MixerGroup &operator=(MixerGroup &&) = delete;
|
||||
|
||||
unsigned mix(float *outputs, unsigned space) override;
|
||||
uint16_t get_saturation_status() override;
|
||||
void groups_required(uint32_t &groups) override;
|
||||
|
|
|
@ -96,6 +96,12 @@ public:
|
|||
MultirotorMixer(ControlCallback control_cb, uintptr_t cb_handle, Rotor *rotors, unsigned rotor_count);
|
||||
virtual ~MultirotorMixer();
|
||||
|
||||
// no copy, assignment, move, move assignment
|
||||
MultirotorMixer(const MultirotorMixer &) = delete;
|
||||
MultirotorMixer &operator=(const MultirotorMixer &) = delete;
|
||||
MultirotorMixer(MultirotorMixer &&) = delete;
|
||||
MultirotorMixer &operator=(MultirotorMixer &&) = delete;
|
||||
|
||||
/**
|
||||
* Factory method.
|
||||
*
|
||||
|
|
|
@ -44,6 +44,12 @@ public:
|
|||
NullMixer();
|
||||
virtual ~NullMixer() = default;
|
||||
|
||||
// no copy, assignment, move, move assignment
|
||||
NullMixer(const NullMixer &) = delete;
|
||||
NullMixer &operator=(const NullMixer &) = delete;
|
||||
NullMixer(NullMixer &&) = delete;
|
||||
NullMixer &operator=(NullMixer &&) = delete;
|
||||
|
||||
/**
|
||||
* Factory method.
|
||||
*
|
||||
|
|
|
@ -67,6 +67,12 @@ public:
|
|||
SimpleMixer(ControlCallback control_cb, uintptr_t cb_handle, mixer_simple_s *mixinfo);
|
||||
virtual ~SimpleMixer();
|
||||
|
||||
// no copy, assignment, move, move assignment
|
||||
SimpleMixer(const SimpleMixer &) = delete;
|
||||
SimpleMixer &operator=(const SimpleMixer &) = delete;
|
||||
SimpleMixer(SimpleMixer &&) = delete;
|
||||
SimpleMixer &operator=(SimpleMixer &&) = delete;
|
||||
|
||||
/**
|
||||
* Factory method with full external configuration.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue