mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 18:11:49 +00:00
Fix copy constructor & assignment operator warning in FairMQChannel
Fix Weffc++ warnings - Add missing copy constructors and assignment operators . - Hide the warning from FairMQStateMachine.h where it is produced by boost and/or is intended. - Some code cleanup.
This commit is contained in:
committed by
Florian Uhlig
parent
9a0a8c7516
commit
e4fed2fa1b
@@ -20,6 +20,8 @@ class FairMQContextZMQ
|
||||
public:
|
||||
/// Constructor
|
||||
FairMQContextZMQ(int numIoThreads);
|
||||
FairMQContextZMQ(const FairMQContextZMQ&) = delete;
|
||||
FairMQContextZMQ operator=(const FairMQContextZMQ&) = delete;
|
||||
|
||||
virtual ~FairMQContextZMQ();
|
||||
void* GetContext();
|
||||
@@ -27,10 +29,6 @@ class FairMQContextZMQ
|
||||
|
||||
private:
|
||||
void* fContext;
|
||||
|
||||
/// Copy Constructor
|
||||
FairMQContextZMQ(const FairMQContextZMQ&);
|
||||
FairMQContextZMQ operator=(const FairMQContextZMQ&);
|
||||
};
|
||||
|
||||
#endif /* FAIRMQCONTEXTZMQ_H_ */
|
||||
|
@@ -33,6 +33,8 @@ class FairMQPollerZMQ : public FairMQPoller
|
||||
public:
|
||||
FairMQPollerZMQ(const std::vector<FairMQChannel>& channels);
|
||||
FairMQPollerZMQ(std::unordered_map<std::string, std::vector<FairMQChannel>>& channelsMap, std::initializer_list<std::string> channelList);
|
||||
FairMQPollerZMQ(const FairMQPollerZMQ&) = delete;
|
||||
FairMQPollerZMQ operator=(const FairMQPollerZMQ&) = delete;
|
||||
|
||||
virtual void Poll(const int timeout);
|
||||
virtual bool CheckInput(const int index);
|
||||
@@ -49,10 +51,6 @@ class FairMQPollerZMQ : public FairMQPoller
|
||||
int fNumItems;
|
||||
|
||||
std::unordered_map<std::string,int> fOffsetMap;
|
||||
|
||||
/// Copy Constructor
|
||||
FairMQPollerZMQ(const FairMQPollerZMQ&);
|
||||
FairMQPollerZMQ operator=(const FairMQPollerZMQ&);
|
||||
};
|
||||
|
||||
#endif /* FAIRMQPOLLERZMQ_H_ */
|
@@ -24,6 +24,8 @@ class FairMQSocketZMQ : public FairMQSocket
|
||||
{
|
||||
public:
|
||||
FairMQSocketZMQ(const std::string& type, const std::string& name, int numIoThreads);
|
||||
FairMQSocketZMQ(const FairMQSocketZMQ&) = delete;
|
||||
FairMQSocketZMQ operator=(const FairMQSocketZMQ&) = delete;
|
||||
|
||||
virtual std::string GetId();
|
||||
|
||||
@@ -66,10 +68,6 @@ class FairMQSocketZMQ : public FairMQSocket
|
||||
unsigned long fMessagesRx;
|
||||
|
||||
static boost::shared_ptr<FairMQContextZMQ> fContext;
|
||||
|
||||
/// Copy Constructor
|
||||
FairMQSocketZMQ(const FairMQSocketZMQ&);
|
||||
FairMQSocketZMQ operator=(const FairMQSocketZMQ&);
|
||||
};
|
||||
|
||||
#endif /* FAIRMQSOCKETZMQ_H_ */
|
||||
|
Reference in New Issue
Block a user