summaryrefslogtreecommitdiff
path: root/gr-fec/lib
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2020-10-30 18:22:33 +0100
committermormj <34754695+mormj@users.noreply.github.com>2020-11-03 14:07:23 -0500
commit0ddc7dbc95ca6fb4c4a62a3c027104d6dd71fc3b (patch)
treeb454053fdc123711f3011b8a703de38e1d783ba3 /gr-fec/lib
parent1cfd6287635e339b313e1826fdfda23f474c91c8 (diff)
modernization: `override` instead of virtual in all compilation units
Diffstat (limited to 'gr-fec/lib')
-rw-r--r--gr-fec/lib/async_decoder_impl.h2
-rw-r--r--gr-fec/lib/async_encoder_impl.h2
-rw-r--r--gr-fec/lib/ber_bf_impl.h4
-rw-r--r--gr-fec/lib/cc_decoder_impl.h20
-rw-r--r--gr-fec/lib/cc_encoder_impl.h12
-rw-r--r--gr-fec/lib/ccsds_encoder_impl.h14
-rw-r--r--gr-fec/lib/conv_bit_corr_bb_impl.h4
-rw-r--r--gr-fec/lib/decoder_impl.h4
-rw-r--r--gr-fec/lib/depuncture_bb_impl.h6
-rw-r--r--gr-fec/lib/dummy_decoder_impl.h16
-rw-r--r--gr-fec/lib/dummy_encoder_impl.h16
-rw-r--r--gr-fec/lib/encoder_impl.h6
-rw-r--r--gr-fec/lib/fec_mtrx_impl.h6
-rw-r--r--gr-fec/lib/ldpc_G_matrix_impl.h12
-rw-r--r--gr-fec/lib/ldpc_H_matrix_impl.h12
-rw-r--r--gr-fec/lib/ldpc_bit_flip_decoder_impl.h12
-rw-r--r--gr-fec/lib/ldpc_encoder_impl.h12
-rw-r--r--gr-fec/lib/ldpc_gen_mtrx_encoder_impl.h12
-rw-r--r--gr-fec/lib/ldpc_par_mtrx_encoder_impl.h12
-rw-r--r--gr-fec/lib/puncture_bb_impl.h6
-rw-r--r--gr-fec/lib/puncture_ff_impl.h6
-rw-r--r--gr-fec/lib/repetition_decoder_impl.h18
-rw-r--r--gr-fec/lib/repetition_encoder_impl.h12
-rw-r--r--gr-fec/lib/tagged_decoder_impl.h4
-rw-r--r--gr-fec/lib/tagged_encoder_impl.h4
25 files changed, 117 insertions, 117 deletions
diff --git a/gr-fec/lib/async_decoder_impl.h b/gr-fec/lib/async_decoder_impl.h
index c7085f076b..38178d4ab8 100644
--- a/gr-fec/lib/async_decoder_impl.h
+++ b/gr-fec/lib/async_decoder_impl.h
@@ -45,7 +45,7 @@ public:
bool packed = false,
bool rev_pack = true,
int mtu = 1500);
- ~async_decoder_impl();
+ ~async_decoder_impl() override;
int general_work(int noutput_items,
gr_vector_int& ninput_items,
diff --git a/gr-fec/lib/async_encoder_impl.h b/gr-fec/lib/async_encoder_impl.h
index 757bcc4f88..0e3e4634be 100644
--- a/gr-fec/lib/async_encoder_impl.h
+++ b/gr-fec/lib/async_encoder_impl.h
@@ -47,7 +47,7 @@ public:
bool rev_unpack = true,
bool rev_pack = true,
int mtu = 1500);
- ~async_encoder_impl();
+ ~async_encoder_impl() override;
int general_work(int noutput_items,
gr_vector_int& ninput_items,
diff --git a/gr-fec/lib/ber_bf_impl.h b/gr-fec/lib/ber_bf_impl.h
index 03488cbca0..2c6c08a419 100644
--- a/gr-fec/lib/ber_bf_impl.h
+++ b/gr-fec/lib/ber_bf_impl.h
@@ -32,14 +32,14 @@ private:
public:
ber_bf_impl(bool d_test_mode = false, int berminerrors = 100, float ber_limit = -7.0);
- ~ber_bf_impl();
+ ~ber_bf_impl() override;
int general_work(int noutput_items,
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
- long total_errors() { return d_total_errors; };
+ long total_errors() override { return d_total_errors; };
};
} /* namespace fec */
diff --git a/gr-fec/lib/cc_decoder_impl.h b/gr-fec/lib/cc_decoder_impl.h
index d7d236da21..ab5ddf14a9 100644
--- a/gr-fec/lib/cc_decoder_impl.h
+++ b/gr-fec/lib/cc_decoder_impl.h
@@ -24,12 +24,12 @@ class FEC_API cc_decoder_impl : public cc_decoder
{
private:
// plug into the generic fec api
- int get_output_size();
- int get_input_size();
- int get_history();
- float get_shift();
- int get_input_item_size();
- const char* get_input_conversion();
+ int get_output_size() override;
+ int get_input_size() override;
+ int get_history() override;
+ float get_shift() override;
+ int get_input_item_size() override;
+ const char* get_input_conversion() override;
// const char* get_output_conversion();
// everything else...
@@ -83,15 +83,15 @@ public:
int end_state = -1,
cc_mode_t mode = CC_STREAMING,
bool padded = false);
- ~cc_decoder_impl();
+ ~cc_decoder_impl() override;
// Disable copy because of the raw pointers.
cc_decoder_impl(const cc_decoder_impl&) = delete;
cc_decoder_impl& operator=(const cc_decoder_impl&) = delete;
- void generic_work(void* inbuffer, void* outbuffer);
- bool set_frame_size(unsigned int frame_size);
- double rate();
+ void generic_work(void* inbuffer, void* outbuffer) override;
+ bool set_frame_size(unsigned int frame_size) override;
+ double rate() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/cc_encoder_impl.h b/gr-fec/lib/cc_encoder_impl.h
index 414ce30a1e..c15e4f1036 100644
--- a/gr-fec/lib/cc_encoder_impl.h
+++ b/gr-fec/lib/cc_encoder_impl.h
@@ -23,9 +23,9 @@ class FEC_API cc_encoder_impl : public cc_encoder
{
private:
// plug into the generic fec api
- void generic_work(void* inbuffer, void* outbuffer);
- int get_output_size();
- int get_input_size();
+ void generic_work(void* inbuffer, void* outbuffer) override;
+ int get_output_size() override;
+ int get_input_size() override;
// everything else...
unsigned char Partab[256];
@@ -51,10 +51,10 @@ public:
int start_state = 0,
cc_mode_t mode = CC_STREAMING,
bool padded = false);
- ~cc_encoder_impl();
+ ~cc_encoder_impl() override;
- bool set_frame_size(unsigned int frame_size);
- double rate();
+ bool set_frame_size(unsigned int frame_size) override;
+ double rate() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/ccsds_encoder_impl.h b/gr-fec/lib/ccsds_encoder_impl.h
index 4509f391d5..31fca96e54 100644
--- a/gr-fec/lib/ccsds_encoder_impl.h
+++ b/gr-fec/lib/ccsds_encoder_impl.h
@@ -23,10 +23,10 @@ class FEC_API ccsds_encoder_impl : public ccsds_encoder
{
private:
// plug into the generic fec api
- void generic_work(void* inbuffer, void* outbuffer);
- int get_output_size();
- int get_input_size();
- const char* get_input_conversion();
+ void generic_work(void* inbuffer, void* outbuffer) override;
+ int get_output_size() override;
+ int get_input_size() override;
+ const char* get_input_conversion() override;
unsigned int d_max_frame_size;
unsigned int d_frame_size;
@@ -40,10 +40,10 @@ public:
ccsds_encoder_impl(int frame_size,
int start_state = 0,
cc_mode_t mode = CC_STREAMING);
- ~ccsds_encoder_impl();
+ ~ccsds_encoder_impl() override;
- bool set_frame_size(unsigned int frame_size);
- double rate();
+ bool set_frame_size(unsigned int frame_size) override;
+ double rate() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/conv_bit_corr_bb_impl.h b/gr-fec/lib/conv_bit_corr_bb_impl.h
index 3ed2b0d51a..8a72ee59a9 100644
--- a/gr-fec/lib/conv_bit_corr_bb_impl.h
+++ b/gr-fec/lib/conv_bit_corr_bb_impl.h
@@ -71,7 +71,7 @@ public:
int cut,
int flush,
float thresh);
- ~conv_bit_corr_bb_impl();
+ ~conv_bit_corr_bb_impl() override;
void catch_msg(pmt::pmt_t msg);
int general_work(int noutput_items,
@@ -79,7 +79,7 @@ public:
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
- float data_garble_rate(int taps, float target);
+ float data_garble_rate(int taps, float target) override;
};
} /* namespace fec */
diff --git a/gr-fec/lib/decoder_impl.h b/gr-fec/lib/decoder_impl.h
index d1534705e9..9baeb747fe 100644
--- a/gr-fec/lib/decoder_impl.h
+++ b/gr-fec/lib/decoder_impl.h
@@ -32,8 +32,8 @@ public:
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
- int fixed_rate_ninput_to_noutput(int ninput);
- int fixed_rate_noutput_to_ninput(int noutput);
+ int fixed_rate_ninput_to_noutput(int ninput) override;
+ int fixed_rate_noutput_to_ninput(int noutput) override;
void forecast(int noutput_items, gr_vector_int& ninput_items_required) override;
};
diff --git a/gr-fec/lib/depuncture_bb_impl.h b/gr-fec/lib/depuncture_bb_impl.h
index dd10624d51..3ee816ca05 100644
--- a/gr-fec/lib/depuncture_bb_impl.h
+++ b/gr-fec/lib/depuncture_bb_impl.h
@@ -27,14 +27,14 @@ private:
public:
depuncture_bb_impl(int puncsize, int puncpat, int delay = 0, uint8_t symbol = 127);
- ~depuncture_bb_impl();
+ ~depuncture_bb_impl() override;
int general_work(int noutput_items,
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
- int fixed_rate_ninput_to_noutput(int ninput);
- int fixed_rate_noutput_to_ninput(int noutput);
+ int fixed_rate_ninput_to_noutput(int ninput) override;
+ int fixed_rate_noutput_to_ninput(int noutput) override;
void forecast(int noutput_items, gr_vector_int& ninput_items_required) override;
};
diff --git a/gr-fec/lib/dummy_decoder_impl.h b/gr-fec/lib/dummy_decoder_impl.h
index 9a51707ede..978eb6e776 100644
--- a/gr-fec/lib/dummy_decoder_impl.h
+++ b/gr-fec/lib/dummy_decoder_impl.h
@@ -23,11 +23,11 @@ class FEC_API dummy_decoder_impl : public dummy_decoder
{
private:
// plug into the generic fec api
- void generic_work(void* inbuffer, void* outbuffer);
- int get_output_size();
- int get_input_size();
- int get_input_item_size();
- const char* get_input_conversion();
+ void generic_work(void* inbuffer, void* outbuffer) override;
+ int get_output_size() override;
+ int get_input_size() override;
+ int get_input_item_size() override;
+ const char* get_input_conversion() override;
// const char* get_output_conversion();
unsigned int d_max_frame_size;
@@ -35,10 +35,10 @@ private:
public:
dummy_decoder_impl(int frame_size);
- ~dummy_decoder_impl();
+ ~dummy_decoder_impl() override;
- bool set_frame_size(unsigned int frame_size);
- double rate();
+ bool set_frame_size(unsigned int frame_size) override;
+ double rate() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/dummy_encoder_impl.h b/gr-fec/lib/dummy_encoder_impl.h
index 1bacf406df..13b4b9b3d1 100644
--- a/gr-fec/lib/dummy_encoder_impl.h
+++ b/gr-fec/lib/dummy_encoder_impl.h
@@ -23,11 +23,11 @@ class FEC_API dummy_encoder_impl : public dummy_encoder
{
private:
// plug into the generic fec api
- void generic_work(void* inbuffer, void* outbuffer);
- int get_output_size();
- int get_input_size();
- const char* get_input_conversion();
- const char* get_output_conversion();
+ void generic_work(void* inbuffer, void* outbuffer) override;
+ int get_output_size() override;
+ int get_input_size() override;
+ const char* get_input_conversion() override;
+ const char* get_output_conversion() override;
bool d_pack_input;
bool d_packed_bits_output;
@@ -36,10 +36,10 @@ private:
public:
dummy_encoder_impl(int frame_size, bool pack = false, bool packed_bits = false);
- ~dummy_encoder_impl();
+ ~dummy_encoder_impl() override;
- bool set_frame_size(unsigned int frame_size);
- double rate();
+ bool set_frame_size(unsigned int frame_size) override;
+ double rate() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/encoder_impl.h b/gr-fec/lib/encoder_impl.h
index 5895a505bb..8b7543b9d2 100644
--- a/gr-fec/lib/encoder_impl.h
+++ b/gr-fec/lib/encoder_impl.h
@@ -29,14 +29,14 @@ public:
encoder_impl(generic_encoder::sptr my_encoder,
size_t input_item_size,
size_t output_item_size);
- ~encoder_impl();
+ ~encoder_impl() override;
int general_work(int noutput_items,
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
- int fixed_rate_ninput_to_noutput(int ninput);
- int fixed_rate_noutput_to_ninput(int noutput);
+ int fixed_rate_ninput_to_noutput(int ninput) override;
+ int fixed_rate_noutput_to_ninput(int noutput) override;
void forecast(int noutput_items, gr_vector_int& ninput_items_required) override;
};
diff --git a/gr-fec/lib/fec_mtrx_impl.h b/gr-fec/lib/fec_mtrx_impl.h
index 1c39e91cb8..088390cd1b 100644
--- a/gr-fec/lib/fec_mtrx_impl.h
+++ b/gr-fec/lib/fec_mtrx_impl.h
@@ -51,10 +51,10 @@ public:
const gsl_matrix* H() const;
//! Get the codeword length n
- unsigned int n() const;
+ unsigned int n() const override;
//! Get the information word length k
- unsigned int k() const;
+ unsigned int k() const override;
//! Subtract matrices using mod2 operations
void
@@ -75,7 +75,7 @@ public:
*/
bool parity_bits_come_last() const;
- virtual ~fec_mtrx_impl();
+ ~fec_mtrx_impl() override;
};
} // namespace code
} // namespace fec
diff --git a/gr-fec/lib/ldpc_G_matrix_impl.h b/gr-fec/lib/ldpc_G_matrix_impl.h
index 07c1b47832..e3a9b2c43b 100644
--- a/gr-fec/lib/ldpc_G_matrix_impl.h
+++ b/gr-fec/lib/ldpc_G_matrix_impl.h
@@ -60,27 +60,27 @@ private:
public:
ldpc_G_matrix_impl(const std::string filename);
- void encode(unsigned char* outbuffer, const unsigned char* inbuffer) const;
+ void encode(unsigned char* outbuffer, const unsigned char* inbuffer) const override;
void decode(unsigned char* outbuffer,
const float* inbuffer,
unsigned int frame_size,
- unsigned int max_iterations) const;
+ unsigned int max_iterations) const override;
- unsigned int n() const { return fec_mtrx_impl::n(); }
+ unsigned int n() const override { return fec_mtrx_impl::n(); }
- unsigned int k() const { return fec_mtrx_impl::k(); }
+ unsigned int k() const override { return fec_mtrx_impl::k(); }
gsl_matrix* generate_H();
- gr::fec::code::fec_mtrx_sptr get_base_sptr();
+ gr::fec::code::fec_mtrx_sptr get_base_sptr() override;
/*!
* \brief Destructor
* \details
* Calls the gsl_matrix_free function to free memory.
*/
- virtual ~ldpc_G_matrix_impl();
+ ~ldpc_G_matrix_impl() override;
};
} // namespace code
diff --git a/gr-fec/lib/ldpc_H_matrix_impl.h b/gr-fec/lib/ldpc_H_matrix_impl.h
index f3b6018655..d5bce38262 100644
--- a/gr-fec/lib/ldpc_H_matrix_impl.h
+++ b/gr-fec/lib/ldpc_H_matrix_impl.h
@@ -76,28 +76,28 @@ public:
ldpc_H_matrix_impl(const std::string filename, unsigned int gap);
//! Encode \p inbuffer with LDPC H matrix into \p outbuffer.
- void encode(unsigned char* outbuffer, const unsigned char* inbuffer) const;
+ void encode(unsigned char* outbuffer, const unsigned char* inbuffer) const override;
//! Decode \p inbuffer with LDPC H matrix into \p outbuffer.
void decode(unsigned char* outbuffer,
const float* inbuffer,
unsigned int frame_size,
- unsigned int max_iterations) const;
+ unsigned int max_iterations) const override;
//! Redefine these here as part of the public interface
- unsigned int n() const { return fec_mtrx_impl::n(); };
+ unsigned int n() const override { return fec_mtrx_impl::n(); };
//! Redefine these here as part of the public interface
- unsigned int k() const { return fec_mtrx_impl::k(); };
+ unsigned int k() const override { return fec_mtrx_impl::k(); };
- gr::fec::code::fec_mtrx_sptr get_base_sptr();
+ gr::fec::code::fec_mtrx_sptr get_base_sptr() override;
/*!
* \brief Destructor
* \details
* Calls the gsl_matrix_free function to free memory
*/
- virtual ~ldpc_H_matrix_impl();
+ ~ldpc_H_matrix_impl() override;
};
} // namespace code
diff --git a/gr-fec/lib/ldpc_bit_flip_decoder_impl.h b/gr-fec/lib/ldpc_bit_flip_decoder_impl.h
index 37f6251eaa..091af2194f 100644
--- a/gr-fec/lib/ldpc_bit_flip_decoder_impl.h
+++ b/gr-fec/lib/ldpc_bit_flip_decoder_impl.h
@@ -19,8 +19,8 @@ class FEC_API ldpc_bit_flip_decoder_impl : public ldpc_bit_flip_decoder
{
private:
// Plug into the generic FEC API:
- int get_input_size(); // n, # of bits in the received block
- int get_output_size(); // k, # of bits in the info word
+ int get_input_size() override; // n, # of bits in the received block
+ int get_output_size() override; // k, # of bits in the info word
int d_input_size;
int d_output_size;
@@ -34,11 +34,11 @@ private:
public:
ldpc_bit_flip_decoder_impl(const fec_mtrx_sptr mtrx_obj, unsigned int max_iter = 100);
- ~ldpc_bit_flip_decoder_impl();
+ ~ldpc_bit_flip_decoder_impl() override;
- void generic_work(void* inbuffer, void* outbuffer);
- bool set_frame_size(unsigned int frame_size);
- double rate();
+ void generic_work(void* inbuffer, void* outbuffer) override;
+ bool set_frame_size(unsigned int frame_size) override;
+ double rate() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/ldpc_encoder_impl.h b/gr-fec/lib/ldpc_encoder_impl.h
index 3ca778941a..ddd92bf9ba 100644
--- a/gr-fec/lib/ldpc_encoder_impl.h
+++ b/gr-fec/lib/ldpc_encoder_impl.h
@@ -25,7 +25,7 @@ class ldpc_encoder_impl : public ldpc_encoder
{
private:
// plug into the generic fec api
- void generic_work(void* inBuffer, void* outbuffer);
+ void generic_work(void* inBuffer, void* outbuffer) override;
// memory allocated for processing
int outputSize;
@@ -35,12 +35,12 @@ private:
public:
ldpc_encoder_impl(std::string alist_file);
- ~ldpc_encoder_impl();
+ ~ldpc_encoder_impl() override;
- double rate() { return (1.0 * get_input_size() / get_output_size()); }
- bool set_frame_size(unsigned int frame_size) { return false; }
- int get_output_size();
- int get_input_size();
+ double rate() override { return (1.0 * get_input_size() / get_output_size()); }
+ bool set_frame_size(unsigned int frame_size) override { return false; }
+ int get_output_size() override;
+ int get_input_size() override;
};
} // namespace fec
diff --git a/gr-fec/lib/ldpc_gen_mtrx_encoder_impl.h b/gr-fec/lib/ldpc_gen_mtrx_encoder_impl.h
index 77f75ed4b3..c38d5e117f 100644
--- a/gr-fec/lib/ldpc_gen_mtrx_encoder_impl.h
+++ b/gr-fec/lib/ldpc_gen_mtrx_encoder_impl.h
@@ -21,9 +21,9 @@ namespace code {
class FEC_API ldpc_gen_mtrx_encoder_impl : public ldpc_gen_mtrx_encoder
{
private:
- void generic_work(void* inbuffer, void* outbuffer);
- int get_output_size();
- int get_input_size();
+ void generic_work(void* inbuffer, void* outbuffer) override;
+ int get_output_size() override;
+ int get_input_size() override;
// Number of bits in the information word
unsigned int d_frame_size;
@@ -39,10 +39,10 @@ private:
public:
ldpc_gen_mtrx_encoder_impl(const ldpc_G_matrix::sptr G_obj);
- ~ldpc_gen_mtrx_encoder_impl();
+ ~ldpc_gen_mtrx_encoder_impl() override;
- bool set_frame_size(unsigned int frame_size);
- double rate();
+ bool set_frame_size(unsigned int frame_size) override;
+ double rate() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/ldpc_par_mtrx_encoder_impl.h b/gr-fec/lib/ldpc_par_mtrx_encoder_impl.h
index 311d9464cb..34fdf55382 100644
--- a/gr-fec/lib/ldpc_par_mtrx_encoder_impl.h
+++ b/gr-fec/lib/ldpc_par_mtrx_encoder_impl.h
@@ -21,7 +21,7 @@ class ldpc_par_mtrx_encoder_impl : public ldpc_par_mtrx_encoder
{
private:
// plug into the generic fec api
- void generic_work(void* inbuffer, void* outbuffer);
+ void generic_work(void* inbuffer, void* outbuffer) override;
// Number of bits in the frame to be encoded
unsigned int d_frame_size;
@@ -37,12 +37,12 @@ private:
public:
ldpc_par_mtrx_encoder_impl(const code::ldpc_H_matrix::sptr H_obj);
- ~ldpc_par_mtrx_encoder_impl();
+ ~ldpc_par_mtrx_encoder_impl() override;
- double rate();
- bool set_frame_size(unsigned int frame_size);
- int get_output_size();
- int get_input_size();
+ double rate() override;
+ bool set_frame_size(unsigned int frame_size) override;
+ int get_output_size() override;
+ int get_input_size() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/puncture_bb_impl.h b/gr-fec/lib/puncture_bb_impl.h
index fffb80e74d..a3dddfd4a5 100644
--- a/gr-fec/lib/puncture_bb_impl.h
+++ b/gr-fec/lib/puncture_bb_impl.h
@@ -26,7 +26,7 @@ private:
public:
puncture_bb_impl(int puncsize, int puncpat, int delay = 0);
- ~puncture_bb_impl();
+ ~puncture_bb_impl() override;
// void catch_msg(pmt::pmt_t msg);
@@ -34,8 +34,8 @@ public:
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
- int fixed_rate_ninput_to_noutput(int ninput);
- int fixed_rate_noutput_to_ninput(int noutput);
+ int fixed_rate_ninput_to_noutput(int ninput) override;
+ int fixed_rate_noutput_to_ninput(int noutput) override;
void forecast(int noutput_items, gr_vector_int& ninput_items_required) override;
};
diff --git a/gr-fec/lib/puncture_ff_impl.h b/gr-fec/lib/puncture_ff_impl.h
index b9d3b42ec7..9019ce8d9a 100644
--- a/gr-fec/lib/puncture_ff_impl.h
+++ b/gr-fec/lib/puncture_ff_impl.h
@@ -26,7 +26,7 @@ private:
public:
puncture_ff_impl(int puncsize, int puncpat, int delay);
- ~puncture_ff_impl();
+ ~puncture_ff_impl() override;
// void catch_msg(pmt::pmt_t msg);
@@ -34,8 +34,8 @@ public:
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
- int fixed_rate_ninput_to_noutput(int ninput);
- int fixed_rate_noutput_to_ninput(int noutput);
+ int fixed_rate_ninput_to_noutput(int ninput) override;
+ int fixed_rate_noutput_to_ninput(int noutput) override;
void forecast(int noutput_items, gr_vector_int& ninput_items_required) override;
};
diff --git a/gr-fec/lib/repetition_decoder_impl.h b/gr-fec/lib/repetition_decoder_impl.h
index fdaf063a49..96c4ff855c 100644
--- a/gr-fec/lib/repetition_decoder_impl.h
+++ b/gr-fec/lib/repetition_decoder_impl.h
@@ -24,12 +24,12 @@ class FEC_API repetition_decoder_impl : public repetition_decoder
{
private:
// plug into the generic fec api
- void generic_work(void* inbuffer, void* outbuffer);
- int get_output_size();
- int get_input_size();
- int get_input_item_size();
- float get_shift();
- const char* get_input_conversion();
+ void generic_work(void* inbuffer, void* outbuffer) override;
+ int get_output_size() override;
+ int get_input_size() override;
+ int get_input_item_size() override;
+ float get_shift() override;
+ const char* get_input_conversion() override;
// const char* get_output_conversion();
unsigned int d_max_frame_size;
@@ -41,10 +41,10 @@ private:
public:
repetition_decoder_impl(int frame_size, int rep, float ap_prob = 0.5);
- ~repetition_decoder_impl();
+ ~repetition_decoder_impl() override;
- bool set_frame_size(unsigned int frame_size);
- double rate();
+ bool set_frame_size(unsigned int frame_size) override;
+ double rate() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/repetition_encoder_impl.h b/gr-fec/lib/repetition_encoder_impl.h
index 310acd1244..5ee8c5dc28 100644
--- a/gr-fec/lib/repetition_encoder_impl.h
+++ b/gr-fec/lib/repetition_encoder_impl.h
@@ -23,9 +23,9 @@ class FEC_API repetition_encoder_impl : public repetition_encoder
{
private:
// plug into the generic fec api
- void generic_work(void* inbuffer, void* outbuffer);
- int get_output_size();
- int get_input_size();
+ void generic_work(void* inbuffer, void* outbuffer) override;
+ int get_output_size() override;
+ int get_input_size() override;
unsigned int d_max_frame_size;
unsigned int d_frame_size;
@@ -33,10 +33,10 @@ private:
public:
repetition_encoder_impl(int frame_size, int rep);
- ~repetition_encoder_impl();
+ ~repetition_encoder_impl() override;
- bool set_frame_size(unsigned int frame_size);
- double rate();
+ bool set_frame_size(unsigned int frame_size) override;
+ double rate() override;
};
} /* namespace code */
diff --git a/gr-fec/lib/tagged_decoder_impl.h b/gr-fec/lib/tagged_decoder_impl.h
index a5862cbef2..2d3e044778 100644
--- a/gr-fec/lib/tagged_decoder_impl.h
+++ b/gr-fec/lib/tagged_decoder_impl.h
@@ -28,13 +28,13 @@ public:
size_t output_item_size,
const std::string& lengthtagname = "packet_len",
int mtu = 1500);
- ~tagged_decoder_impl();
+ ~tagged_decoder_impl() override;
int work(int noutput_items,
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
- int calculate_output_stream_length(const gr_vector_int& ninput_items);
+ int calculate_output_stream_length(const gr_vector_int& ninput_items) override;
};
} /* namespace fec */
diff --git a/gr-fec/lib/tagged_encoder_impl.h b/gr-fec/lib/tagged_encoder_impl.h
index bffb977589..ca996fd511 100644
--- a/gr-fec/lib/tagged_encoder_impl.h
+++ b/gr-fec/lib/tagged_encoder_impl.h
@@ -28,13 +28,13 @@ public:
size_t output_item_size,
const std::string& lengthtagname = "packet_len",
int mtu = 1500);
- ~tagged_encoder_impl();
+ ~tagged_encoder_impl() override;
int work(int noutput_items,
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items) override;
- int calculate_output_stream_length(const gr_vector_int& ninput_items);
+ int calculate_output_stream_length(const gr_vector_int& ninput_items) override;
};
} /* namespace fec */