diff --git a/ft8/fft.h b/ft8/fft.h index 26c17f24b..af0c9f090 100644 --- a/ft8/fft.h +++ b/ft8/fft.h @@ -49,6 +49,8 @@ public: FFTEngine(); ~FFTEngine(); + FFTEngine(const FFTEngine&) = delete; + FFTEngine& operator=(const FFTEngine&) = delete; private: std::vector> analytic(const std::vector &x); diff --git a/plugins/channelrx/chanalyzer/chanalyzersink.h b/plugins/channelrx/chanalyzer/chanalyzersink.h index 49c2cfc68..8d3fc8086 100644 --- a/plugins/channelrx/chanalyzer/chanalyzersink.h +++ b/plugins/channelrx/chanalyzer/chanalyzersink.h @@ -40,7 +40,9 @@ class ScopeVis; class ChannelAnalyzerSink : public ChannelSampleSink { public: ChannelAnalyzerSink(); - ~ChannelAnalyzerSink(); + ~ChannelAnalyzerSink(); + ChannelAnalyzerSink(const ChannelAnalyzerSink&) = delete; + ChannelAnalyzerSink& operator=(const ChannelAnalyzerSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); @@ -63,6 +65,8 @@ private: public: RRCHelper(int flen); ~RRCHelper(); + RRCHelper(const RRCHelper&) = delete; + RRCHelper& operator=(const RRCHelper&) = delete; void setUseFFT(bool useFFT); void create(float symbolRate, float rolloff, unsigned int samplesPerSymbol, FIRFilterRRC::Normalization normalization); int runFilt(const std::complex & in, std::complex **out); diff --git a/plugins/channelrx/demodadsb/adsbdemodgui.h b/plugins/channelrx/demodadsb/adsbdemodgui.h index 21f78fc8b..8745bc40c 100644 --- a/plugins/channelrx/demodadsb/adsbdemodgui.h +++ b/plugins/channelrx/demodadsb/adsbdemodgui.h @@ -489,6 +489,8 @@ struct Aircraft { m_staticAirTempItem = new QTableWidgetItem(); m_humidityItem = new QTableWidgetItem(); } + Aircraft(const Aircraft&) = delete; + Aircraft& operator=(const Aircraft&) = delete; QString getImage() const; QString getText(const ADSBDemodSettings *settings, bool all=false) const; diff --git a/plugins/channelrx/demodam/amdemodsink.h b/plugins/channelrx/demodam/amdemodsink.h index bc575ec3d..d1e1db192 100644 --- a/plugins/channelrx/demodam/amdemodsink.h +++ b/plugins/channelrx/demodam/amdemodsink.h @@ -38,7 +38,10 @@ class ChannelAPI; class AMDemodSink : public ChannelSampleSink { public: AMDemodSink(); - ~AMDemodSink(); + ~AMDemodSink(); + AMDemodSink(const AMDemodSink&) = delete; + AMDemodSink& operator=(const AMDemodSink&) = delete; + virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channelrx/demodatv/atvdemodsink.h b/plugins/channelrx/demodatv/atvdemodsink.h index b8bb4770e..911f51048 100644 --- a/plugins/channelrx/demodatv/atvdemodsink.h +++ b/plugins/channelrx/demodatv/atvdemodsink.h @@ -39,7 +39,9 @@ class ScopeVis; class ATVDemodSink : public ChannelSampleSink { public: ATVDemodSink(); - ~ATVDemodSink(); + ~ATVDemodSink(); + ATVDemodSink(const ATVDemodSink&) = delete; + ATVDemodSink& operator=(const ATVDemodSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channelrx/demodbfm/bfmdemodsink.h b/plugins/channelrx/demodbfm/bfmdemodsink.h index a10ee7849..67b553609 100644 --- a/plugins/channelrx/demodbfm/bfmdemodsink.h +++ b/plugins/channelrx/demodbfm/bfmdemodsink.h @@ -44,7 +44,9 @@ class BasebandSampleSink; class BFMDemodSink : public ChannelSampleSink { public: BFMDemodSink(); - ~BFMDemodSink(); + ~BFMDemodSink(); + BFMDemodSink(const BFMDemodSink&) = delete; + BFMDemodSink& operator=(const BFMDemodSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channelrx/demoddatv/datvdemodsink.h b/plugins/channelrx/demoddatv/datvdemodsink.h index d4a255421..853bee9cf 100644 --- a/plugins/channelrx/demoddatv/datvdemodsink.h +++ b/plugins/channelrx/demoddatv/datvdemodsink.h @@ -57,7 +57,9 @@ class QLabel; class DATVDemodSink : public ChannelSampleSink { public: DATVDemodSink(); - ~DATVDemodSink(); + ~DATVDemodSink(); + DATVDemodSink(const DATVDemodSink&) = delete; + DATVDemodSink& operator=(const DATVDemodSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channelrx/demoddatv/leansdr/bch.h b/plugins/channelrx/demoddatv/leansdr/bch.h index 1b9cd38e9..afe136d0b 100644 --- a/plugins/channelrx/demoddatv/leansdr/bch.h +++ b/plugins/channelrx/demoddatv/leansdr/bch.h @@ -95,6 +95,8 @@ struct bch_engine : bch_interface delete[] truncpolys; delete[] syndpolys; } + bch_engine(const bch_engine&) = delete; + bch_engine& operator=(const bch_engine&) = delete; // Generate BCH parity bits. diff --git a/plugins/channelrx/demoddatv/leansdr/dsp.h b/plugins/channelrx/demoddatv/leansdr/dsp.h index 77d985cd3..739e8b595 100644 --- a/plugins/channelrx/demoddatv/leansdr/dsp.h +++ b/plugins/channelrx/demoddatv/leansdr/dsp.h @@ -408,6 +408,8 @@ struct fir_filter : runnable ~fir_filter() { delete[] shifted_coeffs; } + fir_filter(const fir_filter&) = delete; + fir_filter& operator=(const fir_filter&) = delete; void run() { @@ -506,6 +508,9 @@ struct fir_resampler : runnable delete[] shifted_coeffs; } + fir_resampler(const fir_resampler&) = delete; + fir_resampler& operator=(const fir_resampler&) = delete; + void run() { if (in.readable() < ncoeffs) diff --git a/plugins/channelrx/demoddatv/leansdr/dvb.h b/plugins/channelrx/demoddatv/leansdr/dvb.h index ed3457cb8..9ef342e95 100644 --- a/plugins/channelrx/demoddatv/leansdr/dvb.h +++ b/plugins/channelrx/demoddatv/leansdr/dvb.h @@ -181,6 +181,8 @@ struct deconvol_sync : runnable delete[] punct; delete[] conv; } + deconvol_sync(const deconvol_sync&) = delete; + deconvol_sync& operator=(const deconvol_sync&) = delete; typedef uint64_t signal_t; typedef uint64_t iq_t; @@ -1749,6 +1751,9 @@ struct viterbi_sync : runnable delete syncs; } + viterbi_sync(const viterbi_sync&) = delete; + viterbi_sync& operator=(const viterbi_sync&) = delete; + TCS *init_map(bool conj, float angle) { // Each constellation has its own pattern for labels. diff --git a/plugins/channelrx/demoddatv/leansdr/dvbs2.h b/plugins/channelrx/demoddatv/leansdr/dvbs2.h index 78865401e..26b6d9ca7 100644 --- a/plugins/channelrx/demoddatv/leansdr/dvbs2.h +++ b/plugins/channelrx/demoddatv/leansdr/dvbs2.h @@ -675,6 +675,9 @@ struct s2_frame_receiver : runnable } } + s2_frame_receiver(const s2_frame_receiver&) = delete; + s2_frame_receiver& operator=(const s2_frame_receiver&) = delete; + enum { FRAME_DETECT, // Looking for PLHEADER FRAME_PROBE, // Aligned with PLHEADER, ready to recover carrier @@ -3136,6 +3139,9 @@ struct s2_fecdec_soft : runnable } } + s2_fecdec_soft(const s2_fecdec_soft&) = delete; + s2_fecdec_soft& operator=(const s2_fecdec_soft&) = delete; + void run() { while (in.readable() >= 1 && diff --git a/plugins/channelrx/demoddatv/leansdr/framework.h b/plugins/channelrx/demoddatv/leansdr/framework.h index e76965359..68dbbeb58 100644 --- a/plugins/channelrx/demoddatv/leansdr/framework.h +++ b/plugins/channelrx/demoddatv/leansdr/framework.h @@ -248,6 +248,9 @@ struct pipebuf : pipebuf_common delete[] buf; } + pipebuf(const pipebuf&) = delete; + pipebuf& operator=(const pipebuf&) = delete; + int sizeofT() { return sizeof(T); } diff --git a/plugins/channelrx/demoddatv/leansdr/hdlc.h b/plugins/channelrx/demoddatv/leansdr/hdlc.h index 065583391..52e448ef5 100644 --- a/plugins/channelrx/demoddatv/leansdr/hdlc.h +++ b/plugins/channelrx/demoddatv/leansdr/hdlc.h @@ -55,6 +55,9 @@ struct hdlc_dec delete[] framebuf; } + hdlc_dec(const hdlc_dec&) = delete; + hdlc_dec& operator=(const hdlc_dec&) = delete; + void reset() { shiftreg = 0; diff --git a/plugins/channelrx/demoddatv/leansdr/ldpc.h b/plugins/channelrx/demoddatv/leansdr/ldpc.h index d81bcb42d..1fc976c60 100644 --- a/plugins/channelrx/demoddatv/leansdr/ldpc.h +++ b/plugins/channelrx/demoddatv/leansdr/ldpc.h @@ -175,6 +175,9 @@ struct ldpc_engine } } + ldpc_engine(const ldpc_engine&) = delete; + ldpc_engine& operator=(const ldpc_engine&) = delete; + void print_node_stats() { int nedges = count_edges(vnodes, k); diff --git a/plugins/channelrx/demoddatv/leansdr/sdr.h b/plugins/channelrx/demoddatv/leansdr/sdr.h index 7ef259f84..ce425ad5b 100644 --- a/plugins/channelrx/demoddatv/leansdr/sdr.h +++ b/plugins/channelrx/demoddatv/leansdr/sdr.h @@ -91,6 +91,9 @@ struct auto_notch : runnable delete[] __slots; } + auto_notch(const auto_notch&) = delete; + auto_notch& operator=(const auto_notch&) = delete; + void run() { while (in.readable() >= fft.size() && out.writable() >= fft.size()) @@ -1052,6 +1055,9 @@ struct fir_sampler : sampler_interface delete[] shifted_coeffs; } + fir_sampler(const fir_sampler&) = delete; + fir_sampler& operator=(const fir_sampler&) = delete; + int readahead() { return ncoeffs - 1; } diff --git a/plugins/channelrx/demoddsd/dsddemodsink.h b/plugins/channelrx/demoddsd/dsddemodsink.h index 533a2fe39..a9b07fc83 100644 --- a/plugins/channelrx/demoddsd/dsddemodsink.h +++ b/plugins/channelrx/demoddsd/dsddemodsink.h @@ -41,7 +41,9 @@ class Feature; class DSDDemodSink : public ChannelSampleSink { public: DSDDemodSink(); - ~DSDDemodSink(); + ~DSDDemodSink(); + DSDDemodSink(const DSDDemodSink&) = delete; + DSDDemodSink& operator=(const DSDDemodSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channelrx/demodft8/ft8demodsink.h b/plugins/channelrx/demodft8/ft8demodsink.h index d5c5e58e4..d54a2bf7f 100644 --- a/plugins/channelrx/demodft8/ft8demodsink.h +++ b/plugins/channelrx/demodft8/ft8demodsink.h @@ -35,7 +35,9 @@ class FT8Buffer; class FT8DemodSink : public ChannelSampleSink { public: FT8DemodSink(); - ~FT8DemodSink(); + ~FT8DemodSink(); + FT8DemodSink(const FT8DemodSink&) = delete; + FT8DemodSink& operator=(const FT8DemodSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp b/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp index e54011d6c..52b140f76 100644 --- a/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp +++ b/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp @@ -601,6 +601,8 @@ QString MeshtasticDemod::buildMeshtasticJsonPacket( rf["signal_db"] = msg.getSingalDb(); rf["noise_db"] = msg.getNoiseDb(); rf["snr_db"] = msg.getSingalDb() - msg.getNoiseDb(); + // Emit the carrier frequency offset in Hz rounded to two decimal places. + rf["cfoHz"] = std::round(msg.getCfoHz() * 100.0) / 100.0; root["rf"] = rf; // LoRa diff --git a/plugins/channelrx/demodmeshtastic/meshtasticdemoddecoder.cpp b/plugins/channelrx/demodmeshtastic/meshtasticdemoddecoder.cpp index 7b7f858f9..a53c4b93d 100644 --- a/plugins/channelrx/demodmeshtastic/meshtasticdemoddecoder.cpp +++ b/plugins/channelrx/demodmeshtastic/meshtasticdemoddecoder.cpp @@ -362,6 +362,8 @@ bool MeshtasticDemodDecoder::handleMessage(const Message& cmd) outputMsg->setSyncWord(msgSyncWord); outputMsg->setSignalDb(msgSignalDb); outputMsg->setNoiseDb(msgNoiseDb); + // Forward this frame's carrier frequency offset to the decode report. + outputMsg->setCfoHz(msg.getCfoHz()); outputMsg->setMsgTimestamp(msgTimestamp); outputMsg->setPacketSize(getPacketLength()); outputMsg->setNbParityBits(getNbParityBits()); diff --git a/plugins/channelrx/demodmeshtastic/meshtasticdemodmsg.h b/plugins/channelrx/demodmeshtastic/meshtasticdemodmsg.h index 36020fb94..0feba34db 100644 --- a/plugins/channelrx/demodmeshtastic/meshtasticdemodmsg.h +++ b/plugins/channelrx/demodmeshtastic/meshtasticdemodmsg.h @@ -40,6 +40,9 @@ namespace MeshtasticDemodMsg unsigned int getSyncWord() const { return m_syncWord; } float getSingalDb() const { return m_signalDb; } float getNoiseDb() const { return m_noiseDb; } + // Access the carrier frequency offset in Hz carried by this message. + double getCfoHz() const { return m_cfoHz; } + void setCfoHz(double cfoHz) { m_cfoHz = cfoHz; } void pushBackSymbol(unsigned short symbol) { m_symbols.push_back(symbol); @@ -93,6 +96,8 @@ namespace MeshtasticDemodMsg unsigned int m_syncWord; float m_signalDb; float m_noiseDb; + // Initialize the carrier frequency offset in Hz for every new message. + double m_cfoHz = 0.0; MsgDecodeSymbols() : //!< create an empty message Message(), @@ -259,6 +264,9 @@ namespace MeshtasticDemodMsg unsigned int getSyncWord() const { return m_syncWord; } float getSingalDb() const { return m_signalDb; } float getNoiseDb() const { return m_noiseDb; } + // Access the carrier frequency offset in Hz carried by this message. + double getCfoHz() const { return m_cfoHz; } + void setCfoHz(double cfoHz) { m_cfoHz = cfoHz; } const QString& getMsgTimestamp() const { return m_msgTimestamp; } unsigned int getPacketSize() const { return m_packetSize; } unsigned int getNbParityBits() const { return m_nbParityBits; } @@ -338,6 +346,8 @@ namespace MeshtasticDemodMsg unsigned int m_syncWord; float m_signalDb; float m_noiseDb; + // Initialize the carrier frequency offset in Hz for every new message. + double m_cfoHz = 0.0; QString m_msgTimestamp; unsigned int m_packetSize; unsigned int m_nbParityBits; diff --git a/plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp b/plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp index 8430e8cd1..f2ae65498 100644 --- a/plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp +++ b/plugins/channelrx/demodmeshtastic/meshtasticdemodsink.cpp @@ -1019,6 +1019,11 @@ int MeshtasticDemodSink::processLoRaFrameSyncStep() m_loRaCFOInt = static_cast(std::floor((m_loRaDownVal - static_cast(m_nbSymbols)) / 2.0)); } + // Convert the carrier frequency offset (CFO) estimate from FFT bins to Hz. + const double cfoHz = + (static_cast(m_loRaCFOInt) + static_cast(m_loRaCFOFrac)) + * static_cast(m_bandwidth) / static_cast(m_nbSymbols); + // Preserve state-machine net ID bin indices for sync word extraction. // The corrLen-based refinement overwrites m_loRaNetIds but may produce // incorrect results when m_loRaNetIdSamp is not fully populated. @@ -1140,6 +1145,8 @@ int MeshtasticDemodSink::processLoRaFrameSyncStep() m_loRaFrameId++; m_decodeMsg = MeshtasticDemodMsg::MsgDecodeSymbols::create(); m_decodeMsg->setFrameId(m_loRaFrameId); + // Attach the measured carrier frequency offset to this frame. + m_decodeMsg->setCfoHz(cfoHz); { // LoRa sync word is encoded across two net-ID chirps. // First chirp (index 0) carries the high nibble, second (index 1) the low nibble. diff --git a/plugins/channelrx/demodssb/ssbdemodsink.h b/plugins/channelrx/demodssb/ssbdemodsink.h index 28ee4c37c..cbe2bc3fe 100644 --- a/plugins/channelrx/demodssb/ssbdemodsink.h +++ b/plugins/channelrx/demodssb/ssbdemodsink.h @@ -37,7 +37,9 @@ class ChannelAPI; class SSBDemodSink : public ChannelSampleSink { public: SSBDemodSink(); - ~SSBDemodSink(); + ~SSBDemodSink(); + SSBDemodSink(const SSBDemodSink&) = delete; + SSBDemodSink& operator=(const SSBDemodSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channelrx/demodwfm/wfmdemodsink.h b/plugins/channelrx/demodwfm/wfmdemodsink.h index 48098408f..38ae5db12 100644 --- a/plugins/channelrx/demodwfm/wfmdemodsink.h +++ b/plugins/channelrx/demodwfm/wfmdemodsink.h @@ -35,7 +35,9 @@ class ChannelAPI; class WFMDemodSink : public ChannelSampleSink { public: WFMDemodSink(); - ~WFMDemodSink(); + ~WFMDemodSink(); + WFMDemodSink(const WFMDemodSink&) = delete; + WFMDemodSink& operator=(const WFMDemodSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channelrx/filesink/filesinksink.h b/plugins/channelrx/filesink/filesinksink.h index 65835ebb7..3399dc70f 100644 --- a/plugins/channelrx/filesink/filesinksink.h +++ b/plugins/channelrx/filesink/filesinksink.h @@ -35,7 +35,9 @@ class SpectrumVis; class FileSinkSink : public ChannelSampleSink { public: FileSinkSink(); - ~FileSinkSink(); + ~FileSinkSink(); + FileSinkSink(const FileSinkSink&) = delete; + FileSinkSink& operator=(const FileSinkSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channelrx/wdsprx/wdsprxsink.h b/plugins/channelrx/wdsprx/wdsprxsink.h index b7f447d00..93ee2fff8 100644 --- a/plugins/channelrx/wdsprx/wdsprxsink.h +++ b/plugins/channelrx/wdsprx/wdsprxsink.h @@ -42,7 +42,9 @@ namespace WDSP { class WDSPRxSink : public ChannelSampleSink { public: WDSPRxSink(); - ~WDSPRxSink(); + ~WDSPRxSink(); + WDSPRxSink(const WDSPRxSink&) = delete; + WDSPRxSink& operator=(const WDSPRxSink&) = delete; virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end); diff --git a/plugins/channeltx/modatv/atvmodsource.h b/plugins/channeltx/modatv/atvmodsource.h index 74e79e42f..4c3b6cb1f 100644 --- a/plugins/channeltx/modatv/atvmodsource.h +++ b/plugins/channeltx/modatv/atvmodsource.h @@ -46,6 +46,9 @@ class ATVModSource : public ChannelSampleSource public: ATVModSource(); ~ATVModSource(); + ATVModSource(const ATVModSource&) = delete; + ATVModSource& operator=(const ATVModSource&) = delete; + virtual void pull(SampleVector::iterator begin, unsigned int nbSamples); virtual void pullOne(Sample& sample); diff --git a/plugins/channeltx/moddatv/dvb-s/dvb-s.h b/plugins/channeltx/moddatv/dvb-s/dvb-s.h index 54cfc906d..e1e5ef38c 100644 --- a/plugins/channeltx/moddatv/dvb-s/dvb-s.h +++ b/plugins/channeltx/moddatv/dvb-s/dvb-s.h @@ -36,6 +36,8 @@ public: DVBS(); ~DVBS(); + DVBS(const DVBS&) = delete; + DVBS& operator=(const DVBS&) = delete; int encode(const uint8_t *ts, uint8_t *iq); void setCodeRate(CodeRate codeRate); diff --git a/plugins/channeltx/udpsource/udpsourcesource.h b/plugins/channeltx/udpsource/udpsourcesource.h index 9fb6443b7..4f6f6c0d4 100644 --- a/plugins/channeltx/udpsource/udpsourcesource.h +++ b/plugins/channeltx/udpsource/udpsourcesource.h @@ -37,6 +37,8 @@ class UDPSourceSource : public ChannelSampleSource { public: UDPSourceSource(); virtual ~UDPSourceSource(); + UDPSourceSource(const UDPSourceSource&) = delete; + UDPSourceSource& operator=(const UDPSourceSource&) = delete; virtual void pull(SampleVector::iterator begin, unsigned int nbSamples); virtual void pullOne(Sample& sample); diff --git a/qrtplib/rtprawpacket.h b/qrtplib/rtprawpacket.h index 82ef6d66b..1fea29e65 100644 --- a/qrtplib/rtprawpacket.h +++ b/qrtplib/rtprawpacket.h @@ -58,6 +58,8 @@ public: */ RTPRawPacket(const uint8_t *data, std::size_t datalen, const RTPAddress& address, RTPTime &recvtime, bool rtp); ~RTPRawPacket(); + RTPRawPacket(const RTPRawPacket&) = delete; + RTPRawPacket& operator=(const RTPRawPacket&) = delete; /** Returns the pointer to the data which is contained in this packet. */ uint8_t *GetData() diff --git a/sdrbase/audio/audionetsink.h b/sdrbase/audio/audionetsink.h index 3e5be2b67..454b4099c 100644 --- a/sdrbase/audio/audionetsink.h +++ b/sdrbase/audio/audionetsink.h @@ -55,6 +55,8 @@ public: AudioNetSink(QObject *parent); //!< without RTP AudioNetSink(QObject *parent, int sampleRate, bool stereo); //!< with RTP ~AudioNetSink(); + AudioNetSink(const AudioNetSink&) = delete; + AudioNetSink& operator=(const AudioNetSink&) = delete; void setDestination(const QString& address, uint16_t port); void addDestination(const QString& address, uint16_t port); diff --git a/sdrbase/channel/remotedatablock.h b/sdrbase/channel/remotedatablock.h index e7f0af27b..38c8a835a 100644 --- a/sdrbase/channel/remotedatablock.h +++ b/sdrbase/channel/remotedatablock.h @@ -29,6 +29,7 @@ #include #include #include +#include #include "dsp/dsptypes.h" #define UDPSINKFEC_UDPSIZE 512 @@ -170,6 +171,15 @@ public: ~RemoteDataFrame() { delete[] m_superBlocks; } + RemoteDataFrame(const RemoteDataFrame&) = delete; + RemoteDataFrame& operator=(const RemoteDataFrame&) = delete; + RemoteDataFrame(RemoteDataFrame&& other) : + m_txControlBlock(std::move(other.m_txControlBlock)), + m_rxControlBlock(std::move(other.m_rxControlBlock)), + m_superBlocks(other.m_superBlocks) + { + other.m_superBlocks = nullptr; + } RemoteTxControlBlock m_txControlBlock; RemoteRxControlBlock m_rxControlBlock; RemoteSuperBlock *m_superBlocks; diff --git a/sdrbase/device/deviceset.h b/sdrbase/device/deviceset.h index 09596a252..074d09f71 100644 --- a/sdrbase/device/deviceset.h +++ b/sdrbase/device/deviceset.h @@ -56,6 +56,8 @@ public: DeviceSet(int tabIndex, int deviceType); ~DeviceSet(); + DeviceSet(const DeviceSet&) = delete; + DeviceSet& operator=(const DeviceSet&) = delete; int getNumberOfChannels() const { return m_channelInstanceRegistrations.size(); } int getIndex() const { return m_deviceTabIndex; } diff --git a/sdrbase/dsp/afsquelch.h b/sdrbase/dsp/afsquelch.h index 59c88ca66..894e2a438 100644 --- a/sdrbase/dsp/afsquelch.h +++ b/sdrbase/dsp/afsquelch.h @@ -27,8 +27,10 @@ class SDRBASE_API AFSquelch { public: // constructor with default values - AFSquelch(); + AFSquelch(); virtual ~AFSquelch(); + AFSquelch(const AFSquelch&) = delete; + AFSquelch& operator=(const AFSquelch&) = delete; // setup the basic parameters and coefficients void setCoefficients( diff --git a/sdrbase/dsp/ctcssdetector.h b/sdrbase/dsp/ctcssdetector.h index d2304c0bf..a4510d99b 100644 --- a/sdrbase/dsp/ctcssdetector.h +++ b/sdrbase/dsp/ctcssdetector.h @@ -32,6 +32,8 @@ class SDRBASE_API CTCSSDetector { public: CTCSSDetector(); virtual ~CTCSSDetector(); + CTCSSDetector(const CTCSSDetector&) = delete; + CTCSSDetector& operator=(const CTCSSDetector&) = delete; // setup the basic parameters and coefficients void setCoefficients( diff --git a/sdrbase/dsp/downchannelizer.h b/sdrbase/dsp/downchannelizer.h index 5072f60dd..496e6a7ae 100644 --- a/sdrbase/dsp/downchannelizer.h +++ b/sdrbase/dsp/downchannelizer.h @@ -66,6 +66,8 @@ protected: FilterStage(Mode mode); ~FilterStage(); + FilterStage(const FilterStage&) = delete; + FilterStage& operator=(const FilterStage&) = delete; bool work(Sample* sample) { diff --git a/sdrbase/dsp/fftfilt.h b/sdrbase/dsp/fftfilt.h index 09a0901b5..9635d46ba 100644 --- a/sdrbase/dsp/fftfilt.h +++ b/sdrbase/dsp/fftfilt.h @@ -136,6 +136,8 @@ public: typedef std::complex cmplx; sfft(int len); ~sfft(); + sfft(const sfft&) = delete; + sfft& operator=(const sfft&) = delete; void run(const cmplx& input); void fetch(float *result); private: diff --git a/sdrbase/dsp/fftnr.h b/sdrbase/dsp/fftnr.h index d11f5c408..0fb18ea39 100644 --- a/sdrbase/dsp/fftnr.h +++ b/sdrbase/dsp/fftnr.h @@ -35,6 +35,8 @@ public: FFTNoiseReduction(int len); ~FFTNoiseReduction(); + FFTNoiseReduction(const FFTNoiseReduction&) = delete; + FFTNoiseReduction& operator=(const FFTNoiseReduction&) = delete; void init(); //!< call before start of initial FFT scan void push(cmplx data, int index); //!< Push FFT bin during initial FFT scan diff --git a/sdrbase/dsp/iirfilter.h b/sdrbase/dsp/iirfilter.h index 8734a6592..5164c2420 100644 --- a/sdrbase/dsp/iirfilter.h +++ b/sdrbase/dsp/iirfilter.h @@ -31,6 +31,8 @@ template class IIRFilter public: IIRFilter(const Type *a, const Type *b); ~IIRFilter(); + IIRFilter(const IIRFilter&) = delete; + IIRFilter& operator=(const IIRFilter&) = delete; void setCoeffs(const Type *a, const Type *b); Type run(const Type& sample); @@ -46,6 +48,8 @@ template class IIRFilter public: IIRFilter(const Type *a, const Type *b); ~IIRFilter(); + IIRFilter(const IIRFilter&) = delete; + IIRFilter& operator=(const IIRFilter&) = delete; void setCoeffs(const Type *a, const Type *b); Type run(const Type& sample); diff --git a/sdrbase/dsp/upchannelizer.h b/sdrbase/dsp/upchannelizer.h index d637a15df..ab04e82ca 100644 --- a/sdrbase/dsp/upchannelizer.h +++ b/sdrbase/dsp/upchannelizer.h @@ -67,6 +67,8 @@ protected: FilterStage(Mode mode); ~FilterStage(); + FilterStage(const FilterStage&) = delete; + FilterStage& operator=(const FilterStage&) = delete; bool work(Sample* sampleIn, Sample *sampleOut) { return (m_filter->*m_workFunction)(sampleIn, sampleOut); diff --git a/sdrbase/util/doublebufferfifo.h b/sdrbase/util/doublebufferfifo.h index d4a68faf2..5cf59df9d 100644 --- a/sdrbase/util/doublebufferfifo.h +++ b/sdrbase/util/doublebufferfifo.h @@ -35,6 +35,9 @@ public: delete[] m_data; } + DoubleBufferFIFO(const DoubleBufferFIFO&) = delete; + DoubleBufferFIFO& operator=(const DoubleBufferFIFO&) = delete; + void resize(int size) { delete[] m_data; diff --git a/sdrbase/util/udpsinkutil.h b/sdrbase/util/udpsinkutil.h index aedbc2bc0..0648813cd 100644 --- a/sdrbase/util/udpsinkutil.h +++ b/sdrbase/util/udpsinkutil.h @@ -68,6 +68,9 @@ public: delete m_socket; } + UDPSinkUtil(const UDPSinkUtil&) = delete; + UDPSinkUtil& operator=(const UDPSinkUtil&) = delete; + void moveToThread(QThread *thread) { m_socket->moveToThread(thread); diff --git a/sdrgui/gui/tvscreenanalog.h b/sdrgui/gui/tvscreenanalog.h index a9ced2117..357bd824d 100644 --- a/sdrgui/gui/tvscreenanalog.h +++ b/sdrgui/gui/tvscreenanalog.h @@ -62,6 +62,9 @@ public: delete[] m_outOfBoundsLine; } + TVScreenAnalogBuffer(const TVScreenAnalogBuffer&) = delete; + TVScreenAnalogBuffer& operator=(const TVScreenAnalogBuffer&) = delete; + int getWidth() { return m_width; diff --git a/wdsp/unit.hpp b/wdsp/unit.hpp index a60844ddc..144c6f938 100644 --- a/wdsp/unit.hpp +++ b/wdsp/unit.hpp @@ -50,6 +50,9 @@ public: int _dsp_size // number complex samples processed per buffer in mainstream dsp processing ); ~Unit(); + Unit(const Unit&) = delete; + Unit& operator=(const Unit&) = delete; + void flushBuffers(); void setBuffersInputSamplerate(int _in_rate);