mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 05:29:43 +01:00
Problem: inconsistent polymorphic inheritance
Solution: consistently use virtual, override and final
This commit is contained in:
14
src/pull.hpp
14
src/pull.hpp
@@ -41,21 +41,21 @@ class pipe_t;
|
||||
class msg_t;
|
||||
class io_thread_t;
|
||||
|
||||
class pull_t : public socket_base_t
|
||||
class pull_t ZMQ_FINAL : public socket_base_t
|
||||
{
|
||||
public:
|
||||
pull_t (zmq::ctx_t *parent_, uint32_t tid_, int sid_);
|
||||
~pull_t ();
|
||||
~pull_t () ZMQ_FINAL;
|
||||
|
||||
protected:
|
||||
// Overrides of functions from socket_base_t.
|
||||
void xattach_pipe (zmq::pipe_t *pipe_,
|
||||
bool subscribe_to_all_,
|
||||
bool locally_initiated_);
|
||||
int xrecv (zmq::msg_t *msg_);
|
||||
bool xhas_in ();
|
||||
void xread_activated (zmq::pipe_t *pipe_);
|
||||
void xpipe_terminated (zmq::pipe_t *pipe_);
|
||||
bool locally_initiated_) ZMQ_FINAL;
|
||||
int xrecv (zmq::msg_t *msg_) ZMQ_FINAL;
|
||||
bool xhas_in () ZMQ_FINAL;
|
||||
void xread_activated (zmq::pipe_t *pipe_) ZMQ_FINAL;
|
||||
void xpipe_terminated (zmq::pipe_t *pipe_) ZMQ_FINAL;
|
||||
|
||||
private:
|
||||
// Fair queueing object for inbound pipes.
|
||||
|
||||
Reference in New Issue
Block a user