mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-20 09:05:25 +00:00
Use the override special identifier when overriding a virtual function
This commit is contained in:
@@ -57,27 +57,29 @@ public:
|
||||
unsigned int out_stream, boost::shared_ptr<gr::msg_queue> queue);
|
||||
|
||||
virtual ~SignalGenerator();
|
||||
std::string role()
|
||||
|
||||
std::string role() override
|
||||
{
|
||||
return role_;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Returns "GNSSSignalGenerator".
|
||||
*/
|
||||
std::string implementation()
|
||||
* \brief Returns "GNSSSignalGenerator".
|
||||
*/
|
||||
std::string implementation() override
|
||||
{
|
||||
return "GNSSSignalGenerator";
|
||||
}
|
||||
size_t item_size()
|
||||
|
||||
size_t item_size() override
|
||||
{
|
||||
return item_size_;
|
||||
}
|
||||
|
||||
void connect(gr::top_block_sptr top_block);
|
||||
void disconnect(gr::top_block_sptr top_block);
|
||||
gr::basic_block_sptr get_left_block();
|
||||
gr::basic_block_sptr get_right_block();
|
||||
void connect(gr::top_block_sptr top_block) override;
|
||||
void disconnect(gr::top_block_sptr top_block) override;
|
||||
gr::basic_block_sptr get_left_block() override;
|
||||
gr::basic_block_sptr get_right_block() override;
|
||||
|
||||
private:
|
||||
std::string role_;
|
||||
|
||||
Reference in New Issue
Block a user