mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Apply modernize-use-override
This commit is contained in:
parent
abea079939
commit
c2800bdfa5
|
@ -59,7 +59,7 @@ struct TransportFactory final : mq::TransportFactory
|
||||||
TransportFactory(TransportFactory&&) = delete;
|
TransportFactory(TransportFactory&&) = delete;
|
||||||
TransportFactory& operator=(const TransportFactory&) = delete;
|
TransportFactory& operator=(const TransportFactory&) = delete;
|
||||||
TransportFactory& operator=(TransportFactory&&) = delete;
|
TransportFactory& operator=(TransportFactory&&) = delete;
|
||||||
~TransportFactory() = default;
|
~TransportFactory() override = default;
|
||||||
|
|
||||||
auto CreateMessage() -> std::unique_ptr<mq::Message> override
|
auto CreateMessage() -> std::unique_ptr<mq::Message> override
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@ class Config : public Plugin
|
||||||
Config& operator=(const Config&) = delete;
|
Config& operator=(const Config&) = delete;
|
||||||
Config& operator=(Config&&) = delete;
|
Config& operator=(Config&&) = delete;
|
||||||
|
|
||||||
~Config();
|
~Config() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
Plugin::ProgOptions ConfigPluginProgramOptions();
|
Plugin::ProgOptions ConfigPluginProgramOptions();
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Control : public Plugin
|
||||||
Control& operator=(const Control&) = delete;
|
Control& operator=(const Control&) = delete;
|
||||||
Control& operator=(Control&&) = delete;
|
Control& operator=(Control&&) = delete;
|
||||||
|
|
||||||
~Control();
|
~Control() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
auto InteractiveMode() -> void;
|
auto InteractiveMode() -> void;
|
||||||
|
|
|
@ -5,12 +5,6 @@
|
||||||
* GNU Lesser General Public Licence (LGPL) version 3, *
|
* GNU Lesser General Public Licence (LGPL) version 3, *
|
||||||
* copied verbatim in the file "LICENSE" *
|
* copied verbatim in the file "LICENSE" *
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
/**
|
|
||||||
* Manager.h
|
|
||||||
*
|
|
||||||
* @since 2016-04-08
|
|
||||||
* @author A. Rybalchenko
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef FAIR_MQ_SHMEM_MANAGER_H_
|
#ifndef FAIR_MQ_SHMEM_MANAGER_H_
|
||||||
#define FAIR_MQ_SHMEM_MANAGER_H_
|
#define FAIR_MQ_SHMEM_MANAGER_H_
|
||||||
|
|
|
@ -5,12 +5,6 @@
|
||||||
* GNU Lesser General Public Licence (LGPL) version 3, *
|
* GNU Lesser General Public Licence (LGPL) version 3, *
|
||||||
* copied verbatim in the file "LICENSE" *
|
* copied verbatim in the file "LICENSE" *
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
/**
|
|
||||||
* Region.h
|
|
||||||
*
|
|
||||||
* @since 2016-04-08
|
|
||||||
* @author A. Rybalchenko
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef FAIR_MQ_SHMEM_REGION_H_
|
#ifndef FAIR_MQ_SHMEM_REGION_H_
|
||||||
#define FAIR_MQ_SHMEM_REGION_H_
|
#define FAIR_MQ_SHMEM_REGION_H_
|
||||||
|
|
|
@ -63,8 +63,8 @@ class UnmanagedRegion final : public fair::mq::UnmanagedRegion
|
||||||
UnmanagedRegion& operator=(const UnmanagedRegion&) = delete;
|
UnmanagedRegion& operator=(const UnmanagedRegion&) = delete;
|
||||||
UnmanagedRegion& operator=(UnmanagedRegion&&) = delete;
|
UnmanagedRegion& operator=(UnmanagedRegion&&) = delete;
|
||||||
|
|
||||||
virtual void* GetData() const override { return fBuffer; }
|
void* GetData() const override { return fBuffer; }
|
||||||
virtual size_t GetSize() const override { return fSize; }
|
size_t GetSize() const override { return fSize; }
|
||||||
uint16_t GetId() const override { return fId; }
|
uint16_t GetId() const override { return fId; }
|
||||||
int64_t GetUserFlags() const { return fUserFlags; }
|
int64_t GetUserFlags() const { return fUserFlags; }
|
||||||
void SetLinger(uint32_t /* linger */) override { LOG(debug) << "ZeroMQ UnmanagedRegion linger option not implemented. Acknowledgements are local."; }
|
void SetLinger(uint32_t /* linger */) override { LOG(debug) << "ZeroMQ UnmanagedRegion linger option not implemented. Acknowledgements are local."; }
|
||||||
|
@ -72,7 +72,7 @@ class UnmanagedRegion final : public fair::mq::UnmanagedRegion
|
||||||
|
|
||||||
Transport GetType() const override { return Transport::ZMQ; }
|
Transport GetType() const override { return Transport::ZMQ; }
|
||||||
|
|
||||||
virtual ~UnmanagedRegion()
|
~UnmanagedRegion() override
|
||||||
{
|
{
|
||||||
LOG(debug) << "destroying region " << fId;
|
LOG(debug) << "destroying region " << fId;
|
||||||
fCtx.RemoveRegion(fId);
|
fCtx.RemoveRegion(fId);
|
||||||
|
|
|
@ -72,7 +72,7 @@ class TestDevice : public FairMQDevice
|
||||||
TestDevice& operator=(const TestDevice&) = delete;
|
TestDevice& operator=(const TestDevice&) = delete;
|
||||||
TestDevice& operator=(TestDevice&&) = delete;
|
TestDevice& operator=(TestDevice&&) = delete;
|
||||||
|
|
||||||
~TestDevice()
|
~TestDevice() override
|
||||||
{
|
{
|
||||||
WaitForState(fair::mq::State::Running);
|
WaitForState(fair::mq::State::Running);
|
||||||
ChangeState(fair::mq::Transition::Stop);
|
ChangeState(fair::mq::Transition::Stop);
|
||||||
|
|
|
@ -49,7 +49,7 @@ class BadDevice : public FairMQDevice
|
||||||
BadDevice& operator=(const BadDevice&) = delete;
|
BadDevice& operator=(const BadDevice&) = delete;
|
||||||
BadDevice& operator=(BadDevice&&) = delete;
|
BadDevice& operator=(BadDevice&&) = delete;
|
||||||
|
|
||||||
~BadDevice()
|
~BadDevice() override
|
||||||
{
|
{
|
||||||
ChangeState(fair::mq::Transition::ResetDevice);
|
ChangeState(fair::mq::Transition::ResetDevice);
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ class SlowDevice : public FairMQDevice
|
||||||
SlowDevice() = default;
|
SlowDevice() = default;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Init()
|
void Init() override
|
||||||
{
|
{
|
||||||
this_thread::sleep_for(chrono::milliseconds(100));
|
this_thread::sleep_for(chrono::milliseconds(100));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user