final class hints

This commit is contained in:
keldu.magnus 2020-11-12 00:51:35 +01:00
parent c179b07ad1
commit 450ec4ca77
1 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ public:
int fd() const { return file_descriptor; } int fd() const { return file_descriptor; }
}; };
class UnixEventPort : public EventPort { class UnixEventPort final : public EventPort {
private: private:
int epoll_fd; int epoll_fd;
int signal_fd; int signal_fd;
@ -228,9 +228,9 @@ public:
} }
}; };
class UnixIoStream : public IoStream, class UnixIoStream final : public IoStream,
public IFdOwner, public IFdOwner,
public DataReaderAndWriter { public DataReaderAndWriter {
private: private:
WriteTaskAndStepHelper write_helper; WriteTaskAndStepHelper write_helper;
ReadTaskAndStepHelper read_helper; ReadTaskAndStepHelper read_helper;
@ -257,7 +257,7 @@ public:
void notify(uint32_t mask) override; void notify(uint32_t mask) override;
}; };
class UnixServer : public Server, public IFdOwner { class UnixServer final : public Server, public IFdOwner {
private: private:
Own<ConveyorFeeder<Own<IoStream>>> accept_feeder = nullptr; Own<ConveyorFeeder<Own<IoStream>>> accept_feeder = nullptr;
@ -343,7 +343,7 @@ public:
} }
}; };
class UnixNetworkAddress : public NetworkAddress { class UnixNetworkAddress final : public NetworkAddress {
private: private:
UnixEventPort &event_port; UnixEventPort &event_port;
const std::string path; const std::string path;