@@ -41,54 +41,54 @@ class FairMQDeviceProxy
4141 std::vector<ForwardRoute> const & forwards, fair::mq::Device& device);
4242
4343 // / Retrieve the transport associated to a given route.
44- fair::mq::TransportFactory* getOutputTransport (RouteIndex routeIndex) const ;
44+ [[nodiscard]] fair::mq::TransportFactory* getOutputTransport (RouteIndex routeIndex) const ;
4545 // / Retrieve the transport associated to a given route.
46- fair::mq::TransportFactory* getInputTransport (RouteIndex routeIndex) const ;
46+ [[nodiscard]] fair::mq::TransportFactory* getInputTransport (RouteIndex routeIndex) const ;
4747 // / Retrieve the transport associated to a given route.
48- fair::mq::TransportFactory* getForwardTransport (RouteIndex routeIndex) const ;
48+ [[nodiscard]] fair::mq::TransportFactory* getForwardTransport (RouteIndex routeIndex) const ;
4949 // / ChannelIndex from a given channel name
50- ChannelIndex getOutputChannelIndexByName (std::string const & channelName) const ;
50+ [[nodiscard]] ChannelIndex getOutputChannelIndexByName (std::string const & channelName) const ;
5151 // / ChannelIndex from a given channel name
52- ChannelIndex getInputChannelIndexByName (std::string const & channelName) const ;
52+ [[nodiscard]] ChannelIndex getInputChannelIndexByName (std::string const & channelName) const ;
5353 // / ChannelIndex from a given channel name
54- ChannelIndex getForwardChannelIndexByName (std::string const & channelName) const ;
54+ [[nodiscard]] ChannelIndex getForwardChannelIndexByName (std::string const & channelName) const ;
5555 // / Retrieve the channel index from a given OutputSpec and the associated timeslice
56- ChannelIndex getOutputChannelIndex (OutputSpec const & spec, size_t timeslice) const ;
56+ [[nodiscard]] ChannelIndex getOutputChannelIndex (OutputSpec const & spec, size_t timeslice) const ;
5757 // / Retrieve the channel index from a given OutputSpec and the associated timeslice
58- ChannelIndex getForwardChannelIndex (header::DataHeader const & header, size_t timeslice) const ;
58+ [[nodiscard]] ChannelIndex getForwardChannelIndex (header::DataHeader const & header, size_t timeslice) const ;
5959 // / ChannelIndex from a RouteIndex
60- ChannelIndex getOutputChannelIndex (RouteIndex routeIndex) const ;
61- ChannelIndex getInputChannelIndex (RouteIndex routeIndex) const ;
62- ChannelIndex getForwardChannelIndex (RouteIndex routeIndex) const ;
60+ [[nodiscard]] ChannelIndex getOutputChannelIndex (RouteIndex routeIndex) const ;
61+ [[nodiscard]] ChannelIndex getInputChannelIndex (RouteIndex routeIndex) const ;
62+ [[nodiscard]] ChannelIndex getForwardChannelIndex (RouteIndex routeIndex) const ;
6363 // / Retrieve the channel associated to a given output route.
64- fair::mq::Channel* getInputChannel (ChannelIndex channelIndex) const ;
65- fair::mq::Channel* getOutputChannel (ChannelIndex channelIndex) const ;
66- fair::mq::Channel* getForwardChannel (ChannelIndex channelIndex) const ;
64+ [[nodiscard]] fair::mq::Channel* getInputChannel (ChannelIndex channelIndex) const ;
65+ [[nodiscard]] fair::mq::Channel* getOutputChannel (ChannelIndex channelIndex) const ;
66+ [[nodiscard]] fair::mq::Channel* getForwardChannel (ChannelIndex channelIndex) const ;
6767
6868 // / Retrieve information associated to a given forward by ChannelIndex
69- OutputChannelInfo const & getOutputChannelInfo (ChannelIndex channelIndex) const ;
69+ [[nodiscard]] OutputChannelInfo const & getOutputChannelInfo (ChannelIndex channelIndex) const ;
7070 // / Retrieve information associated to a given forward by ChannelIndex
71- ForwardChannelInfo const & getForwardChannelInfo (ChannelIndex channelIndex) const ;
71+ [[nodiscard]] ForwardChannelInfo const & getForwardChannelInfo (ChannelIndex channelIndex) const ;
7272
7373 // / Retrieve information associated to a given forward by ChannelIndex
7474 OutputChannelState& getOutputChannelState (ChannelIndex channelIndex);
7575 // / Retrieve information associated to a given forward by ChannelIndex
7676 ForwardChannelState& getForwardChannelState (ChannelIndex channelIndex);
7777
78- std::unique_ptr<fair::mq::Message> createOutputMessage (RouteIndex routeIndex) const ;
79- std::unique_ptr<fair::mq::Message> createOutputMessage (RouteIndex routeIndex, const size_t size) const ;
78+ [[nodiscard]] std::unique_ptr<fair::mq::Message> createOutputMessage (RouteIndex routeIndex) const ;
79+ [[nodiscard]] std::unique_ptr<fair::mq::Message> createOutputMessage (RouteIndex routeIndex, const size_t size) const ;
8080
81- std::unique_ptr<fair::mq::Message> createInputMessage (RouteIndex routeIndex) const ;
82- std::unique_ptr<fair::mq::Message> createInputMessage (RouteIndex routeIndex, const size_t size) const ;
81+ [[nodiscard]] std::unique_ptr<fair::mq::Message> createInputMessage (RouteIndex routeIndex) const ;
82+ [[nodiscard]] std::unique_ptr<fair::mq::Message> createInputMessage (RouteIndex routeIndex, const size_t size) const ;
8383
84- std::unique_ptr<fair::mq::Message> createForwardMessage (RouteIndex routeIndex) const ;
84+ [[nodiscard]] std::unique_ptr<fair::mq::Message> createForwardMessage (RouteIndex routeIndex) const ;
8585
86- size_t getNumOutputChannels () const { return mOutputChannelInfos .size (); }
87- size_t getNumInputChannels () const { return mInputChannels .size (); }
88- size_t getNumForwardChannels () const { return mForwardChannelInfos .size (); }
89- size_t getNumForwards () const { return mForwards .size (); }
86+ [[nodiscard]] size_t getNumOutputChannels () const { return mOutputChannelInfos .size (); }
87+ [[nodiscard]] size_t getNumInputChannels () const { return mInputChannels .size (); }
88+ [[nodiscard]] size_t getNumForwardChannels () const { return mForwardChannelInfos .size (); }
89+ [[nodiscard]] size_t getNumForwards () const { return mForwards .size (); }
9090
91- bool newStateRequested () const { return mStateChangeCallback (); }
91+ [[nodiscard]] bool newStateRequested () const { return mStateChangeCallback (); }
9292
9393 private:
9494 std::vector<OutputRoute> mOutputs ;
0 commit comments